From 5c2a185e9a3ab32b5e08c6a0cd4443fceb7d9457 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 4 Jul 2022 14:39:43 +0000 Subject: [PATCH] The OpenSSL API is called ASN1_TIME_set_string_X509() (uppercase x) --- lib/libcrypto/asn1/a_time_tm.c | 4 ++-- lib/libcrypto/asn1/asn1.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/asn1/a_time_tm.c b/lib/libcrypto/asn1/a_time_tm.c index 88deec1d2ab..cb677ae93ea 100644 --- a/lib/libcrypto/asn1/a_time_tm.c +++ b/lib/libcrypto/asn1/a_time_tm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: a_time_tm.c,v 1.23 2022/06/30 08:25:56 tb Exp $ */ +/* $OpenBSD: a_time_tm.c,v 1.24 2022/07/04 14:39:43 tb Exp $ */ /* * Copyright (c) 2015 Bob Beck * @@ -598,7 +598,7 @@ ASN1_TIME_normalize(ASN1_TIME *t) } int -ASN1_TIME_set_string_x509(ASN1_TIME *s, const char *str) +ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str) { return ASN1_TIME_set_string_internal(s, str, RFC5280); } diff --git a/lib/libcrypto/asn1/asn1.h b/lib/libcrypto/asn1/asn1.h index 3ff3f51d34d..3f9645a1394 100644 --- a/lib/libcrypto/asn1/asn1.h +++ b/lib/libcrypto/asn1/asn1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1.h,v 1.65 2022/06/27 13:54:57 beck Exp $ */ +/* $OpenBSD: asn1.h,v 1.66 2022/07/04 14:39:43 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -724,7 +724,7 @@ int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm); int ASN1_TIME_compare(const ASN1_TIME *t1, const ASN1_TIME *t2); int ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t2); int ASN1_TIME_normalize(ASN1_TIME *t); -int ASN1_TIME_set_string_x509(ASN1_TIME *time, const char *str); +int ASN1_TIME_set_string_X509(ASN1_TIME *time, const char *str); #endif int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, const ASN1_TIME *to); -- 2.20.1