28 #ifndef __CACERTIFICATE__
29 #define __CACERTIFICATE__
30 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_MIDDLE_MIX
32 #define CERT_XML_X509CERTIFICATE 2
34 #define CERT_X509CERTIFICATE 4
50 ASN1_OCTET_STRING_free(
m_pSKI);
51 AUTHORITY_KEYID_free(
m_pAKI);
64 SINT32 encode(DOMElement* & elemRoot,XERCES_CPP_NAMESPACE::DOMDocument* doc)
const;
70 UINT8 name[] =
"X509Certificate";
friend class CASSLContext
SINT32 encode(UINT8 *buff, UINT32 *bufflen, UINT32 type) const
static UINT8 * m_spXmlElementName
static UINT8 * getXmlElementName()
SINT32 getAuthorityKeyIdentifier(UINT8 *r_aki, UINT32 *r_akiLen) const
CACertificate * clone() const
SINT32 setSubjectKeyIdentifier()
LERNGRUPPE Sets the subjectKeyIdentifier extension for this certificate to the hash of the public key...
SINT32 verify(const CACertificate *a_cert) const
static X509 * decode(const UINT8 **derX509, UINT32 derX509Len)
SINT32 getSubjectKeyIdentifier(UINT8 *r_ski, UINT32 *r_skiLen)
LERNGRUPPE Accessor method for the subjectKeyIdentifier (SKI) extension stored in this certificate.
static SINT32 removeColons(const UINT8 *a_cSki, UINT32 a_cSkiLen, UINT8 *&r_ski, UINT32 *r_skiLen)
LERNGRUPPE Removes the colons from the string representation of the given SKI.
SINT32 getRawSubjectKeyIdentifier(UINT8 *r_ski, UINT32 *r_skiLen)
static CACertificate * decode(const UINT8 *const buff, UINT32 bufflen, UINT32 type, const char *const passwd=NULL)
Extracts a certificate from an encoded (DER,XML) form.
ASN1_OCTET_STRING * m_pSKI