Mixes for Privacy and Anonymity in the Internet
|
Static Public Member Functions | |
static SINT32 | dumpToMem (const DOMNode *node, UINT8 *buff, UINT32 *size) |
Dumps the node and all childs into buff. More... | |
static UINT8 * | dumpToMem (const DOMNode *node, UINT32 *size) |
Dumps the Node an returns a pointer to the memory. More... | |
static UINT8 * | dumpToString (const DOMNode *node, bool a_bAddNewLine) |
Dumps the Node an returns a pointer to a null terminated string. More... | |
static SINT32 | makeCanonical (const DOMNode *node, UINT8 *buff, UINT32 *size) |
Dumps the node and all childs in a 'cannonical form' into buff. More... | |
static UINT8 * | makeCanonical (const DOMNode *node, UINT32 *size) |
Dumps the Node in a cannonical form and returns a pointer to the memory. More... | |
Private Member Functions | |
DOM_Output () | |
~DOM_Output () | |
SINT32 | dumpNode (const DOMNode *toWrite, bool bCanonical) |
Dumps a Node of an XML Document. More... | |
Static Private Member Functions | |
static UINT8 * | dumpToMem (const DOMNode *node, UINT32 *size, OUTPUT_FORMAT a_outputFormat) |
Dumps the Node an returns a pointer to the memory. More... | |
Private Attributes | |
XMLFormatter * | m_pFormatter |
MemFormatTarget * | m_pFormatTarget |
Static Private Attributes | |
static const XMLCh | m_XML [41] |
static const XMLCh | m_UTF8 [6] |
static const XMLCh | m_1_0 [4] |
|
private |
References m_1_0, m_pFormatTarget, m_pFormatter, and m_UTF8.
|
private |
References m_pFormatTarget, and m_pFormatter.
|
private |
Dumps a Node of an XML Document.
toWrite | Node which will be dumped |
bCanonical | if true the dump is done in a 'canonical' way, e.g. white spaces are eliminated etc. |
E_SUCCESS | if successful |
E_UNKNOWN | otherwise |
References E_SUCCESS, E_UNKNOWN, gEndElement, m_pFormatter, and m_XML.
Referenced by dumpToMem(), and makeCanonical().
Dumps the Node an returns a pointer to the memory.
Note that the string is NOT null-terminated.
node | Node to dump |
size | on return contains the number of XML-Chars copied |
References dumpToMem(), and OF_DEFAULT.
|
staticprivate |
Dumps the Node an returns a pointer to the memory.
node | Node to dump |
size | on return contains the number of XML-Chars copied |
a_outputFormat | the output format of the string, e.g. with null termination |
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, and m_pFormatTarget.
Dumps the node and all childs into buff.
Note that the string is NOT null-terminated.
node | Node to dump |
buff | buffer in which to copy the XML-chars |
size | contains the size of buff, on return contains the number of XML-CHars copied |
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, E_UNKNOWN, and m_pFormatTarget.
Referenced by CAFirstMix::doUserLogin_internal(), dumpToMem(), dumpToString(), encryptXMLElement(), CAInfoService::getCascadeHeloXMLAsString(), CAASymCipher::getPublicKeyAsXML(), CAAccountingInstance::handleAccountCertificate_internal(), CALastMix::processKeyExchange(), CAMiddleMix::processKeyExchange(), CACmdLnOptions::saveToFile(), CAAccountingInstance::sendAILoginConfirmation(), CAAccountingInstance::sendCCRequest(), CAAccountingInstance::sendInitialCCRequest(), CAAbstractControlChannel::sendXMLMessage(), CACmdLnOptions::setPrevMix(), CAAccountingBIInterface::settleAll(), CAXMLErrorMessage::setValues(), CAMultiSignature::signXML(), CAAbstractXMLEncodable::toXmlString(), and CAInfoService::xmlDocToStringWithSignature().
|
static |
Dumps the Node an returns a pointer to a null terminated string.
node | Node to dump |
a_bAddNewLine | true if a new line should be added to the end of the string; false otherwise |
References dumpToMem(), OF_NEWLINE, and OF_NULL_TERMINATED.
Referenced by CAXMLErrorMessage::setValues().
Dumps the Node in a cannonical form and returns a pointer to the memory.
node | Node to dump |
size | on return contains the number of XML-Chars copied |
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, m_pFormatTarget, and OF_DEFAULT.
|
static |
Dumps the node and all childs in a 'cannonical form' into buff.
node | Node to dump |
buff | buffer in which to copy the XML-chars |
size | contains the size of buff, on return contains the number of XML-CHars copied |
References MemFormatTarget::dumpMem(), dumpNode(), E_SUCCESS, E_UNKNOWN, and m_pFormatTarget.
Referenced by CAAccountingInstance::prepareCCRequest(), CAMultiSignature::signXML(), CAMultiSignature::verifyXML(), and CASignature::verifyXML().
|
staticprivate |
Referenced by DOM_Output().
|
private |
Referenced by DOM_Output(), dumpToMem(), makeCanonical(), and ~DOM_Output().
|
private |
Referenced by DOM_Output(), dumpNode(), and ~DOM_Output().
|
staticprivate |
Referenced by DOM_Output().
|
staticprivate |
Referenced by dumpNode().