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_set.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_set.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_set.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_set.c b/src/lib/libcrypto/x509/x509_set.c index c6160b90b0..e77b49ea95 100644 --- a/src/lib/libcrypto/x509/x509_set.c +++ b/src/lib/libcrypto/x509/x509_set.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_set.c,v 1.10 2015/07/29 14:58:34 jsing Exp $ */ | 1 | /* $OpenBSD: x509_set.c,v 1.11 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 | * |
@@ -69,7 +69,7 @@ X509_set_version(X509 *x, long version) | |||
69 | if (x == NULL) | 69 | if (x == NULL) |
70 | return (0); | 70 | return (0); |
71 | if (x->cert_info->version == NULL) { | 71 | if (x->cert_info->version == NULL) { |
72 | if ((x->cert_info->version = M_ASN1_INTEGER_new()) == NULL) | 72 | if ((x->cert_info->version = ASN1_INTEGER_new()) == NULL) |
73 | return (0); | 73 | return (0); |
74 | } | 74 | } |
75 | return (ASN1_INTEGER_set(x->cert_info->version, version)); | 75 | return (ASN1_INTEGER_set(x->cert_info->version, version)); |
@@ -84,9 +84,9 @@ X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial) | |||
84 | return (0); | 84 | return (0); |
85 | in = x->cert_info->serialNumber; | 85 | in = x->cert_info->serialNumber; |
86 | if (in != serial) { | 86 | if (in != serial) { |
87 | in = ASN1_STRING_dup(serial); | 87 | in = ASN1_INTEGER_dup(serial); |
88 | if (in != NULL) { | 88 | if (in != NULL) { |
89 | M_ASN1_INTEGER_free(x->cert_info->serialNumber); | 89 | ASN1_INTEGER_free(x->cert_info->serialNumber); |
90 | x->cert_info->serialNumber = in; | 90 | x->cert_info->serialNumber = in; |
91 | } | 91 | } |
92 | } | 92 | } |