Changeset 5522
- Timestamp:
- Jan 11, 2017 11:13:57 AM (8 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua2/endpoint.hpp
r5518 r5522 165 165 public: 166 166 /** 167 * Constructor. 168 */ 169 SslCertInfo(); 170 171 /** 167 172 * Check if the info is set with empty values. 168 173 * … … 175 180 */ 176 181 void fromPj(const pj_ssl_cert_info &info); 182 183 private: 184 bool empty; 177 185 }; 178 186 … … 256 264 */ 257 265 void fromPj(const pjsip_tls_state_info &info); 266 267 private: 268 bool empty; 258 269 }; 259 270 -
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.