From: Dr. Stephen Henson Date: Fri, 2 May 2003 11:41:40 +0000 (+0000) Subject: Make DER option work again. X-Git-Tag: BEN_FIPS_TEST_1~38^2~114 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b9d2d20086c0ba7631412618974e5122af6fcb2d;p=oweals%2Fopenssl.git Make DER option work again. Fix typo. --- diff --git a/crypto/x509v3/v3_conf.c b/crypto/x509v3/v3_conf.c index 7e813db0d7..9a89e43330 100644 --- a/crypto/x509v3/v3_conf.c +++ b/crypto/x509v3/v3_conf.c @@ -238,12 +238,12 @@ static int v3_check_generic(char **value) { int gen_type = 0; char *p = *value; - if ((strlen(p) >= 4) && !strncmp(p, "DER:,", 4)) + if ((strlen(p) >= 4) && !strncmp(p, "DER:", 4)) { p+=4; gen_type = 1; } - if ((strlen(p) >= 5) && !strncmp(p, "ASN1:,", 5)) + else if ((strlen(p) >= 5) && !strncmp(p, "ASN1:", 5)) { p+=5; gen_type = 2;