summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/asn1/x_algor.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_algor.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_algor.c')
-rw-r--r--lib/libcrypto/asn1/x_algor.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libcrypto/asn1/x_algor.c b/lib/libcrypto/asn1/x_algor.c
index 7d264f9fd3a..63c4e028a6d 100644
--- a/lib/libcrypto/asn1/x_algor.c
+++ b/lib/libcrypto/asn1/x_algor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x_algor.c,v 1.14 2015/02/09 15:05:59 jsing Exp $ */
+/* $OpenBSD: x_algor.c,v 1.15 2015/02/10 04:21:50 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -96,7 +96,12 @@ X509_ALGOR_free(X509_ALGOR *a)
ASN1_item_free((ASN1_VALUE *)a, &X509_ALGOR_it);
}
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(X509_ALGORS, X509_ALGORS, X509_ALGORS)
-IMPLEMENT_ASN1_DUP_FUNCTION(X509_ALGOR)
+
+X509_ALGOR *
+X509_ALGOR_dup(X509_ALGOR *x)
+{
+ return ASN1_item_dup(ASN1_ITEM_rptr(X509_ALGOR), x);
+}
IMPLEMENT_STACK_OF(X509_ALGOR)
IMPLEMENT_ASN1_SET_OF(X509_ALGOR)