summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-07-04 14:39:43 +0000
committertb <>2022-07-04 14:39:43 +0000
commitecbc1a6b4599b214a592ae89efbbe4bb6f587c12 (patch)
tree28cabd6a01724415b815aac248be70004dd28d57 /src
parente01dfe14fcf1892b165bf4982fa7c7b5c1557c28 (diff)
downloadopenbsd-ecbc1a6b4599b214a592ae89efbbe4bb6f587c12.tar.gz
openbsd-ecbc1a6b4599b214a592ae89efbbe4bb6f587c12.tar.bz2
openbsd-ecbc1a6b4599b214a592ae89efbbe4bb6f587c12.zip
The OpenSSL API is called ASN1_TIME_set_string_X509() (uppercase x)
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/asn1/a_time_tm.c4
-rw-r--r--src/lib/libcrypto/asn1/asn1.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/a_time_tm.c b/src/lib/libcrypto/asn1/a_time_tm.c
index 88deec1d2a..cb677ae93e 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.23 2022/06/30 08:25:56 tb Exp $ */ 1/* $OpenBSD: a_time_tm.c,v 1.24 2022/07/04 14:39:43 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2015 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -598,7 +598,7 @@ ASN1_TIME_normalize(ASN1_TIME *t)
598} 598}
599 599
600int 600int
601ASN1_TIME_set_string_x509(ASN1_TIME *s, const char *str) 601ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str)
602{ 602{
603 return ASN1_TIME_set_string_internal(s, str, RFC5280); 603 return ASN1_TIME_set_string_internal(s, str, RFC5280);
604} 604}
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index 3ff3f51d34..3f9645a139 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.65 2022/06/27 13:54:57 beck Exp $ */ 1/* $OpenBSD: asn1.h,v 1.66 2022/07/04 14:39:43 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 *
@@ -724,7 +724,7 @@ int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
724int ASN1_TIME_compare(const ASN1_TIME *t1, const ASN1_TIME *t2); 724int ASN1_TIME_compare(const ASN1_TIME *t1, const ASN1_TIME *t2);
725int ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t2); 725int ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t2);
726int ASN1_TIME_normalize(ASN1_TIME *t); 726int ASN1_TIME_normalize(ASN1_TIME *t);
727int ASN1_TIME_set_string_x509(ASN1_TIME *time, const char *str); 727int ASN1_TIME_set_string_X509(ASN1_TIME *time, const char *str);
728#endif 728#endif
729int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, 729int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from,
730 const ASN1_TIME *to); 730 const ASN1_TIME *to);