aboutsummaryrefslogtreecommitdiff
path: root/crypto/x509v3/v3_conf.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-05-02 11:41:40 +0000
committerDr. Stephen Henson <steve@openssl.org>2003-05-02 11:41:40 +0000
commitb9d2d20086c0ba7631412618974e5122af6fcb2d (patch)
tree7b1cfd73633d4af622e30260b9b30e09a7531002 /crypto/x509v3/v3_conf.c
parentb9d7ca974892a9ee380e380f2956c747e100c614 (diff)
downloadopenssl-b9d2d20086c0ba7631412618974e5122af6fcb2d.zip
openssl-b9d2d20086c0ba7631412618974e5122af6fcb2d.tar.gz
openssl-b9d2d20086c0ba7631412618974e5122af6fcb2d.tar.bz2
Make DER option work again.
Fix typo.
Diffstat (limited to 'crypto/x509v3/v3_conf.c')
-rw-r--r--crypto/x509v3/v3_conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509v3/v3_conf.c b/crypto/x509v3/v3_conf.c
index 7e813db..9a89e43 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;