29 #if !defined ONLY_LOCAL_PROXY || defined INCLUDE_MIDDLE_MIX
127 if(signatureElementsCount < 1)
133 for(
UINT32 i=0; i<signatureElementsCount; i++)
150 while(trustedCert != NULL)
167 if(trustedCert != NULL && cert != NULL)
174 while(mixCert != NULL)
201 memcpy(buff,
"<X509Data>",10);
214 memcpy(buff+
len,
"</X509Data>",11);
237 DOMElement* tmpElem=NULL;
239 elemRoot->appendChild(tmpElem);
253 for(
UINT32 i=0; i<certs->getLength(); i++)
struct __t_certstore_list CERTSTORE_ENTRY
#define CERT_X509CERTIFICATE
#define CERT_XML_X509CERTIFICATE
DOMNodeList * getElementsByTagName(DOMElement *pElem, const char *const name)
DOMElement * createDOMElement(XERCES_CPP_NAMESPACE::DOMDocument *pOwnerDoc, const char *const name)
Creates a new DOMElement with the given name which belongs to the DOMDocument owernDoc.
SINT32 getDOMChildByName(const DOMNode *pNode, const char *const name, DOMElement *&child, bool deep)
SINT32 getSignatureElements(DOMNode *parent, DOMNode **signatureNodes, UINT32 *length)
#define MAX_SIGNATURE_ELEMENTS
CACertificate * getNext()
SINT32 encode(UINT8 *buff, UINT32 *bufflen, UINT32 type)
CACertificate * verifyMixCert(DOMNode *mixNode)
This function parses the certificates from a <Mix>-node and tries to build a certPath to the trusted ...
LP_CERTSTORE_ENTRY m_pCurrent
static CACertStore * decode(UINT8 *buff, UINT32 bufflen, UINT32 type)
CACertificate * getFirst()
SINT32 add(CACertificate *cert)
Adds a COPY of a given certifcate to this CertStore.
LP_CERTSTORE_ENTRY m_pCertList
SINT32 encode(UINT8 *buff, UINT32 *bufflen, UINT32 type) const
CACertificate * clone() const
SINT32 verify(const CACertificate *a_cert) const
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.
static SINT32 printMsg(UINT32 typ, const char *format,...)
Writes a given message to the log.
struct __t_certstore_list * next