diff options
author | George Hazan <ghazan@miranda.im> | 2022-08-07 15:00:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-08-07 15:00:15 +0300 |
commit | 8b8313f8ddf570c5e79fef25e3dbba76698d28ea (patch) | |
tree | 788e22a561f27d936de6862c28484f3db9ce6ed3 /src | |
parent | a015501245b4393d7bcc98b8751616db7688b91d (diff) |
Jabber: fix for TLS 1.3 bindings
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/netlib_ssl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/netlib_ssl.cpp b/src/mir_app/src/netlib_ssl.cpp index 3bf4c2afa3..d2ab355ec6 100644 --- a/src/mir_app/src/netlib_ssl.cpp +++ b/src/mir_app/src/netlib_ssl.cpp @@ -389,7 +389,7 @@ MIR_APP_DLL(void*) Netlib_GetTlsUnique(HNETLIBCONN nlc, int &cbLen, int &tlsVer) char buf[1000]; auto *pszVersion = SSL_get_version(nlc->hSsl->session); - if (!mir_strcmp(pszVersion, "TLSv1.3")) { + if (tlsVer && !mir_strcmp(pszVersion, "TLSv1.3")) { int res = SSL_export_keying_material(nlc->hSsl->session, (uint8_t *)buf, 32, TLS13_Label, sizeof(TLS13_Label) - 1, 0, 0, 0); if (res == 1) { |