Changeset 60328 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Apr 5, 2016 10:44:40 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106396
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/CertificateImpl.h
r60246 r60328 19 19 #define ____H_CERTIFICATEIMPL 20 20 21 //#define DONT_DUPLICATE_ALL_THE_DATA22 23 21 /* VBox includes */ 24 22 #include <VBox/settings.h> … … 28 26 #include <vector> 29 27 30 31 28 using namespace std; 32 29 33 #ifndef DONT_DUPLICATE_ALL_THE_DATA34 /* VBox forward declarations */35 30 class Appliance; 36 #endif37 31 38 32 class ATL_NO_VTABLE Certificate : … … 44 38 DECLARE_EMPTY_CTOR_DTOR(Certificate) 45 39 46 #ifdef DONT_DUPLICATE_ALL_THE_DATA 40 HRESULT init(Appliance* appliance); 47 41 HRESULT initCertificate(PCRTCRX509CERTIFICATE a_pCert, bool a_fTrusted); 48 #else49 HRESULT init(Appliance* appliance);50 #endif51 42 void uninit(); 52 43 … … 54 45 void FinalRelease(); 55 46 56 #ifndef DONT_DUPLICATE_ALL_THE_DATA57 HRESULT setData(RTCRX509CERTIFICATE const *inCert);58 #endif59 60 47 private: 61 #ifndef DONT_DUPLICATE_ALL_THE_DATA /* This is a generic information object, not something that is exclusive to Appliance! */62 48 const Appliance* m_appliance; 63 #endif64 65 #ifndef DONT_DUPLICATE_ALL_THE_DATA /* This is a generic information object, not something that is exclusive to Appliance! */66 HRESULT setVersionNumber(uint64_t inVersionNumber);67 HRESULT setSerialNumber(uint64_t inSerialNumber);68 HRESULT setPublicKeyAlgorithmOID(const char *aPublicKeyAlgorithmOID);69 HRESULT setPublicKeyAlgorithmName(const char *aPublicKeyAlgorithmOID);70 HRESULT setSignatureAlgorithmOID(const char *aSignatureAlgorithmOID);71 HRESULT setSignatureAlgorithmName(const char *aSignatureAlgorithmOID);72 HRESULT setIssuerName(com::Utf8Str &aIssuerName);73 HRESULT setSubjectName(com::Utf8Str &aSubjectName);74 HRESULT setValidityPeriodNotBefore(PCRTTIME aValidityPeriodNotBefore);75 HRESULT setValidityPeriodNotAfter(PCRTTIME aValidityPeriodNotAfter);76 HRESULT setCertificateAuthority(BOOL aCertificateAuthority);77 HRESULT setSelfSigned(BOOL aSelfSigned);78 HRESULT setTrusted(BOOL aTrusted);79 // HRESULT setSubjectPublicKey(std::vector<BYTE> aSubjectPublicKey);80 // HRESULT setIssuerUniqueIdentifier(std::vector<BYTE> aIssuerUniqueIdentifier);81 // HRESULT setSubjectUniqueIdentifier(std::vector<BYTE> aSubjectUniqueIdentifier);82 // HRESULT setKeyUsage(std::vector<ULONG> aKeyUsage);83 // HRESULT setExtendedKeyUsage(std::vector<com::Utf8Str> aExtendedKeyUsage);84 // HRESULT setRawCertData(std::vector<BYTE> aRawCertData);85 #endif86 49 87 50 // wrapped ICertificate properties 88 HRESULT getVersionNumber( com::Utf8Str &aVersionNumber);51 HRESULT getVersionNumber(CertificateVersion_T *aVersionNumber); 89 52 HRESULT getSerialNumber(com::Utf8Str &aSerialNumber); 90 53 HRESULT getSignatureAlgorithmOID(com::Utf8Str &aSignatureAlgorithmOID); … … 105 68 HRESULT getSelfSigned(BOOL *aSelfSigned); 106 69 HRESULT getTrusted(BOOL *aTrusted); 107 70 HRESULT getVerified(BOOL *aVerified); 71 HRESULT getPresence(BOOL *aPresence); 108 72 // wrapped ICertificate methods 109 73 HRESULT queryInfo(LONG aWhat, com::Utf8Str &aResult); 110 #ifndef DONT_DUPLICATE_ALL_THE_DATA111 HRESULT checkExistence(BOOL *aPresence);112 HRESULT isVerified(BOOL *aVerified);113 #endif114 74 115 #ifdef DONT_DUPLICATE_ALL_THE_DATA116 75 /** @name Methods extracting COM data from the certificate object 117 76 * @{ */ … … 122 81 HRESULT i_getEncodedBytes(PRTASN1CORE a_pAsn1Obj, std::vector<BYTE> &a_rReturn); 123 82 /** @} */ 124 #endif 83 125 84 //data 126 85 struct Data;
Note:
See TracChangeset
for help on using the changeset viewer.