diff options
author | lloyd <[email protected]> | 2006-06-23 06:34:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-23 06:34:18 +0000 |
commit | 9673613b0b2e7ac5aaced47b80f0aaeda0895d15 (patch) | |
tree | 6487682d934488df40caab17de674bece66dbfc0 /src | |
parent | 52489933db995decbc344acf8860358bdafecb29 (diff) |
The decode_from taking a bool wasn't actually usable, don't
know why I thought it would work (that function is only called
through the interface presented to the BER/DER codecs).
Instead, pass a bool to the constructor.
Diffstat (limited to 'src')
-rw-r--r-- | src/x509_ext.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/x509_ext.cpp b/src/x509_ext.cpp index 37d053e70..d173df9a7 100644 --- a/src/x509_ext.cpp +++ b/src/x509_ext.cpp @@ -48,14 +48,6 @@ void Extensions::encode_into(DER_Encoder& to_object) const *************************************************/ void Extensions::decode_from(BER_Decoder& from_source) { - decode_from(from_source, true); - } - -/************************************************* -* Decode a list of Extensions * -*************************************************/ -void Extensions::decode_from(BER_Decoder& from_source, bool throw_on_unknown) - { for(u32bit j = 0; j != extensions.size(); ++j) delete extensions[j]; extensions.clear(); @@ -78,7 +70,7 @@ void Extensions::decode_from(BER_Decoder& from_source, bool throw_on_unknown) if(!ext) { - if(!critical || !throw_on_unknown) + if(!critical || !should_throw) continue; throw Decoding_Error("Encountered unknown X.509 extension marked " |