summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/libgadu
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-11 09:54:09 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-11 09:54:09 +0000
commit43fc7b251649ff90ff72994c097f8b1f7b8f0b48 (patch)
treebc9deebf390be6cd004faa698cf0cc217d4937ca /protocols/Gadu-Gadu/src/libgadu
parent535b7c921c5fc4d3f6cc6bff4ad321805e0ab070 (diff)
fix for strange SSL API structure name
git-svn-id: http://svn.miranda-ng.org/main/trunk@14905 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/libgadu')
-rw-r--r--protocols/Gadu-Gadu/src/libgadu/events.cpp4
-rw-r--r--protocols/Gadu-Gadu/src/libgadu/libgadu.cpp10
2 files changed, 9 insertions, 5 deletions
diff --git a/protocols/Gadu-Gadu/src/libgadu/events.cpp b/protocols/Gadu-Gadu/src/libgadu/events.cpp
index 2a24b77e3c..44bfa73cab 100644
--- a/protocols/Gadu-Gadu/src/libgadu/events.cpp
+++ b/protocols/Gadu-Gadu/src/libgadu/events.cpp
@@ -63,6 +63,8 @@
#endif
#endif
+extern SSL_API sslApi;
+
/**
* Zwalnia pamięć zajmowaną przez informację o zdarzeniu.
*
@@ -2433,7 +2435,7 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
{
gg_debug_session(sess, GG_DEBUG_MISC, "// gg_watch_fd() GG_STATE_TLS_NEGOTIATION\n");
- sess->ssl = si.connect(sess->fd, 0, 0);
+ sess->ssl = sslApi.connect(sess->fd, 0, 0);
if (sess->ssl == NULL) {
gg_debug_session(sess, GG_DEBUG_MISC, "// gg_watch_fd() TLS negotiation failed\n");
diff --git a/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp b/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp
index a827b261e1..197c6093d3 100644
--- a/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp
+++ b/protocols/Gadu-Gadu/src/libgadu/libgadu.cpp
@@ -69,6 +69,8 @@
# include <openssl/rand.h>
#endif
+extern SSL_API sslApi;
+
/**
* Poziom rejestracji informacji odpluskwiających. Zmienna jest maską bitową
* składającą się ze stałych \c GG_DEBUG_...
@@ -323,7 +325,7 @@ int gg_read(struct gg_session *sess, char *buf, int length)
{
#ifdef GG_CONFIG_MIRANDA
if (sess->ssl != NULL)
- return si.read(sess->ssl, buf, length, 0);
+ return sslApi.read(sess->ssl, buf, length, 0);
#elif GG_CONFIG_HAVE_OPENSSL
if (sess->ssl != NULL) {
for (;;) {
@@ -373,7 +375,7 @@ static int gg_write_common(struct gg_session *sess, const char *buf, int length)
{
#ifdef GG_CONFIG_MIRANDA
if (sess->ssl != NULL)
- return si.write(sess->ssl, buf, length);
+ return sslApi.write(sess->ssl, buf, length);
#elif GG_CONFIG_HAVE_OPENSSL
if (sess->ssl != NULL) {
for (;;) {
@@ -1064,7 +1066,7 @@ void gg_logoff(struct gg_session *sess)
#ifdef GG_CONFIG_MIRANDA
if (sess->ssl != NULL)
- si.shutdown(sess->ssl);
+ sslApi.shutdown(sess->ssl);
#elif GG_CONFIG_HAVE_OPENSSL
if (sess->ssl != NULL)
SSL_shutdown(sess->ssl);
@@ -1110,7 +1112,7 @@ void gg_free_session(struct gg_session *sess)
#ifdef GG_CONFIG_MIRANDA
if (sess->ssl != NULL)
- si.sfree(sess->ssl);
+ sslApi.sfree(sess->ssl);
#elif GG_CONFIG_HAVE_OPENSSL
if (sess->ssl != NULL)
SSL_free(sess->ssl);