From 4d7849b49432963fee2df0d601a99bc9ada4dd78 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Sun, 10 Jan 2016 03:37:07 -0500 Subject: [PATCH] Bitrot: CRYPTO_thread_id() deprecated in OpenSSL 1.0.0 Backport from 2.11 --- postfix/src/tls/tls_misc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/postfix/src/tls/tls_misc.c b/postfix/src/tls/tls_misc.c index 1555efcdd..5689e993c 100644 --- a/postfix/src/tls/tls_misc.c +++ b/postfix/src/tls/tls_misc.c @@ -924,17 +924,14 @@ void tls_print_errors(void) const char *data; int line; int flags; - unsigned long thread; - thread = CRYPTO_thread_id(); while ((err = ERR_get_error_line_data(&file, &line, &data, &flags)) != 0) { ERR_error_string_n(err, buffer, sizeof(buffer)); if (flags & ERR_TXT_STRING) - msg_warn("TLS library problem: %lu:%s:%s:%d:%s:", - thread, buffer, file, line, data); + msg_warn("TLS library problem: %s:%s:%d:%s:", + buffer, file, line, data); else - msg_warn("TLS library problem: %lu:%s:%s:%d:", - thread, buffer, file, line); + msg_warn("TLS library problem: %s:%s:%d:", buffer, file, line); } } -- 2.47.3