summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/asn1/x_req.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-02-10 04:21:50 +0000
committerjsing <jsing@openbsd.org>2015-02-10 04:21:50 +0000
commit5cfcf2a161124fc6895dfa244e77c0e413ec848e (patch)
treeeb785a353468169e07eedb987d613cb2879e9e3f /lib/libcrypto/asn1/x_req.c
parentGroundwork for better route support over multiple interfaces by (diff)
downloadwireguard-openbsd-5cfcf2a161124fc6895dfa244e77c0e413ec848e.tar.xz
wireguard-openbsd-5cfcf2a161124fc6895dfa244e77c0e413ec848e.zip
Expand the IMPLEMENT_ASN1_DUP_FUNCTION macro so that the code is visible
and functions can be readily located. Change has been scripted and the generated assembly only differs by changes to line numbers. Discussed with beck@ miod@ tedu@
Diffstat (limited to 'lib/libcrypto/asn1/x_req.c')
-rw-r--r--lib/libcrypto/asn1/x_req.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libcrypto/asn1/x_req.c b/lib/libcrypto/asn1/x_req.c
index 89b2d88d156..42c7adb2982 100644
--- a/lib/libcrypto/asn1/x_req.c
+++ b/lib/libcrypto/asn1/x_req.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x_req.c,v 1.11 2015/02/09 15:05:59 jsing Exp $ */
+/* $OpenBSD: x_req.c,v 1.12 2015/02/10 04:21:50 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -159,4 +159,9 @@ X509_REQ_free(X509_REQ *a)
{
ASN1_item_free((ASN1_VALUE *)a, &X509_REQ_it);
}
-IMPLEMENT_ASN1_DUP_FUNCTION(X509_REQ)
+
+X509_REQ *
+X509_REQ_dup(X509_REQ *x)
+{
+ return ASN1_item_dup(ASN1_ITEM_rptr(X509_REQ), x);
+}