diff options
Diffstat (limited to 'src/lib/libcrypto/x509')
-rw-r--r-- | src/lib/libcrypto/x509/x509_r2x.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_req.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_set.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509cset.c | 8 |
4 files changed, 12 insertions, 12 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; |
diff --git a/src/lib/libcrypto/x509/x509_req.c b/src/lib/libcrypto/x509/x509_req.c index 8813f372cc..dc4bc2639a 100644 --- a/src/lib/libcrypto/x509/x509_req.c +++ b/src/lib/libcrypto/x509/x509_req.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_req.c,v 1.17 2015/03/15 22:52:17 doug Exp $ */ | 1 | /* $OpenBSD: x509_req.c,v 1.18 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 | * |
@@ -86,7 +86,7 @@ X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) | |||
86 | 86 | ||
87 | ri = ret->req_info; | 87 | ri = ret->req_info; |
88 | 88 | ||
89 | if ((ri->version = M_ASN1_INTEGER_new()) == NULL) | 89 | if ((ri->version = ASN1_INTEGER_new()) == NULL) |
90 | goto err; | 90 | goto err; |
91 | if (ASN1_INTEGER_set(ri->version, 0) == 0) | 91 | if (ASN1_INTEGER_set(ri->version, 0) == 0) |
92 | goto err; | 92 | goto err; |
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 | } |
diff --git a/src/lib/libcrypto/x509/x509cset.c b/src/lib/libcrypto/x509/x509cset.c index 94c419301a..a0fbdfbc3b 100644 --- a/src/lib/libcrypto/x509/x509cset.c +++ b/src/lib/libcrypto/x509/x509cset.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509cset.c,v 1.9 2015/07/29 14:58:34 jsing Exp $ */ | 1 | /* $OpenBSD: x509cset.c,v 1.10 2015/09/30 17:30:16 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2001. | 3 | * project 2001. |
4 | */ | 4 | */ |
@@ -69,7 +69,7 @@ X509_CRL_set_version(X509_CRL *x, long version) | |||
69 | if (x == NULL) | 69 | if (x == NULL) |
70 | return (0); | 70 | return (0); |
71 | if (x->crl->version == NULL) { | 71 | if (x->crl->version == NULL) { |
72 | if ((x->crl->version = M_ASN1_INTEGER_new()) == NULL) | 72 | if ((x->crl->version = ASN1_INTEGER_new()) == NULL) |
73 | return (0); | 73 | return (0); |
74 | } | 74 | } |
75 | return (ASN1_INTEGER_set(x->crl->version, version)); | 75 | return (ASN1_INTEGER_set(x->crl->version, version)); |
@@ -163,9 +163,9 @@ X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial) | |||
163 | return (0); | 163 | return (0); |
164 | in = x->serialNumber; | 164 | in = x->serialNumber; |
165 | if (in != serial) { | 165 | if (in != serial) { |
166 | in = ASN1_STRING_dup(serial); | 166 | in = ASN1_INTEGER_dup(serial); |
167 | if (in != NULL) { | 167 | if (in != NULL) { |
168 | M_ASN1_INTEGER_free(x->serialNumber); | 168 | ASN1_INTEGER_free(x->serialNumber); |
169 | x->serialNumber = in; | 169 | x->serialNumber = in; |
170 | } | 170 | } |
171 | } | 171 | } |