aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-05-09 10:49:38 -0400
committerJack Lloyd <[email protected]>2019-05-09 10:49:38 -0400
commitb26b472e0b90e83d565c9c8d64d6fc2591c286c5 (patch)
treed831bf9fb4abbd082482e30bace67a37f06e138d /src/lib
parent87172d3bf58b2b3b6575087c42e05f801789e025 (diff)
Fix decoding of RSA-OAEP certs
GH #1943
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/x509/x509cert.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/x509/x509cert.cpp b/src/lib/x509/x509cert.cpp
index de4b0ed7a..0212267ec 100644
--- a/src/lib/x509/x509cert.cpp
+++ b/src/lib/x509/x509cert.cpp
@@ -176,17 +176,13 @@ std::unique_ptr<X509_Certificate_Data> parse_x509_cert_body(const X509_Object& o
throw Decoding_Error("Algorithm identifier mismatch");
}
}
- if(public_key_info[1] == "OAEP")
- {
- throw Decoding_Error("Decoding subject public keys of type RSAES-OAEP is currently not supported");
- }
}
else
{
// oid = rsaEncryption -> parameters field MUST contain NULL
if(public_key_alg_id != AlgorithmIdentifier(public_key_alg_id.get_oid(), AlgorithmIdentifier::USE_NULL_PARAM))
{
- throw Decoding_Error("Parameters field MUST contain NULL");
+ throw Decoding_Error("RSA algorithm parameters field MUST contain NULL");
}
}
}