diff options
| author | 2023-05-16 09:52:22 +0100 | |
|---|---|---|
| committer | 2023-05-16 09:52:22 +0100 | |
| commit | 67c37b43de122671fcb100097ec2faed5bb5c06f (patch) | |
| tree | 58444b8eb4a47413064f738f0ac8377d98d08551 /src/modules | |
| parent | Fix some issues with ConvToNum<char> and ConvToStr<char>. (diff) | |
| parent | Fix some minor Doxygen issues. (diff) | |
| download | inspircd++-67c37b43de122671fcb100097ec2faed5bb5c06f.tar.gz inspircd++-67c37b43de122671fcb100097ec2faed5bb5c06f.tar.bz2 inspircd++-67c37b43de122671fcb100097ec2faed5bb5c06f.zip | |
Merge branch 'insp3' into master.
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 56da102d0..2328f71cf 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -623,7 +623,7 @@ private: 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 = INSP_FORMAT("Certificate not active for {} (on {})", @@ -631,7 +631,7 @@ private: Time::ToString(certinfo->activation)); } - 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 = INSP_FORMAT("Certificate expired {} ago (on {})", |
