Browse Source

modify mrpgp.c so that OPENSSL_init() is used instead of SSL_library_init()

Jonas Reinsch 7 năm trước cách đây
mục cha
commit
10ea2e61ba
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      deltachat-ios/libraries/deltachat-core/src/mrpgp.c

+ 2 - 1
deltachat-ios/libraries/deltachat-core/src/mrpgp.c

@@ -58,7 +58,8 @@ static pgp_io_t s_io;
 
 void mrpgp_init(mrmailbox_t* mailbox)
 {
-	SSL_library_init(); /* older, but more compatible function, simply defined as OPENSSL_init_ssl().
+    OPENSSL_init();
+	/*SSL_library_init(); */ /* older, but more compatible function, simply defined as OPENSSL_init_ssl().
 						SSL_library_init() should be called from the main thread before OpenSSL is called from other threads.
 	                    libEtPan may call SSL_library_init() again later, however, this should be no problem.
 	                    SSL_library_init() always returns "1", so it is safe to discard the return value */