diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_time.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/a_time.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/a_time.c b/src/lib/libcrypto/asn1/a_time.c index fda06d4b99..f4ddb4d5d8 100644 --- a/src/lib/libcrypto/asn1/a_time.c +++ b/src/lib/libcrypto/asn1/a_time.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_time.c,v 1.36 2022/11/26 16:08:50 tb Exp $ */ | 1 | /* $OpenBSD: a_time.c,v 1.37 2023/07/05 21:23:36 beck Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -84,12 +84,14 @@ ASN1_TIME_new(void) | |||
| 84 | { | 84 | { |
| 85 | return (ASN1_TIME *)ASN1_item_new(&ASN1_TIME_it); | 85 | return (ASN1_TIME *)ASN1_item_new(&ASN1_TIME_it); |
| 86 | } | 86 | } |
| 87 | LCRYPTO_ALIAS(ASN1_TIME_new); | ||
| 87 | 88 | ||
| 88 | void | 89 | void |
| 89 | ASN1_TIME_free(ASN1_TIME *a) | 90 | ASN1_TIME_free(ASN1_TIME *a) |
| 90 | { | 91 | { |
| 91 | ASN1_item_free((ASN1_VALUE *)a, &ASN1_TIME_it); | 92 | ASN1_item_free((ASN1_VALUE *)a, &ASN1_TIME_it); |
| 92 | } | 93 | } |
| 94 | LCRYPTO_ALIAS(ASN1_TIME_free); | ||
| 93 | 95 | ||
| 94 | int | 96 | int |
| 95 | ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm) | 97 | ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm) |
| @@ -104,6 +106,7 @@ ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm) | |||
| 104 | 106 | ||
| 105 | return asn1_time_time_t_to_tm(&now, tm); | 107 | return asn1_time_time_t_to_tm(&now, tm); |
| 106 | } | 108 | } |
| 109 | LCRYPTO_ALIAS(ASN1_TIME_to_tm); | ||
| 107 | 110 | ||
| 108 | int | 111 | int |
| 109 | ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, const ASN1_TIME *to) | 112 | ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, const ASN1_TIME *to) |
| @@ -117,6 +120,7 @@ ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, const ASN1_TIME *to) | |||
| 117 | 120 | ||
| 118 | return OPENSSL_gmtime_diff(pday, psec, &tm_from, &tm_to); | 121 | return OPENSSL_gmtime_diff(pday, psec, &tm_from, &tm_to); |
| 119 | } | 122 | } |
| 123 | LCRYPTO_ALIAS(ASN1_TIME_diff); | ||
| 120 | 124 | ||
| 121 | ASN1_TIME * | 125 | ASN1_TIME * |
| 122 | d2i_ASN1_TIME(ASN1_TIME **a, const unsigned char **in, long len) | 126 | d2i_ASN1_TIME(ASN1_TIME **a, const unsigned char **in, long len) |
| @@ -124,9 +128,11 @@ d2i_ASN1_TIME(ASN1_TIME **a, const unsigned char **in, long len) | |||
| 124 | return (ASN1_TIME *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | 128 | return (ASN1_TIME *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, |
| 125 | &ASN1_TIME_it); | 129 | &ASN1_TIME_it); |
| 126 | } | 130 | } |
| 131 | LCRYPTO_ALIAS(d2i_ASN1_TIME); | ||
| 127 | 132 | ||
| 128 | int | 133 | int |
| 129 | i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **out) | 134 | i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **out) |
| 130 | { | 135 | { |
| 131 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &ASN1_TIME_it); | 136 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &ASN1_TIME_it); |
| 132 | } | 137 | } |
| 138 | LCRYPTO_ALIAS(i2d_ASN1_TIME); | ||
