diff options
author | lloyd <[email protected]> | 2006-06-23 06:17:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-23 06:17:02 +0000 |
commit | 52489933db995decbc344acf8860358bdafecb29 (patch) | |
tree | bc9177f764bc3a2edded6aaeba5aa84e38039c71 /src/x509_ext.cpp | |
parent | f78c757011fd8834741ffca526bef55d41dcf9dc (diff) |
Respect the throw_on_unknown flag
Fix a string constant in an exception throw (missing a space)
Diffstat (limited to 'src/x509_ext.cpp')
-rw-r--r-- | src/x509_ext.cpp | 4 |
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()); } |