diff options
author | jsing <> | 2015-09-30 17:30:16 +0000 |
---|---|---|
committer | jsing <> | 2015-09-30 17:30:16 +0000 |
commit | 1c7e31c2bbb07475f068a459f144cb492d148ec2 (patch) | |
tree | bd42964b2b7e65328abe72ae9a01fed5d43e31bd /src/lib/libcrypto/x509/x509_r2x.c | |
parent | 91af0933b080d8e84e238dd366f91808c0cdaae3 (diff) | |
download | openbsd-1c7e31c2bbb07475f068a459f144cb492d148ec2.tar.gz openbsd-1c7e31c2bbb07475f068a459f144cb492d148ec2.tar.bz2 openbsd-1c7e31c2bbb07475f068a459f144cb492d148ec2.zip |
Replace M_ASN1_INTEGER_(new|free) with ASN1_INTEGER_(new|free) - this is
different from the macro expansion, but the result is the same. Also
replace some ASN1_STRING_dup() with ASN1_INTEGER_dup().
ok beck@ doug@
Diffstat (limited to 'src/lib/libcrypto/x509/x509_r2x.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_r2x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_r2x.c b/src/lib/libcrypto/x509/x509_r2x.c index 9a9a59d9bb..76faa29b7f 100644 --- a/src/lib/libcrypto/x509/x509_r2x.c +++ b/src/lib/libcrypto/x509/x509_r2x.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_r2x.c,v 1.9 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: x509_r2x.c,v 1.10 2015/09/30 17:30:16 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -82,7 +82,7 @@ X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey) | |||
82 | xi = ret->cert_info; | 82 | xi = ret->cert_info; |
83 | 83 | ||
84 | if (sk_X509_ATTRIBUTE_num(r->req_info->attributes) != 0) { | 84 | if (sk_X509_ATTRIBUTE_num(r->req_info->attributes) != 0) { |
85 | if ((xi->version = M_ASN1_INTEGER_new()) == NULL) | 85 | if ((xi->version = ASN1_INTEGER_new()) == NULL) |
86 | goto err; | 86 | goto err; |
87 | if (!ASN1_INTEGER_set(xi->version, 2)) | 87 | if (!ASN1_INTEGER_set(xi->version, 2)) |
88 | goto err; | 88 | goto err; |