Changeset 5623 for pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
- Timestamp:
- Jul 7, 2017 2:52:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r5597 r5623 116 116 # define M_ASN1_STRING_data(x) ASN1_STRING_get0_data(x) 117 117 # define M_ASN1_STRING_length(x) ASN1_STRING_length(x) 118 # define X509_get_notBefore(x) X509_get0_notBefore(x) 119 # define X509_get_notAfter(x) X509_get0_notAfter(x) 118 120 #else 119 121 # define SSL_CIPHER_get_id(c) (c)->id … … 405 407 406 408 /* Init OpenSSL lib */ 409 #if OPENSSL_VERSION_NUMBER < 0x10100000L 407 410 SSL_library_init(); 408 411 SSL_load_error_strings(); 412 #else 413 OPENSSL_init_ssl(0, NULL); 414 #endif 409 415 #if OPENSSL_VERSION_NUMBER < 0x009080ffL 410 416 /* This is now synonym of SSL_library_init() */ … … 422 428 const char *cname; 423 429 430 #if OPENSSL_VERSION_NUMBER < 0x10100000L 424 431 meth = (SSL_METHOD*)SSLv23_server_method(); 425 432 if (!meth) … … 433 440 meth = (SSL_METHOD*)SSLv2_server_method(); 434 441 #endif 442 443 #else 444 /* Specific version methods are deprecated in 1.1.0 */ 445 meth = (SSL_METHOD*)TLS_method(); 446 #endif 447 435 448 pj_assert(meth); 436 449 … … 650 663 651 664 /* Determine SSL method to use */ 665 #if OPENSSL_VERSION_NUMBER < 0x10100000L 652 666 switch (ssock->param.proto) { 653 667 case PJ_SSL_SOCK_PROTO_TLS1: … … 665 679 break; 666 680 } 681 #else 682 /* Specific version methods are deprecated in 1.1.0 */ 683 ssl_method = (SSL_METHOD*)TLS_method(); 684 #endif 667 685 668 686 if (!ssl_method) {
Note: See TracChangeset
for help on using the changeset viewer.