Mixes for Privacy and Anonymity in the Internet
|
Public Member Functions | |
~CACertificate () | |
CACertificate * | clone () const |
SINT32 | encode (UINT8 *buff, UINT32 *bufflen, UINT32 type) const |
SINT32 | encode (DOMElement *&elemRoot, XERCES_CPP_NAMESPACE::DOMDocument *doc) const |
SINT32 | getRawSubjectKeyIdentifier (UINT8 *r_ski, UINT32 *r_skiLen) |
SINT32 | getAuthorityKeyIdentifier (UINT8 *r_aki, UINT32 *r_akiLen) const |
SINT32 | getSubjectKeyIdentifier (UINT8 *r_ski, UINT32 *r_skiLen) |
LERNGRUPPE Accessor method for the subjectKeyIdentifier (SKI) extension stored in this certificate. More... | |
SINT32 | setSubjectKeyIdentifier (UINT8 *a_value, UINT32 a_valueLen) |
LERNGRUPPE Sets the subjectKeyIdentifier extension for this certificate to the given value. More... | |
SINT32 | setSubjectKeyIdentifier () |
LERNGRUPPE Sets the subjectKeyIdentifier extension for this certificate to the hash of the public key. More... | |
SINT32 | verify (const CACertificate *a_cert) const |
bool | isValid () const |
Static Public Member Functions | |
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. More... | |
static CACertificate * | decode (const DOMNode *node, UINT32 type, const char *passwd=NULL) |
static UINT8 * | getXmlElementName () |
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. More... | |
Private Member Functions | |
CACertificate () | |
CACertificate (X509 *x) | |
X509 * | getX509 () const |
Static Private Member Functions | |
static X509 * | decode (const UINT8 **derX509, UINT32 derX509Len) |
Private Attributes | |
X509 * | m_pCert |
ASN1_OCTET_STRING * | m_pSKI |
AUTHORITY_KEYID * | m_pAKI |
Static Private Attributes | |
static UINT8 * | m_spXmlElementName =0 |
Friends | |
class | CASignature |
class | CAASymCipher |
class | CASSLContext |
class | CATLSClientSocket |
|
private |
CACertificate* CACertificate::clone | ( | ) | const |
References CACertificate(), and m_pCert.
Referenced by CACertStore::add(), CACmdLnOptions::getLogEncryptionKey(), CACmdLnOptions::getNextMixTestCertificate(), CACmdLnOptions::getPrevMixTestCertificate(), CACmdLnOptions::setNextMixTestCertificate(), CACmdLnOptions::setPrevMixTestCertificate(), and CATLSClientSocket::setServerCertificate().
|
static |
References CERT_DER, CERT_PKCS12, CERT_X509CERTIFICATE, decode(), CABase64::decode(), E_SUCCESS, equals(), getDOMElementValue(), and type.
|
static |
Extracts a certificate from an encoded (DER,XML) form.
References CACertificate(), CERT_DER, CERT_PKCS12, CERT_XML_X509CERTIFICATE, CABase64::decode(), E_SUCCESS, equals(), getDOMElementValue(), parseDOMDocument(), and type.
Referenced by CACertStore::decode(), decode(), CACmdLnOptions::setLoggingOptions(), CACmdLnOptions::setNextMix(), CACmdLnOptions::setNextMixCertificate(), CACmdLnOptions::setOwnCertificate(), CACmdLnOptions::setOwnOperatorCertificate(), CACmdLnOptions::setPrevMixCertificate(), and CACmdLnOptions::setTrustedRootCertificates().
SINT32 CACertificate::encode | ( | DOMElement *& | elemRoot, |
XERCES_CPP_NAMESPACE::DOMDocument * | doc | ||
) | const |
References createDOMElement(), E_SUCCESS, CABase64::encode(), m_pCert, and setDOMElementValue().
References CERT_DER, CERT_XML_X509CERTIFICATE, E_SUCCESS, E_UNKNOWN, CABase64::encode(), m_pCert, type, and X509_CERTIFICATE_TAGNAME_LEN.
Referenced by CACmdLnOptions::buildDefaultConfig(), and CACertStore::encode().
References E_SUCCESS, E_UNKNOWN, m_pAKI, and removeColons().
Referenced by CACmdLnOptions::setOwnCertificate().
References E_SUCCESS, E_UNKNOWN, m_pSKI, CAMsg::printMsg(), and setSubjectKeyIdentifier().
Referenced by CACmdLnOptions::setOwnCertificate().
LERNGRUPPE Accessor method for the subjectKeyIdentifier (SKI) extension stored in this certificate.
E_SUCCESS | upon successful retrieval |
E_UNKNOWN | otherwise |
References E_SUCCESS, E_UNKNOWN, m_pSKI, CAMsg::printMsg(), removeColons(), and setSubjectKeyIdentifier().
Referenced by CACmdLnOptions::buildDefaultConfig(), CACmdLnOptions::getOperatorSubjectKeyIdentifier(), and CACmdLnOptions::setOwnCertificate().
|
private |
References m_pCert.
Referenced by CATLSClientSocket::doTLSConnect().
|
static |
References m_spXmlElementName.
bool CACertificate::isValid | ( | ) | const |
References m_pCert, and CAMsg::printMsg().
Referenced by verify().
|
static |
LERNGRUPPE Removes the colons from the string representation of the given SKI.
a_cSkid | The string from which the colons should be removed |
a_cSkidLen | The length of a_cSkid |
r_ski | |
r_skiLen |
E_SUCCESS | upon successful removal |
E_UNKNOWN | otherwise |
References E_SUCCESS, E_UNKNOWN, and CAMsg::printMsg().
Referenced by getAuthorityKeyIdentifier(), CAMultiSignature::getSKI(), and getSubjectKeyIdentifier().
SINT32 CACertificate::setSubjectKeyIdentifier | ( | ) |
LERNGRUPPE Sets the subjectKeyIdentifier extension for this certificate to the hash of the public key.
E_SUCCESS | upon successful removal |
E_UNKNOWN | otherwise |
Referenced by getRawSubjectKeyIdentifier(), and getSubjectKeyIdentifier().
SINT32 CACertificate::verify | ( | const CACertificate * | a_cert | ) | const |
References E_SUCCESS, E_UNKNOWN, isValid(), m_pAKI, m_pCert, m_pSKI, and CAMsg::printMsg().
Referenced by CACmdLnOptions::setOwnCertificate(), and CACertStore::verifyMixCert().
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Referenced by CACertificate(), getAuthorityKeyIdentifier(), verify(), and ~CACertificate().
|
private |
|
private |
|
staticprivate |
Referenced by getXmlElementName().