Changeset 59625 in vbox for trunk/src/VBox/Runtime/common/crypto/x509-file.cpp
- Timestamp:
- Feb 10, 2016 8:55:22 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/x509-file.cpp
r59620 r59625 43 43 static RTCRPEMMARKERWORD const g_aWords_Certificate[] = { { RT_STR_TUPLE("CERTIFICATE") } }; 44 44 /** X509 Certificate markers. */ 45 static RTCRPEMMARKER const g_aCertificateMarkers[] = { { g_aWords_Certificate, RT_ELEMENTS(g_aWords_Certificate) } }; 45 RT_DECL_DATA_CONST(RTCRPEMMARKER const) g_aRTCrX509CertificateMarkers[] = 46 { 47 { g_aWords_Certificate, RT_ELEMENTS(g_aWords_Certificate) } 48 }; 49 /** Number of entries in g_aRTCrX509CertificateMarkers. */ 50 RT_DECL_DATA_CONST(uint32_t const) g_cRTCrX509CertificateMarkers = RT_ELEMENTS(g_aRTCrX509CertificateMarkers); 46 51 47 52 … … 51 56 AssertReturn(!fFlags, VERR_INVALID_FLAGS); 52 57 PCRTCRPEMSECTION pSectionHead; 53 int rc = RTCrPemReadFile(pszFilename, 0, g_aCertificateMarkers, RT_ELEMENTS(g_aCertificateMarkers), &pSectionHead, pErrInfo); 58 int rc = RTCrPemReadFile(pszFilename, 0, g_aRTCrX509CertificateMarkers, g_cRTCrX509CertificateMarkers, 59 &pSectionHead, pErrInfo); 54 60 if (RT_SUCCESS(rc)) 55 61 { … … 85 91 AssertReturn(!fFlags, VERR_INVALID_FLAGS); 86 92 PCRTCRPEMSECTION pSectionHead; 87 int rc = RTCrPemParseContent(pvBuf, cbBuf, 0, g_a CertificateMarkers, RT_ELEMENTS(g_aCertificateMarkers),93 int rc = RTCrPemParseContent(pvBuf, cbBuf, 0, g_aRTCrX509CertificateMarkers, g_cRTCrX509CertificateMarkers, 88 94 &pSectionHead, pErrInfo); 89 95 if (RT_SUCCESS(rc)) … … 121 127 AssertReturn(!fFlags, VERR_INVALID_FLAGS); 122 128 PCRTCRPEMSECTION pSectionHead; 123 int rc = RTCrPemReadFile(pszFilename, 0, g_aCertificateMarkers, RT_ELEMENTS(g_aCertificateMarkers), &pSectionHead, pErrInfo); 129 int rc = RTCrPemReadFile(pszFilename, 0, g_aRTCrX509CertificateMarkers, g_cRTCrX509CertificateMarkers, 130 &pSectionHead, pErrInfo); 124 131 if (RT_SUCCESS(rc)) 125 132 {
Note:
See TracChangeset
for help on using the changeset viewer.