• R/O
  • SSH
  • HTTPS

ttssh2: 提交


Commit MetaInfo

修订版6580 (tree)
时间2017-01-17 23:57:45
作者(del#24082)

Log Message

SSL_library_init関数はOpenSSL 1.1.0でdeprecatedとなり、OPENSSL_init_ssl関数に置き換わった。
SSL_load_error_strings関数はOpenSSL 1.1.0でdeprecatedとなり、呼び出し不要となった。

更改概述

差异

--- branches/openssl_1_1_0/TTProxy/SSLLIB.h (revision 6579)
+++ branches/openssl_1_1_0/TTProxy/SSLLIB.h (revision 6580)
@@ -61,7 +61,6 @@
6161 DECLARE_SSLEAY32_API_v(SSL_free, (SSL *ssl), (ssl))
6262 DECLARE_SSLEAY32_API(int, SSL_get_error, (const SSL *s,int ret_code), (s,ret_code))
6363 DECLARE_SSLEAY32_API(X509 *, SSL_get_peer_certificate, (const SSL *s), (s))
64-DECLARE_SSLEAY32_API_v(SSL_load_error_strings, (void ), ())
6564 DECLARE_SSLEAY32_API(SSL *, SSL_new, (SSL_CTX *ctx), (ctx))
6665 DECLARE_SSLEAY32_API(int, SSL_read, (SSL *ssl,void *buf,int num), (ssl, buf, num))
6766 DECLARE_SSLEAY32_API(int, SSL_set_fd, (SSL *s, int fd), (s, fd))
@@ -74,6 +73,6 @@
7473 #endif
7574 DECLARE_SSLEAY32_API(int, SSL_CTX_load_verify_locations, (SSL_CTX *ctx, const char *CAfile, const char *CApath), (ctx, CAfile, CApath))
7675 DECLARE_SSLEAY32_API(long, SSL_get_verify_result, (const SSL *ssl), (ssl))
77-DECLARE_SSLEAY32_API(int, SSL_library_init, (void), ())
76+DECLARE_SSLEAY32_API(int, OPENSSL_init_ssl, (uint64_t opts, const OPENSSL_INIT_SETTINGS *settings), (opts, settings))
7877
7978 #endif//_SSLLIB_h_
\ No newline at end of file
--- branches/openssl_1_1_0/TTProxy/SSLSocket.h (revision 6579)
+++ branches/openssl_1_1_0/TTProxy/SSLSocket.h (revision 6580)
@@ -54,8 +54,12 @@
5454
5555 private:
5656 SSLContext():ctx(NULL) {
57- SSL_library_init();
58- SSL_load_error_strings();
57+ // SSL_library_init関数はOpenSSL 1.1.0でdeprecatedとなり、
58+ // OPENSSL_init_ssl関数に置き換わった。
59+ OPENSSL_init_ssl(0, NULL);
60+
61+ // SSL_load_error_strings関数はOpenSSL 1.1.0でdeprecatedとなり、
62+ // 呼び出し不要となっている。
5963 ctx = SSL_CTX_new(SSLv23_client_method());
6064 SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
6165 }
Show on old repository browser