aboutsummaryrefslogtreecommitdiffstats
path: root/common/os/tls.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/os/tls.cxx')
-rw-r--r--common/os/tls.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/os/tls.cxx b/common/os/tls.cxx
index 5ef8898a..cd67ce78 100644
--- a/common/os/tls.cxx
+++ b/common/os/tls.cxx
@@ -38,6 +38,11 @@ using namespace std;
#ifndef HAVE_GNUTLS_X509_CRT_PRINT
+/* Ancient GNUTLS... */
+#if !defined(GNUTLS_VERSION_NUMBER) && !defined(LIBGNUTLS_VERSION_NUMBER)
+#define GNUTLS_DIG_SHA1 GNUTLS_DIG_SHA
+#endif
+
#define UNKNOWN_SUBJECT(err) \
do { \
ss << "unknown subject (" << gnutls_strerror(err) << "), "; \