diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/x_val.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/x_val.c | 28 |
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 | ||
| 69 | IMPLEMENT_ASN1_FUNCTIONS(X509_VAL) | 69 | |
| 70 | X509_VAL * | ||
| 71 | d2i_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 | |||
| 77 | int | ||
| 78 | i2d_X509_VAL(X509_VAL *a, unsigned char **out) | ||
| 79 | { | ||
| 80 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_VAL_it); | ||
| 81 | } | ||
| 82 | |||
| 83 | X509_VAL * | ||
| 84 | X509_VAL_new(void) | ||
| 85 | { | ||
| 86 | return (X509_VAL *)ASN1_item_new(&X509_VAL_it); | ||
| 87 | } | ||
| 88 | |||
| 89 | void | ||
| 90 | X509_VAL_free(X509_VAL *a) | ||
| 91 | { | ||
| 92 | ASN1_item_free((ASN1_VALUE *)a, &X509_VAL_it); | ||
| 93 | } | ||
