VirtualBox

Ignore:
Timestamp:
Sep 4, 2015 2:19:44 AM (9 years ago)
Author:
vboxsync
Message:

IPRT,UINetworkReply.cpp: Added RTPathGlob, a set of RTCrStoreCertAddWantedDir/File/Store, a RTCrStoreCertAddWantedFromFishingExpedition, RTCrStoreCertCheckWanted, RTCrStoreCertCount, RTFsIsCaseSensitive and RTFileOpenTemp. Reworked some RTHttp bits and UINetworkReply stuff - this needs testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/store.cpp

    r57572 r57613  
    288288
    289289
     290RTDECL(uint32_t) RTCrStoreCertCount(RTCRSTORE hStore)
     291{
     292    PRTCRSTOREINT pThis = (PRTCRSTOREINT)hStore;
     293    AssertPtrReturn(pThis, UINT32_MAX);
     294    AssertReturn(pThis->u32Magic == RTCRSTOREINT_MAGIC, UINT32_MAX);
     295
     296    RTCRSTORECERTSEARCH Search;
     297    int rc = pThis->pProvider->pfnCertFindAll(pThis->pvProvider, &Search);
     298    AssertRCReturn(rc, UINT32_MAX);
     299
     300
     301    uint32_t cCerts = 0;
     302    PCRTCRCERTCTX pCur;
     303    while ((pCur = pThis->pProvider->pfnCertSearchNext(pThis->pvProvider, &Search)) != NULL)
     304    {
     305        RTCrCertCtxRelease(pCur);
     306        cCerts++;
     307    }
     308
     309    return cCerts;
     310}
     311
     312
    290313#ifdef IPRT_WITH_OPENSSL
    291314/*
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