summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_genn.c
diff options
context:
space:
mode:
authorjsing <>2015-09-26 17:38:41 +0000
committerjsing <>2015-09-26 17:38:41 +0000
commit5fe1e0f15875516f1ff130d8c4199d86f1abf110 (patch)
treed0df91d5c19be59301d32e1dd605695abd05cf17 /src/lib/libcrypto/x509v3/v3_genn.c
parent54b589383a8d0f4f198375132fea9bc8f69f47fd (diff)
downloadopenbsd-5fe1e0f15875516f1ff130d8c4199d86f1abf110.tar.gz
openbsd-5fe1e0f15875516f1ff130d8c4199d86f1abf110.tar.bz2
openbsd-5fe1e0f15875516f1ff130d8c4199d86f1abf110.zip
Use ASN1_item_dup() instead of ASN1_dup().
ok bcook@
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_genn.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_genn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_genn.c b/src/lib/libcrypto/x509v3/v3_genn.c
index 9943fd33d2..a6b7a18b17 100644
--- a/src/lib/libcrypto/x509v3/v3_genn.c
+++ b/src/lib/libcrypto/x509v3/v3_genn.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_genn.c,v 1.11 2015/07/25 16:00:14 jsing Exp $ */ 1/* $OpenBSD: v3_genn.c,v 1.12 2015/09/26 17:38:41 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 1999. 3 * project 1999.
4 */ 4 */
@@ -321,8 +321,7 @@ GENERAL_NAMES_free(GENERAL_NAMES *a)
321GENERAL_NAME * 321GENERAL_NAME *
322GENERAL_NAME_dup(GENERAL_NAME *a) 322GENERAL_NAME_dup(GENERAL_NAME *a)
323{ 323{
324 return (GENERAL_NAME *)ASN1_dup((i2d_of_void *)i2d_GENERAL_NAME, 324 return ASN1_item_dup(&GENERAL_NAME_it, a);
325 (d2i_of_void *)d2i_GENERAL_NAME, (char *)a);
326} 325}
327 326
328/* Returns 0 if they are equal, != 0 otherwise. */ 327/* Returns 0 if they are equal, != 0 otherwise. */