summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_attrib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/x_attrib.c')
-rw-r--r--src/lib/libcrypto/asn1/x_attrib.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/x_attrib.c b/src/lib/libcrypto/asn1/x_attrib.c
index aafd5dd485..4306bd6240 100644
--- a/src/lib/libcrypto/asn1/x_attrib.c
+++ b/src/lib/libcrypto/asn1/x_attrib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_attrib.c,v 1.10 2015/02/09 15:05:59 jsing Exp $ */ 1/* $OpenBSD: x_attrib.c,v 1.11 2015/02/10 04:21:50 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 *
@@ -118,7 +118,12 @@ X509_ATTRIBUTE_free(X509_ATTRIBUTE *a)
118{ 118{
119 ASN1_item_free((ASN1_VALUE *)a, &X509_ATTRIBUTE_it); 119 ASN1_item_free((ASN1_VALUE *)a, &X509_ATTRIBUTE_it);
120} 120}
121IMPLEMENT_ASN1_DUP_FUNCTION(X509_ATTRIBUTE) 121
122X509_ATTRIBUTE *
123X509_ATTRIBUTE_dup(X509_ATTRIBUTE *x)
124{
125 return ASN1_item_dup(ASN1_ITEM_rptr(X509_ATTRIBUTE), x);
126}
122 127
123X509_ATTRIBUTE * 128X509_ATTRIBUTE *
124X509_ATTRIBUTE_create(int nid, int atrtype, void *value) 129X509_ATTRIBUTE_create(int nid, int atrtype, void *value)