summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_req.c
diff options
context:
space:
mode:
authorjsing <>2015-02-10 04:21:50 +0000
committerjsing <>2015-02-10 04:21:50 +0000
commit803fe92d2ba2e99892a8bb84620d364da4518cb7 (patch)
tree08b1f7d61accebd33520532c3d344995d3a51ea4 /src/lib/libcrypto/asn1/x_req.c
parent64e9476b7bc2ceaca55b2f0f7a5107d5a8838e5d (diff)
downloadopenbsd-803fe92d2ba2e99892a8bb84620d364da4518cb7.tar.gz
openbsd-803fe92d2ba2e99892a8bb84620d364da4518cb7.tar.bz2
openbsd-803fe92d2ba2e99892a8bb84620d364da4518cb7.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 'src/lib/libcrypto/asn1/x_req.c')
-rw-r--r--src/lib/libcrypto/asn1/x_req.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/x_req.c b/src/lib/libcrypto/asn1/x_req.c
index 89b2d88d15..42c7adb298 100644
--- a/src/lib/libcrypto/asn1/x_req.c
+++ b/src/lib/libcrypto/asn1/x_req.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_req.c,v 1.11 2015/02/09 15:05:59 jsing Exp $ */ 1/* $OpenBSD: x_req.c,v 1.12 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 *
@@ -159,4 +159,9 @@ X509_REQ_free(X509_REQ *a)
159{ 159{
160 ASN1_item_free((ASN1_VALUE *)a, &X509_REQ_it); 160 ASN1_item_free((ASN1_VALUE *)a, &X509_REQ_it);
161} 161}
162IMPLEMENT_ASN1_DUP_FUNCTION(X509_REQ) 162
163X509_REQ *
164X509_REQ_dup(X509_REQ *x)
165{
166 return ASN1_item_dup(ASN1_ITEM_rptr(X509_REQ), x);
167}