blob: 51724675d555f7da8de195316d81b327132e6b84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
|