5 #ifndef _INC_cX509Common_H
6 #define _INC_cX509Common_H
12 #include "../Key/cKeyWrap.h"
13 #include "../File/cASNReader.h"
14 #include "../File/cASNSequence.h"
15 #include "../File/cASNSets.h"
16 #include "../File/cASNWriterRev.h"
41 static const int k_MAX_INTERMEDIATE_CA = 8;
77 return m_nVersion == 0;
79 virtual void SetEmptyX();
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define ASSERT(exp)
Definition: cDebugAssert.h:87
Definition: cASNReader.h:22
Definition: cX509Common.h:24
virtual HRESULT ReadFromUnk(const BYTE *buf, size_t buflen)=0
cHeapBlock m_raw
The raw certificate data (ReadFromDer1). cASNBuf pointers can point into this.
Definition: cX509Common.h:43
cASNBuf m_SignOID1
Signature algorithm OID, e.g. "sha1RSA" for ReadSigAlg()
Definition: cX509Common.h:48
UNITTEST_FRIEND(cX509Common)
static X509_Verify_t X509_VerifySet(X509_Verify_t f1, X509_Verify_t f2) noexcept
Definition: cX509Common.h:68
bool isEmptyX() const noexcept
Definition: cX509Common.h:74
cX509Common() noexcept
Definition: cX509Common.h:56
cNewPtr< cKeyRSASignOptions > m_pRSASignOptions
Signature options to be passed to VerifySignatureExt(), e.g. for RSASSA-PSS SSL_Key_RSASSA_PSS.
Definition: cX509Common.h:53
virtual HRESULT ReadFromDER(const BYTE *buf, size_t buflen)=0
cKeySigAlg m_SigAlg
How to sign with m_SignOID1.
Definition: cX509Common.h:49
cASNBuf m_RawSigned
The raw certificate body (in m_raw)(ReadFromDer1). The part that is To Be Signed. Precedes m_nVersion...
Definition: cX509Common.h:45
cASNBuf m_SignBuffer
Definition: cX509Common.h:50
int m_nVersion
1,2,3. 0 = unused. X509_CRT_VERSION_TYPE or CRL version
Definition: cX509Common.h:46
virtual ~cX509Common()
Definition: cX509Common.h:60
virtual HRESULT ReadFromDer1(const BYTE *buf, size_t buflen)=0
virtual HRESULT GetDescription(StrBuilder &s, const char *prefix) const =0
Definition: StrBuilder.h:18
X509_Verify_t
Definition: cX509.h:41
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22
Definition: cKeyBase.h:40