summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_exten.c
diff options
context:
space:
mode:
authorjsing <>2015-02-10 04:21:50 +0000
committerjsing <>2015-02-10 04:21:50 +0000
commit9bd525742fa9bbaf8f56cda1167eb91c447404a5 (patch)
tree08b1f7d61accebd33520532c3d344995d3a51ea4 /src/lib/libcrypto/asn1/x_exten.c
parent0e4218e3e293b3085109f78bed8948a0bf9f1511 (diff)
downloadopenbsd-9bd525742fa9bbaf8f56cda1167eb91c447404a5.tar.gz
openbsd-9bd525742fa9bbaf8f56cda1167eb91c447404a5.tar.bz2
openbsd-9bd525742fa9bbaf8f56cda1167eb91c447404a5.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_exten.c')
-rw-r--r--src/lib/libcrypto/asn1/x_exten.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/x_exten.c b/src/lib/libcrypto/asn1/x_exten.c
index 40c521ec80..ad26a9e851 100644
--- a/src/lib/libcrypto/asn1/x_exten.c
+++ b/src/lib/libcrypto/asn1/x_exten.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_exten.c,v 1.10 2015/02/09 15:05:59 jsing Exp $ */ 1/* $OpenBSD: x_exten.c,v 1.11 2015/02/10 04:21:50 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 2000. 3 * project 2000.
4 */ 4 */
@@ -97,4 +97,9 @@ X509_EXTENSION_free(X509_EXTENSION *a)
97 ASN1_item_free((ASN1_VALUE *)a, &X509_EXTENSION_it); 97 ASN1_item_free((ASN1_VALUE *)a, &X509_EXTENSION_it);
98} 98}
99IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS) 99IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
100IMPLEMENT_ASN1_DUP_FUNCTION(X509_EXTENSION) 100
101X509_EXTENSION *
102X509_EXTENSION_dup(X509_EXTENSION *x)
103{
104 return ASN1_item_dup(ASN1_ITEM_rptr(X509_EXTENSION), x);
105}