add RSA_DECODE_EXTRA to RsaPublicKeyDecode() to handle OpenSSL-generated keys

This commit is contained in:
Chris Conlon
2014-04-23 15:53:20 -06:00
parent 30b63bda6f
commit f20b25b510

View File

@@ -1057,7 +1057,7 @@ int RsaPublicKeyDecode(const byte* input, word32* inOutIdx, RsaKey* key,
key->type = RSA_PUBLIC;
#ifdef OPENSSL_EXTRA
#if defined(OPENSSL_EXTRA) || defined(RSA_DECODE_EXTRA)
{
byte b = input[*inOutIdx];
if (b != ASN_INTEGER) {