From 940697169376f32d10da71d6f0d4660a71c45545 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 23 Jun 2006 06:00:52 +0000 Subject: Add a new variant of Extensions::decode_from that doesn't thrown an exception if it finds an unknown critical extension. --- src/x509_ext.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 @@ -47,6 +47,14 @@ void Extensions::encode_into(DER_Encoder& to_object) const * Decode a list of Extensions * *************************************************/ 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]; -- cgit v1.2.3