diff options
Diffstat (limited to 'debian/patches/25tls-ssl-compat-defines')
-rw-r--r-- | debian/patches/25tls-ssl-compat-defines | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/patches/25tls-ssl-compat-defines b/debian/patches/25tls-ssl-compat-defines new file mode 100644 index 0000000..5172467 --- /dev/null +++ b/debian/patches/25tls-ssl-compat-defines @@ -0,0 +1,44 @@ +Author: dx vim:ft=diff: +Description: backwards compatible ssl/tls rename defines + +--- + src/core/server-connect-rec.h | 12 ++++++++++++ + src/core/server-setup-rec.h | 12 ++++++++++++ + 2 files changed, 24 insertions(+) + +--- a/src/core/server-connect-rec.h 2022-06-28 22:14:27.113612025 -0400 ++++ b/src/core/server-connect-rec.h 2022-06-28 22:14:27.109612039 -0400 +@@ -47,3 +47,15 @@ + unsigned short last_failed_family; /* #641: if we failed to connect to ipv6, try ipv4 and vice versa */ + char *channels; + char *away_reason; ++ ++#ifndef __SSL_TLS_RENAME_COMPAT ++#define __SSL_TLS_RENAME_COMPAT ++#define use_ssl use_tls ++#define ssl_verify tls_verify ++#define ssl_cert tls_cert ++#define ssl_pkey tls_pkey ++#define ssl_pass tls_pass ++#define ssl_cafile tls_cafile ++#define ssl_capath tls_capath ++#define ssl_ciphers tls_ciphers ++#endif +--- a/src/core/server-setup-rec.h 2022-06-28 22:14:27.113612025 -0400 ++++ b/src/core/server-setup-rec.h 2022-06-28 22:14:27.109612039 -0400 +@@ -34,3 +34,15 @@ + unsigned int tls_verify:1; + + GHashTable *module_data; ++ ++#ifndef __SSL_TLS_RENAME_COMPAT ++#define __SSL_TLS_RENAME_COMPAT ++#define use_ssl use_tls ++#define ssl_verify tls_verify ++#define ssl_cert tls_cert ++#define ssl_pkey tls_pkey ++#define ssl_pass tls_pass ++#define ssl_cafile tls_cafile ++#define ssl_capath tls_capath ++#define ssl_ciphers tls_ciphers ++#endif |