summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_sig.c
diff options
context:
space:
mode:
authorjsing <>2015-02-09 15:05:59 +0000
committerjsing <>2015-02-09 15:05:59 +0000
commit42f7780549de5b7b5e3e7943cfef87e0e41970fc (patch)
tree80e095d0af9796de5fe6127773c94c044f1f68bd /src/lib/libcrypto/asn1/x_sig.c
parentb1708fb06623ef1ece520a3f98163861f92085de (diff)
downloadopenbsd-42f7780549de5b7b5e3e7943cfef87e0e41970fc.tar.gz
openbsd-42f7780549de5b7b5e3e7943cfef87e0e41970fc.tar.bz2
openbsd-42f7780549de5b7b5e3e7943cfef87e0e41970fc.zip
Expand the IMPLEMENT_ASN1_FUNCTIONS 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_sig.c')
-rw-r--r--src/lib/libcrypto/asn1/x_sig.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/x_sig.c b/src/lib/libcrypto/asn1/x_sig.c
index ab4546e3ca..7c4c8c9c55 100644
--- a/src/lib/libcrypto/asn1/x_sig.c
+++ b/src/lib/libcrypto/asn1/x_sig.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_sig.c,v 1.8 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: x_sig.c,v 1.9 2015/02/09 15:05:59 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 *
@@ -66,4 +66,28 @@ ASN1_SEQUENCE(X509_SIG) = {
66 ASN1_SIMPLE(X509_SIG, digest, ASN1_OCTET_STRING) 66 ASN1_SIMPLE(X509_SIG, digest, ASN1_OCTET_STRING)
67} ASN1_SEQUENCE_END(X509_SIG) 67} ASN1_SEQUENCE_END(X509_SIG)
68 68
69IMPLEMENT_ASN1_FUNCTIONS(X509_SIG) 69
70X509_SIG *
71d2i_X509_SIG(X509_SIG **a, const unsigned char **in, long len)
72{
73 return (X509_SIG *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
74 &X509_SIG_it);
75}
76
77int
78i2d_X509_SIG(X509_SIG *a, unsigned char **out)
79{
80 return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_SIG_it);
81}
82
83X509_SIG *
84X509_SIG_new(void)
85{
86 return (X509_SIG *)ASN1_item_new(&X509_SIG_it);
87}
88
89void
90X509_SIG_free(X509_SIG *a)
91{
92 ASN1_item_free((ASN1_VALUE *)a, &X509_SIG_it);
93}