VirtualBox

Changeset 57548 in vbox


Ignore:
Timestamp:
Aug 26, 2015 11:36:25 AM (9 years ago)
Author:
vboxsync
Message:

RTCrStoreCertAddFromFile.cpp: Updated PEM certificate markers.

File:
1 edited

Legend:

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

    r57358 r57548  
    4040*   Global Variables                                                                                                             *
    4141*********************************************************************************************************************************/
    42 static RTCRPEMMARKERWORD const g_aWords_Certificate[]  = { { RT_STR_TUPLE("CERTIFICATE") } };
    43 /** X509 Certificate markers. */
    44 static RTCRPEMMARKER     const g_aCertificateMarkers[] = { { g_aWords_Certificate, RT_ELEMENTS(g_aWords_Certificate) } };
     42/** BEGIN CERTIFICATE / END CERTIFICATE. */
     43static RTCRPEMMARKERWORD const g_aWords_Certificate[] =
     44{
     45    { RT_STR_TUPLE("CERTIFICATE") }
     46};
     47
     48/** BEGIN TRUSTED CERTIFICATE / END TRUSTED CERTIFICATE. */
     49static RTCRPEMMARKERWORD const g_aWords_TrustedCertificate[] =
     50{
     51    { RT_STR_TUPLE("TRUSTED") },
     52    { RT_STR_TUPLE("CERTIFICATE") }
     53};
     54
     55/** BEGIN X509 CERTIFICATE / END X509 CERTIFICATE. (old) */
     56static RTCRPEMMARKERWORD const g_aWords_X509Certificate[] =
     57{
     58    { RT_STR_TUPLE("X509") },
     59    { RT_STR_TUPLE("CERTIFICATE") }
     60};
     61
     62/**
     63 * X509 Certificate markers.
     64 *
     65 * @remark See crypto/pem/pem.h in OpenSSL for a matching list.
     66 */
     67static RTCRPEMMARKER     const g_aCertificateMarkers[] =
     68{
     69    { g_aWords_Certificate,         RT_ELEMENTS(g_aWords_Certificate) },
     70    { g_aWords_TrustedCertificate,  RT_ELEMENTS(g_aWords_TrustedCertificate) },
     71    { g_aWords_X509Certificate,     RT_ELEMENTS(g_aWords_X509Certificate) }
     72};
    4573
    4674
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