diff options
author | Ingela Anderton Andin <[email protected]> | 2016-06-01 15:31:20 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-06-03 10:22:38 +0200 |
commit | 4fc8fc6767abd3f09ca05503357a26acca006857 (patch) | |
tree | 7de7636d4a7fea84fdad2a528aafed6a1a5f32ae /lib/public_key/src/pubkey_cert.erl | |
parent | 5dab28556e2b0a93d172d4a7df911b65fb2d1829 (diff) | |
download | otp-4fc8fc6767abd3f09ca05503357a26acca006857.tar.gz otp-4fc8fc6767abd3f09ca05503357a26acca006857.tar.bz2 otp-4fc8fc6767abd3f09ca05503357a26acca006857.zip |
public_key: Support more general name types
Diffstat (limited to 'lib/public_key/src/pubkey_cert.erl')
-rw-r--r-- | lib/public_key/src/pubkey_cert.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public_key/src/pubkey_cert.erl b/lib/public_key/src/pubkey_cert.erl index c5e6ffded5..f45f2c2e9a 100644 --- a/lib/public_key/src/pubkey_cert.erl +++ b/lib/public_key/src/pubkey_cert.erl @@ -547,7 +547,9 @@ cert_auth_key_id(#'AuthorityKeyIdentifier'{authorityCertIssuer = {ok, {SerialNr, decode_general_name(AuthCertIssuer)}}. decode_general_name([{directoryName, Issuer}]) -> - normalize_general_name(Issuer). + normalize_general_name(Issuer); +decode_general_name([{_, Issuer}]) -> + Issuer. %% Strip all leading and trailing spaces and make %% sure there is no double spaces in between. |