summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/x_val.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_val.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_val.c')
-rw-r--r--src/lib/libcrypto/asn1/x_val.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/x_val.c b/src/lib/libcrypto/asn1/x_val.c
index da9d16346b..27835e94da 100644
--- a/src/lib/libcrypto/asn1/x_val.c
+++ b/src/lib/libcrypto/asn1/x_val.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_val.c,v 1.8 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: x_val.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_VAL) = {
66 ASN1_SIMPLE(X509_VAL, notAfter, ASN1_TIME) 66 ASN1_SIMPLE(X509_VAL, notAfter, ASN1_TIME)
67} ASN1_SEQUENCE_END(X509_VAL) 67} ASN1_SEQUENCE_END(X509_VAL)
68 68
69IMPLEMENT_ASN1_FUNCTIONS(X509_VAL) 69
70X509_VAL *
71d2i_X509_VAL(X509_VAL **a, const unsigned char **in, long len)
72{
73 return (X509_VAL *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
74 &X509_VAL_it);
75}
76
77int
78i2d_X509_VAL(X509_VAL *a, unsigned char **out)
79{
80 return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_VAL_it);
81}
82
83X509_VAL *
84X509_VAL_new(void)
85{
86 return (X509_VAL *)ASN1_item_new(&X509_VAL_it);
87}
88
89void
90X509_VAL_free(X509_VAL *a)
91{
92 ASN1_item_free((ASN1_VALUE *)a, &X509_VAL_it);
93}