aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-06-01 15:31:20 +0200
committerIngela Anderton Andin <[email protected]>2016-06-03 10:22:38 +0200
commit4fc8fc6767abd3f09ca05503357a26acca006857 (patch)
tree7de7636d4a7fea84fdad2a528aafed6a1a5f32ae /lib/public_key/src
parent5dab28556e2b0a93d172d4a7df911b65fb2d1829 (diff)
downloadotp-4fc8fc6767abd3f09ca05503357a26acca006857.tar.gz
otp-4fc8fc6767abd3f09ca05503357a26acca006857.tar.bz2
otp-4fc8fc6767abd3f09ca05503357a26acca006857.zip
public_key: Support more general name types
Diffstat (limited to 'lib/public_key/src')
-rw-r--r--lib/public_key/src/pubkey_cert.erl4
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.