aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x509_ext.cpp10
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 "