diff options
author | jsing <> | 2015-02-09 15:05:59 +0000 |
---|---|---|
committer | jsing <> | 2015-02-09 15:05:59 +0000 |
commit | 42f7780549de5b7b5e3e7943cfef87e0e41970fc (patch) | |
tree | 80e095d0af9796de5fe6127773c94c044f1f68bd /src/lib/libcrypto/asn1/x_sig.c | |
parent | b1708fb06623ef1ece520a3f98163861f92085de (diff) | |
download | openbsd-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.c | 28 |
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 | ||
69 | IMPLEMENT_ASN1_FUNCTIONS(X509_SIG) | 69 | |
70 | X509_SIG * | ||
71 | d2i_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 | |||
77 | int | ||
78 | i2d_X509_SIG(X509_SIG *a, unsigned char **out) | ||
79 | { | ||
80 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_SIG_it); | ||
81 | } | ||
82 | |||
83 | X509_SIG * | ||
84 | X509_SIG_new(void) | ||
85 | { | ||
86 | return (X509_SIG *)ASN1_item_new(&X509_SIG_it); | ||
87 | } | ||
88 | |||
89 | void | ||
90 | X509_SIG_free(X509_SIG *a) | ||
91 | { | ||
92 | ASN1_item_free((ASN1_VALUE *)a, &X509_SIG_it); | ||
93 | } | ||