VirtualBox

Ignore:
Timestamp:
Sep 18, 2018 11:06:39 AM (6 years ago)
Author:
vboxsync
Message:

IPRT/ssl: Couple of fixes. bugref:9246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/ssl-openssl.cpp

    r74312 r74340  
    184184
    185185    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);
    187187    if (rcOssl != 0)
    188188        return VINF_SUCCESS;
     
    199199
    200200    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);
    202202    if (rcOssl != 0)
    203203        return VINF_SUCCESS;
     
    393393    AssertPtrNull(pszBuf);
    394394    AssertPtrNull(pcbActual);
    395     if (*pcbActual)
    396         pcbActual = 0;
     395    if (pcbActual)
     396        *pcbActual = 0;
    397397
    398398    /*
     
    413413                 */
    414414                size_t cbNeeded = strlen(pszSrc) + 1;
    415                 if (*pcbActual)
     415                if (pcbActual)
    416416                    *pcbActual = cbNeeded;
    417417
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette