aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/src/pubkey_crl.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-03-09 10:19:51 +0100
committerIngela Anderton Andin <[email protected]>2015-03-09 10:19:51 +0100
commit07abc92d5c763cee81bf69695e35a658ddc961dc (patch)
treec953795aee3be6b0f0f526c4cad9a82fa79adf11 /lib/public_key/src/pubkey_crl.erl
parent41ede9c2b79cd67bf4d6d6ba5953e3e311c7574b (diff)
parent601246b87b7df5247fc5ab1cf39e665935e335ae (diff)
downloadotp-07abc92d5c763cee81bf69695e35a658ddc961dc.tar.gz
otp-07abc92d5c763cee81bf69695e35a658ddc961dc.tar.bz2
otp-07abc92d5c763cee81bf69695e35a658ddc961dc.zip
Merge branch 'ia/public_key/crl/OTP-12547' into maint
* ia/public_key/crl/OTP-12547: public_key: Improve CRL handling support
Diffstat (limited to 'lib/public_key/src/pubkey_crl.erl')
-rw-r--r--lib/public_key/src/pubkey_crl.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public_key/src/pubkey_crl.erl b/lib/public_key/src/pubkey_crl.erl
index f0df4bc3f2..488cc97c70 100644
--- a/lib/public_key/src/pubkey_crl.erl
+++ b/lib/public_key/src/pubkey_crl.erl
@@ -41,10 +41,10 @@ validate(OtpCert, OtherDPCRLs, DP, {DerCRL, CRL}, {DerDeltaCRL, DeltaCRL},
CRLIssuer = TBSCRL#'TBSCertList'.issuer,
AltNames = case pubkey_cert:select_extension(?'id-ce-subjectAltName',
TBSCert#'OTPTBSCertificate'.extensions) of
- undefined ->
- [];
- Ext ->
- Ext#'Extension'.extnValue
+ #'Extension'{extnValue = Value} ->
+ Value;
+ _ ->
+ []
end,
revoked_status(DP, IDP, {directoryName, CRLIssuer},
[ {directoryName, CertIssuer} | AltNames], SerialNumber, Revoked,