summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/Symbols.list3
-rw-r--r--src/lib/libcrypto/Symbols.namespace3
-rw-r--r--src/lib/libcrypto/asn1/a_time_tm.c5
-rw-r--r--src/lib/libcrypto/asn1/asn1.h5
-rw-r--r--src/lib/libcrypto/asn1/asn1_local.h6
-rw-r--r--src/lib/libcrypto/hidden/openssl/asn1.h5
-rw-r--r--src/lib/libcrypto/ocsp/ocsp_cl.c3
7 files changed, 10 insertions, 20 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index 5a6ad4ac30..e21e4d5a9b 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -129,7 +129,6 @@ ASN1_TIME_print
129ASN1_TIME_set 129ASN1_TIME_set
130ASN1_TIME_set_string 130ASN1_TIME_set_string
131ASN1_TIME_set_string_X509 131ASN1_TIME_set_string_X509
132ASN1_TIME_set_tm
133ASN1_TIME_to_generalizedtime 132ASN1_TIME_to_generalizedtime
134ASN1_TIME_to_tm 133ASN1_TIME_to_tm
135ASN1_TYPE_cmp 134ASN1_TYPE_cmp
@@ -198,9 +197,7 @@ ASN1_put_eoc
198ASN1_put_object 197ASN1_put_object
199ASN1_tag2bit 198ASN1_tag2bit
200ASN1_tag2str 199ASN1_tag2str
201ASN1_time_parse
202ASN1_time_tm_clamp_notafter 200ASN1_time_tm_clamp_notafter
203ASN1_time_tm_cmp
204ASRange_free 201ASRange_free
205ASRange_it 202ASRange_it
206ASRange_new 203ASRange_new
diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace
index 6bcd61696e..c35225e798 100644
--- a/src/lib/libcrypto/Symbols.namespace
+++ b/src/lib/libcrypto/Symbols.namespace
@@ -1025,7 +1025,6 @@ _libre_ASN1_TIME_normalize
1025_libre_ASN1_TIME_set_string_X509 1025_libre_ASN1_TIME_set_string_X509
1026_libre_ASN1_TIME_diff 1026_libre_ASN1_TIME_diff
1027_libre_ASN1_TIME_set 1027_libre_ASN1_TIME_set
1028_libre_ASN1_TIME_set_tm
1029_libre_ASN1_TIME_adj 1028_libre_ASN1_TIME_adj
1030_libre_ASN1_TIME_check 1029_libre_ASN1_TIME_check
1031_libre_ASN1_TIME_to_generalizedtime 1030_libre_ASN1_TIME_to_generalizedtime
@@ -1103,8 +1102,6 @@ _libre_ASN1_item_print
1103_libre_SMIME_crlf_copy 1102_libre_SMIME_crlf_copy
1104_libre_SMIME_text 1103_libre_SMIME_text
1105_libre_ERR_load_ASN1_strings 1104_libre_ERR_load_ASN1_strings
1106_libre_ASN1_time_parse
1107_libre_ASN1_time_tm_cmp
1108_libre_BIO_set_flags 1105_libre_BIO_set_flags
1109_libre_BIO_test_flags 1106_libre_BIO_test_flags
1110_libre_BIO_clear_flags 1107_libre_BIO_clear_flags
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}
63LCRYPTO_ALIAS(ASN1_time_tm_cmp);
64 63
65int 64int
66ASN1_time_tm_clamp_notafter(struct tm *tm) 65ASN1_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}
348LCRYPTO_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}
420LCRYPTO_ALIAS(ASN1_TIME_set_tm);
421 418
422ASN1_TIME * 419ASN1_TIME *
423ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day, long offset_sec) 420ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day, long offset_sec)
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index c9099465db..63458db944 100644
--- a/src/lib/libcrypto/asn1/asn1.h
+++ b/src/lib/libcrypto/asn1/asn1.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1.h,v 1.90 2024/03/02 09:04:07 tb Exp $ */ 1/* $OpenBSD: asn1.h,v 1.91 2024/03/02 09:08:41 tb 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 *
@@ -684,7 +684,6 @@ int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from,
684extern const ASN1_ITEM ASN1_OCTET_STRING_NDEF_it; 684extern const ASN1_ITEM ASN1_OCTET_STRING_NDEF_it;
685 685
686ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t); 686ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);
687ASN1_TIME *ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm);
688ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day, 687ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day,
689 long offset_sec); 688 long offset_sec);
690int ASN1_TIME_check(const ASN1_TIME *t); 689int ASN1_TIME_check(const ASN1_TIME *t);
@@ -1125,8 +1124,6 @@ void ERR_load_ASN1_strings(void);
1125#define ASN1_R_WRONG_TAG 168 1124#define ASN1_R_WRONG_TAG 168
1126#define ASN1_R_WRONG_TYPE 169 1125#define ASN1_R_WRONG_TYPE 169
1127 1126
1128int ASN1_time_parse(const char *_bytes, size_t _len, struct tm *_tm, int _mode);
1129int ASN1_time_tm_cmp(struct tm *_tm1, struct tm *_tm2);
1130#ifdef __cplusplus 1127#ifdef __cplusplus
1131} 1128}
1132#endif 1129#endif
diff --git a/src/lib/libcrypto/asn1/asn1_local.h b/src/lib/libcrypto/asn1/asn1_local.h
index a5478faa0b..e645dcb18e 100644
--- a/src/lib/libcrypto/asn1/asn1_local.h
+++ b/src/lib/libcrypto/asn1/asn1_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_local.h,v 1.8 2024/02/18 16:28:38 tb Exp $ */ 1/* $OpenBSD: asn1_local.h,v 1.9 2024/03/02 09:08:41 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -187,4 +187,8 @@ void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
187int ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); 187int ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
188void ASN1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt); 188void ASN1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
189 189
190ASN1_TIME *ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm);
191int ASN1_time_parse(const char *_bytes, size_t _len, struct tm *_tm, int _mode);
192int ASN1_time_tm_cmp(struct tm *_tm1, struct tm *_tm2);
193
190__END_HIDDEN_DECLS 194__END_HIDDEN_DECLS
diff --git a/src/lib/libcrypto/hidden/openssl/asn1.h b/src/lib/libcrypto/hidden/openssl/asn1.h
index 169475a0ba..12d9618f80 100644
--- a/src/lib/libcrypto/hidden/openssl/asn1.h
+++ b/src/lib/libcrypto/hidden/openssl/asn1.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1.h,v 1.11 2024/03/02 09:04:07 tb Exp $ */ 1/* $OpenBSD: asn1.h,v 1.12 2024/03/02 09:08:41 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -154,7 +154,6 @@ LCRYPTO_USED(ASN1_TIME_normalize);
154LCRYPTO_USED(ASN1_TIME_set_string_X509); 154LCRYPTO_USED(ASN1_TIME_set_string_X509);
155LCRYPTO_USED(ASN1_TIME_diff); 155LCRYPTO_USED(ASN1_TIME_diff);
156LCRYPTO_USED(ASN1_TIME_set); 156LCRYPTO_USED(ASN1_TIME_set);
157LCRYPTO_USED(ASN1_TIME_set_tm);
158LCRYPTO_USED(ASN1_TIME_adj); 157LCRYPTO_USED(ASN1_TIME_adj);
159LCRYPTO_USED(ASN1_TIME_check); 158LCRYPTO_USED(ASN1_TIME_check);
160LCRYPTO_USED(ASN1_TIME_to_generalizedtime); 159LCRYPTO_USED(ASN1_TIME_to_generalizedtime);
@@ -232,7 +231,5 @@ LCRYPTO_USED(ASN1_item_print);
232LCRYPTO_USED(SMIME_crlf_copy); 231LCRYPTO_USED(SMIME_crlf_copy);
233LCRYPTO_USED(SMIME_text); 232LCRYPTO_USED(SMIME_text);
234LCRYPTO_USED(ERR_load_ASN1_strings); 233LCRYPTO_USED(ERR_load_ASN1_strings);
235LCRYPTO_USED(ASN1_time_parse);
236LCRYPTO_USED(ASN1_time_tm_cmp);
237 234
238#endif /* _LIBCRYPTO_ASN1_H */ 235#endif /* _LIBCRYPTO_ASN1_H */
diff --git a/src/lib/libcrypto/ocsp/ocsp_cl.c b/src/lib/libcrypto/ocsp/ocsp_cl.c
index 89113f78b8..5ef2226785 100644
--- a/src/lib/libcrypto/ocsp/ocsp_cl.c
+++ b/src/lib/libcrypto/ocsp/ocsp_cl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp_cl.c,v 1.23 2023/07/08 10:44:00 beck Exp $ */ 1/* $OpenBSD: ocsp_cl.c,v 1.24 2024/03/02 09:08:41 tb Exp $ */
2/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL 2/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
3 * project. */ 3 * project. */
4 4
@@ -71,6 +71,7 @@
71#include <openssl/x509.h> 71#include <openssl/x509.h>
72#include <openssl/x509v3.h> 72#include <openssl/x509v3.h>
73 73
74#include "asn1_local.h"
74#include "ocsp_local.h" 75#include "ocsp_local.h"
75 76
76/* Utility functions related to sending OCSP requests and extracting 77/* Utility functions related to sending OCSP requests and extracting