diff options
author | lloyd <[email protected]> | 2006-06-23 06:00:52 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-06-23 06:00:52 +0000 |
commit | 940697169376f32d10da71d6f0d4660a71c45545 (patch) | |
tree | 2a55510b53c8106674c7677b6c3f5b6ac140e34f /src | |
parent | 754c16487b5c2f6ded58a251802ba72c74753282 (diff) |
Add a new variant of Extensions::decode_from that doesn't thrown an
exception if it finds an unknown critical extension.
Diffstat (limited to 'src')
-rw-r--r-- | src/x509_ext.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/x509_ext.cpp b/src/x509_ext.cpp index 6f5e76645..d9e93a9af 100644 --- a/src/x509_ext.cpp +++ b/src/x509_ext.cpp @@ -48,6 +48,14 @@ 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(); |