summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509v3
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-09-26 17:38:42 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-09-26 17:38:42 +0000
commit7660c3d28322af77289e95c1315a4cc84185bd06 (patch)
treed2379ddb408aa82e422f7b558b7c6e8711f53e07 /lib/libcrypto/x509v3
parent3a9110179c5e59525588f04016abeb3b8b5a3cfa (diff)
Use ASN1_item_dup() instead of ASN1_dup().
ok bcook@
Diffstat (limited to 'lib/libcrypto/x509v3')
-rw-r--r--lib/libcrypto/x509v3/v3_genn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/x509v3/v3_genn.c b/lib/libcrypto/x509v3/v3_genn.c
index 9943fd33d28..a6b7a18b17b 100644
--- a/lib/libcrypto/x509v3/v3_genn.c
+++ b/lib/libcrypto/x509v3/v3_genn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_genn.c,v 1.11 2015/07/25 16:00:14 jsing Exp $ */
+/* $OpenBSD: v3_genn.c,v 1.12 2015/09/26 17:38:41 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -321,8 +321,7 @@ GENERAL_NAMES_free(GENERAL_NAMES *a)
GENERAL_NAME *
GENERAL_NAME_dup(GENERAL_NAME *a)
{
- return (GENERAL_NAME *)ASN1_dup((i2d_of_void *)i2d_GENERAL_NAME,
- (d2i_of_void *)d2i_GENERAL_NAME, (char *)a);
+ return ASN1_item_dup(&GENERAL_NAME_it, a);
}
/* Returns 0 if they are equal, != 0 otherwise. */