summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-02-10 06:37:38 +0000
committerjsing <jsing@openbsd.org>2015-02-10 06:37:38 +0000
commit402dcee28a6857ded415d16c11d48d2a2801408d (patch)
tree9805f89957cf1a0656c4bfa0b2fe00e854b69a42 /lib/libssl/src
parentExpand IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname macros that got missed. (diff)
downloadwireguard-openbsd-402dcee28a6857ded415d16c11d48d2a2801408d.tar.xz
wireguard-openbsd-402dcee28a6857ded415d16c11d48d2a2801408d.zip
Expand IMPLEMENT_ASN1_NDEF_FUNCTION and IMPLEMENT_ASN1_PRINT_FUNCTION
macros so that the code is visible and functions can be readily located. Change has been scripted and there is no change to the generated assembly. Discussed with beck@ miod@ tedu@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/pkcs7/pk7_asn1.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/libssl/src/crypto/pkcs7/pk7_asn1.c b/lib/libssl/src/crypto/pkcs7/pk7_asn1.c
index 6a1046bcb89..2699ace9881 100644
--- a/lib/libssl/src/crypto/pkcs7/pk7_asn1.c
+++ b/lib/libssl/src/crypto/pkcs7/pk7_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pk7_asn1.c,v 1.10 2015/02/10 05:25:45 jsing Exp $ */
+/* $OpenBSD: pk7_asn1.c,v 1.11 2015/02/10 06:37:38 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -141,7 +141,12 @@ PKCS7_free(PKCS7 *a)
{
ASN1_item_free((ASN1_VALUE *)a, &PKCS7_it);
}
-IMPLEMENT_ASN1_NDEF_FUNCTION(PKCS7)
+
+int
+i2d_PKCS7_NDEF(PKCS7 *a, unsigned char **out)
+{
+ return ASN1_item_ndef_i2d((ASN1_VALUE *)a, out, &PKCS7_it);
+}
PKCS7 *
PKCS7_dup(PKCS7 *x)
@@ -498,4 +503,10 @@ ASN1_ITEM_TEMPLATE(PKCS7_ATTR_VERIFY) =
ASN1_TFLG_UNIVERSAL, V_ASN1_SET, PKCS7_ATTRIBUTES, X509_ATTRIBUTE)
ASN1_ITEM_TEMPLATE_END(PKCS7_ATTR_VERIFY)
-IMPLEMENT_ASN1_PRINT_FUNCTION(PKCS7)
+
+int
+PKCS7_print_ctx(BIO *out, PKCS7 *x, int indent, const ASN1_PCTX *pctx)
+{
+ return ASN1_item_print(out, (ASN1_VALUE *)x, indent,
+ &PKCS7_it, pctx);
+}