Changeset 88124 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Mar 15, 2021 5:46:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBase.cpp
r87004 r88124 63 63 64 64 65 int RTCRestClientApiBase::setCAFile(const char *pcszCAFile) RT_NOEXCEPT 66 { 67 return m_strCAFile.assignNoThrow(pcszCAFile); 68 } 69 70 71 int RTCRestClientApiBase::setCAFile(const RTCString &strCAFile) RT_NOEXCEPT 72 { 73 return m_strCAFile.assignNoThrow(strCAFile); 74 } 75 76 65 77 const char *RTCRestClientApiBase::getServerUrl(void) const RT_NOEXCEPT 66 78 { … … 179 191 180 192 int rc = RTHttpCreate(&m_hHttp); 181 if (RT_FAILURE(rc)) 193 if (RT_SUCCESS(rc) && m_strCAFile.isNotEmpty()) 194 rc = RTHttpSetCAFile(m_hHttp, m_strCAFile.c_str()); 195 196 if (RT_FAILURE(rc) && m_hHttp != NIL_RTHTTP) 197 { 198 RTHttpDestroy(m_hHttp); 182 199 m_hHttp = NIL_RTHTTP; 200 } 183 201 return rc; 184 202 }
Note:
See TracChangeset
for help on using the changeset viewer.