summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-06-07 20:48:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-06-07 20:48:09 +0300
commitc763e0be7221cc055d61eec9d30c1ff8a4a0fc32 (patch)
tree683a7d9bfd947c90b9a23e1082adde217edfd6d0 /protocols/Gadu-Gadu/src/libgadu/libgadu.cpp
parenta3aa7b7d951120525ed510e8da0fcdf58e6beb54 (diff)
fixes #2912 (Drop WinCrypto API support)
Diffstat (limited to 'protocols/Gadu-Gadu/src/libgadu/libgadu.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/libgadu/libgadu.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp b/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp
index 931d55810d..405197401b 100644
--- a/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp
+++ b/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp
@@ -78,8 +78,6 @@
#endif
#endif
-extern SSL_API sslApi;
-
/**
* Port gniazda nasłuchującego dla połączeń bezpośrednich.
*
@@ -297,7 +295,7 @@ int gg_read(struct gg_session *sess, char *buf, int length)
#ifdef GG_CONFIG_MIRANDA
if (sess->ssl != NULL)
- return sslApi.read(sess->ssl, buf, length, 0);
+ return Netlib_SslRead(sess->ssl, buf, length, 0);
#elif GG_CONFIG_HAVE_GNUTLS
if (sess->ssl != NULL) {
for (;;) {
@@ -376,7 +374,7 @@ static int gg_write_common(struct gg_session *sess, const char *buf, int length)
#ifdef GG_CONFIG_MIRANDA
if (sess->ssl != NULL)
- return sslApi.write(sess->ssl, buf, length);
+ return Netlib_SslWrite(sess->ssl, buf, length);
#elif GG_CONFIG_HAVE_GNUTLS
if (sess->ssl != NULL) {
for (;;) {
@@ -1135,7 +1133,7 @@ void gg_logoff(struct gg_session *sess)
#ifdef GG_CONFIG_MIRANDA
if (sess->ssl != NULL)
- sslApi.shutdown(sess->ssl);
+ Netlib_SslShutdown(sess->ssl);
#elif GG_CONFIG_HAVE_GNUTLS
if (sess->ssl != NULL)
gnutls_bye(GG_SESSION_GNUTLS(sess), GNUTLS_SHUT_RDWR);
@@ -1185,7 +1183,7 @@ void gg_free_session(struct gg_session *sess)
#ifdef GG_CONFIG_MIRANDA
if (sess->ssl != NULL)
- sslApi.sfree(sess->ssl);
+ Netlib_SslFree(sess->ssl);
#elif GG_CONFIG_HAVE_GNUTLS
if (sess->ssl != NULL) {
gg_session_gnutls_t *tmp;