summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/x_name.c')
-rw-r--r--src/lib/libcrypto/asn1/x_name.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/x_name.c b/src/lib/libcrypto/asn1/x_name.c
index a7f0e14d13..d77702e473 100644
--- a/src/lib/libcrypto/asn1/x_name.c
+++ b/src/lib/libcrypto/asn1/x_name.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_name.c,v 1.21 2015/02/09 15:05:59 jsing Exp $ */ 1/* $OpenBSD: x_name.c,v 1.22 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 *
@@ -117,7 +117,12 @@ X509_NAME_ENTRY_free(X509_NAME_ENTRY *a)
117{ 117{
118 ASN1_item_free((ASN1_VALUE *)a, &X509_NAME_ENTRY_it); 118 ASN1_item_free((ASN1_VALUE *)a, &X509_NAME_ENTRY_it);
119} 119}
120IMPLEMENT_ASN1_DUP_FUNCTION(X509_NAME_ENTRY) 120
121X509_NAME_ENTRY *
122X509_NAME_ENTRY_dup(X509_NAME_ENTRY *x)
123{
124 return ASN1_item_dup(ASN1_ITEM_rptr(X509_NAME_ENTRY), x);
125}
121 126
122/* For the "Name" type we need a SEQUENCE OF { SET OF X509_NAME_ENTRY } 127/* For the "Name" type we need a SEQUENCE OF { SET OF X509_NAME_ENTRY }
123 * so declare two template wrappers for this 128 * so declare two template wrappers for this
@@ -174,7 +179,12 @@ X509_NAME_free(X509_NAME *a)
174{ 179{
175 ASN1_item_free((ASN1_VALUE *)a, &X509_NAME_it); 180 ASN1_item_free((ASN1_VALUE *)a, &X509_NAME_it);
176} 181}
177IMPLEMENT_ASN1_DUP_FUNCTION(X509_NAME) 182
183X509_NAME *
184X509_NAME_dup(X509_NAME *x)
185{
186 return ASN1_item_dup(ASN1_ITEM_rptr(X509_NAME), x);
187}
178 188
179static int 189static int
180x509_name_ex_new(ASN1_VALUE **val, const ASN1_ITEM *it) 190x509_name_ex_new(ASN1_VALUE **val, const ASN1_ITEM *it)