diff options
author | Linus Nordberg <linus@nordu.net> | 2016-01-19 17:24:06 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-08-18 14:46:26 +0200 |
commit | 31e1927e1a163c72360b2aea8f87701e4da2a6fb (patch) | |
tree | 2c0f9e8afd0b9c54dfdef1e96377e668bb2f5718 | |
parent | 0124ba48d6751b1d5cb4e8a26945562f4d1b05f3 (diff) |
Rename module compat -> catlfish_compat.
Can't have two modules with the same name in a release.
-rw-r--r-- | src/catlfish_compat.erl (renamed from src/compat.erl) | 2 | ||||
-rw-r--r-- | src/x509.erl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/compat.erl b/src/catlfish_compat.erl index bbb58a1..55c2b2e 100644 --- a/src/compat.erl +++ b/src/catlfish_compat.erl @@ -1,4 +1,4 @@ --module(compat). +-module(catlfish_compat). -export([unpack_issuer/1, unpack_signature/1]). -include_lib("public_key/include/public_key.hrl"). diff --git a/src/x509.erl b/src/x509.erl index 2d4cffa..e0d8ea7 100644 --- a/src/x509.erl +++ b/src/x509.erl @@ -171,7 +171,7 @@ signed_by_p(SubjectDer, IssuerDer) -> end. verify_sig(IssuerSPKI, {DigestOrPlainText, DigestType, Signature}) -> - {Alg, Params, Key0} = compat:unpack_issuer(IssuerSPKI), + {Alg, Params, Key0} = catlfish_compat:unpack_issuer(IssuerSPKI), KeyType = pubkey_cert_records:supportedPublicKeyAlgorithms(Alg), IssuerKey = case KeyType of @@ -193,7 +193,7 @@ verify_sig(IssuerSPKI, {DigestOrPlainText, DigestType, Signature}) -> %% Code from pubkey_cert:extract_verify_data/2. extract_verify_data(Cert, DerCert) -> PlainText = encoded_tbs_cert(DerCert), - Sig = compat:unpack_signature(Cert#'Certificate'.signature), + Sig = catlfish_compat:unpack_signature(Cert#'Certificate'.signature), SigAlgRecord = Cert#'Certificate'.signatureAlgorithm, SigAlg = SigAlgRecord#'AlgorithmIdentifier'.algorithm, try |