diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-16 19:56:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-16 19:56:07 +0000 |
| commit | 0db53e30cebc38b2e9e0d8b29aa0c1959d6c165b (patch) | |
| tree | 8920edc17854d4d44a2eac71da884de02eacfada /src | |
| parent | a73ef9bbae589e20b6225f3c1c937086c5bd7815 (diff) | |
Try to fix build with older openssl.
Diffstat (limited to 'src')
| -rw-r--r-- | src/certificate.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/certificate.cc b/src/certificate.cc index 6edf4f4c..9f8499c9 100644 --- a/src/certificate.cc +++ b/src/certificate.cc @@ -361,14 +361,22 @@ struct tm Certificate::not_before () const { DCP_ASSERT (_certificate); +#if OPENSSL_VERSION_NUMBER > 0x10100000L return convert_time(X509_get0_notBefore(_certificate)); +#else + return convert_time(X509_get_notBefore(_certificate)); +#endif } struct tm Certificate::not_after () const { DCP_ASSERT (_certificate); +#if OPENSSL_VERSION_NUMBER > 0x10100000L return convert_time(X509_get0_notAfter(_certificate)); +#else + return convert_time(X509_get_notAfter(_certificate)); +#endif } string |
