diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_req.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_req.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_req.c b/src/lib/libcrypto/x509/x509_req.c index dc4bc2639a..e6fc3c5df8 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.18 2015/09/30 17:30:16 jsing Exp $ */ | 1 | /* $OpenBSD: x509_req.c,v 1.19 2016/12/30 15:24:51 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 | * |
@@ -224,7 +224,7 @@ X509_REQ_get_extensions(X509_REQ *req) | |||
224 | return NULL; | 224 | return NULL; |
225 | p = ext->value.sequence->data; | 225 | p = ext->value.sequence->data; |
226 | return (STACK_OF(X509_EXTENSION) *)ASN1_item_d2i(NULL, &p, | 226 | return (STACK_OF(X509_EXTENSION) *)ASN1_item_d2i(NULL, &p, |
227 | ext->value.sequence->length, ASN1_ITEM_rptr(X509_EXTENSIONS)); | 227 | ext->value.sequence->length, &X509_EXTENSIONS_it); |
228 | } | 228 | } |
229 | 229 | ||
230 | /* Add a STACK_OF extensions to a certificate request: allow alternative OIDs | 230 | /* Add a STACK_OF extensions to a certificate request: allow alternative OIDs |
@@ -245,7 +245,7 @@ X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts, | |||
245 | at->type = V_ASN1_SEQUENCE; | 245 | at->type = V_ASN1_SEQUENCE; |
246 | /* Generate encoding of extensions */ | 246 | /* Generate encoding of extensions */ |
247 | at->value.sequence->length = ASN1_item_i2d((ASN1_VALUE *)exts, | 247 | at->value.sequence->length = ASN1_item_i2d((ASN1_VALUE *)exts, |
248 | &at->value.sequence->data, ASN1_ITEM_rptr(X509_EXTENSIONS)); | 248 | &at->value.sequence->data, &X509_EXTENSIONS_it); |
249 | if (!(attr = X509_ATTRIBUTE_new())) | 249 | if (!(attr = X509_ATTRIBUTE_new())) |
250 | goto err; | 250 | goto err; |
251 | if (!(attr->value.set = sk_ASN1_TYPE_new_null())) | 251 | if (!(attr->value.set = sk_ASN1_TYPE_new_null())) |