From 6e5f8005556be4c02f6f4d8a33e68082d002fdd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Guimar=C3=A3es?= Date: Sat, 17 May 2014 16:03:39 -0300 Subject: [PATCH] change behavior when OPTIONAL field keyIdentifier is not present. Not erring out. --- ctaocrypt/src/asn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index de4328df3..be76fc14b 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -3486,8 +3486,8 @@ static int DecodeAuthKeyId(byte* input, int sz, DecodedCert* cert) } if (input[idx++] != (ASN_CONTEXT_SPECIFIC | 0)) { - CYASSL_MSG("\tfail: wanted OPTIONAL item 0, not available\n"); - return ASN_PARSE_E; + CYASSL_MSG("\tinfo: OPTIONAL item 0, not available\n"); + return 0; } if (GetLength(input, &idx, &length, sz) < 0) {