diff options
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 3be557cbc0..c6160b90b0 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.9 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: x509_set.c,v 1.10 2015/07/29 14:58:34 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 | * |
@@ -84,7 +84,7 @@ 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 = M_ASN1_INTEGER_dup(serial); | 87 | in = ASN1_STRING_dup(serial); |
88 | if (in != NULL) { | 88 | if (in != NULL) { |
89 | M_ASN1_INTEGER_free(x->cert_info->serialNumber); | 89 | M_ASN1_INTEGER_free(x->cert_info->serialNumber); |
90 | x->cert_info->serialNumber = in; | 90 | x->cert_info->serialNumber = in; |
@@ -118,7 +118,7 @@ X509_set_notBefore(X509 *x, const ASN1_TIME *tm) | |||
118 | return (0); | 118 | return (0); |
119 | in = x->cert_info->validity->notBefore; | 119 | in = x->cert_info->validity->notBefore; |
120 | if (in != tm) { | 120 | if (in != tm) { |
121 | in = M_ASN1_TIME_dup(tm); | 121 | in = ASN1_STRING_dup(tm); |
122 | if (in != NULL) { | 122 | if (in != NULL) { |
123 | M_ASN1_TIME_free(x->cert_info->validity->notBefore); | 123 | M_ASN1_TIME_free(x->cert_info->validity->notBefore); |
124 | x->cert_info->validity->notBefore = in; | 124 | x->cert_info->validity->notBefore = in; |
@@ -136,7 +136,7 @@ X509_set_notAfter(X509 *x, const ASN1_TIME *tm) | |||
136 | return (0); | 136 | return (0); |
137 | in = x->cert_info->validity->notAfter; | 137 | in = x->cert_info->validity->notAfter; |
138 | if (in != tm) { | 138 | if (in != tm) { |
139 | in = M_ASN1_TIME_dup(tm); | 139 | in = ASN1_STRING_dup(tm); |
140 | if (in != NULL) { | 140 | if (in != NULL) { |
141 | M_ASN1_TIME_free(x->cert_info->validity->notAfter); | 141 | M_ASN1_TIME_free(x->cert_info->validity->notAfter); |
142 | x->cert_info->validity->notAfter = in; | 142 | x->cert_info->validity->notAfter = in; |