diff options
author | tb <> | 2024-03-02 09:08:41 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 09:08:41 +0000 |
commit | 571fe2f9899bd7827fb5664d23260ca3313b4042 (patch) | |
tree | 4587a5a5615e0deb2c1e1b46cb85fcf3f88e91e9 /src/lib/libcrypto/asn1/a_time_tm.c | |
parent | 072e3a802a3e57c8384497865cc93a9245048694 (diff) | |
download | openbsd-571fe2f9899bd7827fb5664d23260ca3313b4042.tar.gz openbsd-571fe2f9899bd7827fb5664d23260ca3313b4042.tar.bz2 openbsd-571fe2f9899bd7827fb5664d23260ca3313b4042.zip |
Remove beck's ASN.1 time API from public visibility
This API was needed since OpenSSL didn't have one. We now have variants
of OpenSSL's API and will also expose BoringSSL's complementary API. The
users of this API were ported to the OpenSSL variants and some may switch
to BoringSSL's in the future. Part of it is still used internally.
ASN1_time_tm_clamp_notafter() is still used by libtls (and only libtls).
This will be fixed in a future bump.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/asn1/a_time_tm.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_time_tm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/a_time_tm.c b/src/lib/libcrypto/asn1/a_time_tm.c index ea94d2f59d..dc568d6636 100644 --- a/src/lib/libcrypto/asn1/a_time_tm.c +++ b/src/lib/libcrypto/asn1/a_time_tm.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_time_tm.c,v 1.31 2023/10/01 22:14:36 tb Exp $ */ | 1 | /* $OpenBSD: a_time_tm.c,v 1.32 2024/03/02 09:08:41 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -60,7 +60,6 @@ ASN1_time_tm_cmp(struct tm *tm1, struct tm *tm2) | |||
60 | return (1); | 60 | return (1); |
61 | return 0; | 61 | return 0; |
62 | } | 62 | } |
63 | LCRYPTO_ALIAS(ASN1_time_tm_cmp); | ||
64 | 63 | ||
65 | int | 64 | int |
66 | ASN1_time_tm_clamp_notafter(struct tm *tm) | 65 | ASN1_time_tm_clamp_notafter(struct tm *tm) |
@@ -345,7 +344,6 @@ ASN1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode) | |||
345 | 344 | ||
346 | return -1; | 345 | return -1; |
347 | } | 346 | } |
348 | LCRYPTO_ALIAS(ASN1_time_parse); | ||
349 | 347 | ||
350 | /* | 348 | /* |
351 | * ASN1_TIME generic functions. | 349 | * ASN1_TIME generic functions. |
@@ -417,7 +415,6 @@ ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm) | |||
417 | return NULL; | 415 | return NULL; |
418 | return (ASN1_TIME_adj(s, t, 0, 0)); | 416 | return (ASN1_TIME_adj(s, t, 0, 0)); |
419 | } | 417 | } |
420 | LCRYPTO_ALIAS(ASN1_TIME_set_tm); | ||
421 | 418 | ||
422 | ASN1_TIME * | 419 | ASN1_TIME * |
423 | ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day, long offset_sec) | 420 | ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day, long offset_sec) |