Changeset 5648
- Timestamp:
- Sep 14, 2017 5:03:45 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r5635 r5648 1071 1071 /* Destroy SSL instance */ 1072 1072 if (ssock->ossl_ssl) { 1073 SSL_shutdown(ssock->ossl_ssl); 1073 /** 1074 * Avoid calling SSL_shutdown() if handshake wasn't completed. 1075 * OpenSSL 1.0.2f complains if SSL_shutdown() is called during an 1076 * SSL handshake, while previous versions always return 0. 1077 */ 1078 if (SSL_in_init(ssock->ossl_ssl) == 0) { 1079 SSL_shutdown(ssock->ossl_ssl); 1080 } 1074 1081 SSL_free(ssock->ossl_ssl); /* this will also close BIOs */ 1075 1082 ssock->ossl_ssl = NULL;
Note: See TracChangeset
for help on using the changeset viewer.