From f20b25b51032575bbc2e830c483eb7b159ac3e0a Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 23 Apr 2014 15:53:20 -0600 Subject: [PATCH] add RSA_DECODE_EXTRA to RsaPublicKeyDecode() to handle OpenSSL-generated keys --- ctaocrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index 80c11c0c7..142b9f40d 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -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) {