- Timestamp:
- Mar 9, 2017 3:36:10 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r5544 r5565 145 145 SSL_STATE_NULL, 146 146 SSL_STATE_HANDSHAKING, 147 SSL_STATE_ESTABLISHED 147 SSL_STATE_ESTABLISHED, 148 SSL_STATE_ERROR 148 149 }; 149 150 … … 1907 1908 buf->len += size_; 1908 1909 1910 if (status != PJ_SUCCESS) { 1911 ssock->ssl_state = SSL_STATE_ERROR; 1912 } 1913 1909 1914 ret = (*ssock->param.cb.on_data_read)(ssock, buf->data, 1910 1915 buf->len, status, … … 2658 2663 /* Current cipher */ 2659 2664 cipher = SSL_get_current_cipher(ssock->ossl_ssl); 2660 info->cipher = (SSL_CIPHER_get_id(cipher) & 0x00FFFFFF); 2665 if (cipher) { 2666 info->cipher = (SSL_CIPHER_get_id(cipher) & 0x00FFFFFF); 2667 } else { 2668 info->cipher = PJ_TLS_UNKNOWN_CIPHER; 2669 } 2661 2670 2662 2671 /* Remote address */
Note: See TracChangeset
for help on using the changeset viewer.