diff options
| author | 2023-04-30 23:29:34 -0700 | |
|---|---|---|
| committer | 2023-05-10 02:01:21 +0100 | |
| commit | eba5cb9dc973062e68c2629a5fbcb1adab19fa3e (patch) | |
| tree | edcdfd1c64cb21166e9e671b819b0b639483495f /src/modules | |
| parent | Work around Homebrew MySQL being broken. (diff) | |
Fix cert expiration for dates after year 2049
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 906b09529..0e26bf1b4 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -704,11 +704,11 @@ class OpenSSLIOHook : public SSLIOHook certinfo->activation = GetTime(X509_getm_notBefore(cert)); certinfo->expiration = GetTime(X509_getm_notAfter(cert)); - int activated = ASN1_UTCTIME_cmp_time_t(X509_getm_notBefore(cert), ServerInstance->Time()); + int activated = ASN1_TIME_cmp_time_t(X509_getm_notBefore(cert), ServerInstance->Time()); if (activated != -1 && activated != 0) certinfo->error = "Certificate not activated"; - int expired = ASN1_UTCTIME_cmp_time_t(X509_getm_notAfter(cert), ServerInstance->Time()); + int expired = ASN1_TIME_cmp_time_t(X509_getm_notAfter(cert), ServerInstance->Time()); if (expired != 0 && expired != 1) certinfo->error = "Certificate has expired"; |
