aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509_ext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/x509_ext.cpp')
-rw-r--r--src/x509_ext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x509_ext.cpp b/src/x509_ext.cpp
index d9e93a9af..37d053e70 100644
--- a/src/x509_ext.cpp
+++ b/src/x509_ext.cpp
@@ -78,10 +78,10 @@ void Extensions::decode_from(BER_Decoder& from_source, bool throw_on_unknown)
if(!ext)
{
- if(!critical)
+ if(!critical || !throw_on_unknown)
continue;
- throw Decoding_Error("Encountered unknown X.509 extension marked"
+ throw Decoding_Error("Encountered unknown X.509 extension marked "
"as critical; OID = " + oid.as_string());
}