diff options
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/Gadu-Gadu/src/gg.cpp | 4 | ||||
| -rw-r--r-- | protocols/Gadu-Gadu/src/gg.h | 2 | ||||
| -rw-r--r-- | protocols/Gadu-Gadu/src/libgadu/events.cpp | 4 | ||||
| -rw-r--r-- | protocols/Gadu-Gadu/src/libgadu/libgadu.cpp | 10 | 
4 files changed, 13 insertions, 7 deletions
| diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index cf9f0aad10..af3bd97329 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -41,7 +41,7 @@ PLUGININFOEX pluginInfo = {  // Other variables
  HINSTANCE hInstance;
 -SSL_API si;
 +SSL_API sslApi;
  CLIST_INTERFACE *pcli;
  int hLangpack;
  LIST<GGPROTO> g_Instances(1, PtrKeySortT);
 @@ -181,7 +181,7 @@ void GGPROTO::cleanuplastplugin(DWORD version)  static int gg_modulesloaded(WPARAM wParam, LPARAM lParam)
  {
     // Get SSL API
 -   mir_getSI(&si);
 +   mir_getSI(&sslApi);
     // File Association Manager support
     gg_links_init();
 diff --git a/protocols/Gadu-Gadu/src/gg.h b/protocols/Gadu-Gadu/src/gg.h index b0c567ada9..9fb6394bf0 100644 --- a/protocols/Gadu-Gadu/src/gg.h +++ b/protocols/Gadu-Gadu/src/gg.h @@ -338,4 +338,6 @@ const char *ggdebug_eventtype(gg_event *e);  #include "gg_proto.h"
 +extern SSL_API sslApi;
 +
  #endif
 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);
 | 
