Changeset 5522 for pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
- Timestamp:
- Jan 11, 2017 11:13:57 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5518 r5522 46 46 47 47 TlsInfo::TlsInfo() 48 { 49 pj_bzero(this, sizeof(TlsInfo)); 48 : empty(true) 49 { 50 50 } 51 51 52 52 bool TlsInfo::isEmpty() const 53 53 { 54 TlsInfo dummy; 55 56 pj_bzero(&dummy, sizeof(dummy)); 57 return ((pj_memcmp(this, &dummy, sizeof(dummy)) == 0)? true: false); 54 return empty; 58 55 } 59 56 … … 66 63 unsigned verif_msg_cnt; 67 64 65 empty = false; 68 66 established = PJ2BOOL(ssock_info->established); 69 67 protocol = ssock_info->proto; … … 90 88 } 91 89 90 SslCertInfo::SslCertInfo() 91 : empty(true) 92 { 93 } 94 92 95 bool SslCertInfo::isEmpty() const 93 96 { 94 SslCertInfo dummy; 95 96 pj_bzero(&dummy, sizeof(dummy)); 97 return ((pj_memcmp(this, &dummy, sizeof(dummy)) == 0)? true: false); 97 return empty; 98 98 } 99 99 100 100 void SslCertInfo::fromPj(const pj_ssl_cert_info &info) 101 101 { 102 empty = false; 102 103 version = info.version; 103 104 pj_memcpy(serialNo, info.serial_no, sizeof(info.serial_no)); … … 638 639 prm.state = state; 639 640 prm.lastError = info ? info->status : PJ_SUCCESS; 640 pj_bzero(&prm.tlsInfo, sizeof(TlsInfo));641 641 642 642 #if defined(PJSIP_HAS_TLS_TRANSPORT) && PJSIP_HAS_TLS_TRANSPORT!=0
Note: See TracChangeset
for help on using the changeset viewer.