Changeset 74340 in vbox for trunk/src/VBox/Runtime/common/crypto
- Timestamp:
- Sep 18, 2018 11:06:39 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/ssl-openssl.cpp
r74312 r74340 184 184 185 185 int rcOssl = SSL_CTX_use_certificate_file(pThis->pCtx, pszFile, 186 RTCRSSL_FILE_F_ASN1 & fFlags ? SSL_FILETYPE_ PEM : SSL_FILETYPE_ASN1);186 RTCRSSL_FILE_F_ASN1 & fFlags ? SSL_FILETYPE_ASN1 : SSL_FILETYPE_PEM); 187 187 if (rcOssl != 0) 188 188 return VINF_SUCCESS; … … 199 199 200 200 int rcOssl = SSL_CTX_use_PrivateKey_file(pThis->pCtx, pszFile, 201 RTCRSSL_FILE_F_ASN1 & fFlags ? SSL_FILETYPE_ PEM : SSL_FILETYPE_ASN1);201 RTCRSSL_FILE_F_ASN1 & fFlags ? SSL_FILETYPE_ASN1 : SSL_FILETYPE_PEM); 202 202 if (rcOssl != 0) 203 203 return VINF_SUCCESS; … … 393 393 AssertPtrNull(pszBuf); 394 394 AssertPtrNull(pcbActual); 395 if ( *pcbActual)396 pcbActual = 0;395 if (pcbActual) 396 *pcbActual = 0; 397 397 398 398 /* … … 413 413 */ 414 414 size_t cbNeeded = strlen(pszSrc) + 1; 415 if ( *pcbActual)415 if (pcbActual) 416 416 *pcbActual = cbNeeded; 417 417
Note:
See TracChangeset
for help on using the changeset viewer.