|
Mixes for Privacy and Anonymity in the Internet
|
References createDOMDocument(), DELAY_USERS_BUCKET_GROW, DELAY_USERS_BUCKET_GROW_INTERVALL, initAccountingOptionSetters(), initCertificateOptionSetters(), initGeneralOptionSetters(), initMainOptionSetters(), initNetworkOptionSetters(), initTermsAndConditionsOptionSetters(), isFirstMix(), m_addrInfoServices, m_addrInfoServicesSize, m_arListenerInterfaces, m_arStrVisibleAddresses, m_arTargetInterfaces, m_bAcceptReconfiguration, m_bAutoReconnect, m_bCompressedLogs, m_bDaemon, m_bFirstMix, m_bIsEncryptedLogEnabled, m_bIsRunReConfigure, m_bLastMix, m_bLocalProxy, m_bLogConsole, m_bMiddleMix, m_bSocksSupport, m_bSyslog, m_bVerifyMixCerts, m_cnListenerInterfaces, m_cnTargets, m_cnVisibleAddresses, m_dbCountryStatsHost, m_dbCountryStatsPasswd, m_dbCountryStatsUser, m_docMixInfo, m_docMixXml, m_docOpTnCs, m_iSOCKSPort, m_iSOCKSServerPort, m_iTargetPort, m_maxLogFileSize, m_maxNrOfUsers, m_nrOfOpenFiles, m_nrOfTermsAndConditionsTemplates, m_OpCert, m_PaymentReminderProbability, m_pBI, m_pCascadeXML, m_pcsReConfigure, m_pLogEncryptionCertificate, m_pMultiSignature, m_pNextMixCertificate, m_pPrevMixCertificate, m_pTrustedRootCertificates, m_strAiID, m_strCascadeName, m_strConfigFile, m_strDatabaseHost, m_strDatabaseName, m_strDatabasePassword, m_strDatabaseUser, m_strEncryptedLogDir, m_strLogDir, m_strLogLevel, m_strMixID, m_strMixName, m_strPidFile, m_strSOCKSHost, m_strTargetHost, m_strUser, m_termsAndConditionsTemplates, m_u32DelayChannelBucketGrow, m_u32DelayChannelBucketGrowIntervall, m_u32DelayChannelUnlimitTraffic, and setZero64().
References cleanup().
References m_bAcceptReconfiguration.
Referenced by CAMix::CAMix(), and CAMix::start().
| SINT32 CACmdLnOptions::addMixIdToMixInfo | ( | ) | [private] |
Just add the id of the Mix to the MixInfo Document.
References E_UNKNOWN, m_docMixInfo, m_strMixID, MIXINFO_ATTRIBUTE_MIX_ID, CAMsg::printMsg(), and setDOMElementAttribute().
Referenced by setMixID(), and setOwnCertificate().
| SINT32 CACmdLnOptions::addVisibleAddresses | ( | DOMNode * | nodeProxy | ) | [private] |
Add all the visible addresses to the list of visible addresses found in the XML description of the <Proxy> element given.
The structur is as follows:
* <Proxy> * <VisibleAddresses> <!-- Describes the visible addresses from the 'outside world' --> * <VisibleAddress> * <Host> <!-- Host or IP --> * </Host> * </VisibleAddress> * </VisibleAddresses> * * </Proxy>
References ASSERT_PARENT_NODE_NAME, E_SUCCESS, E_UNKNOWN, equals(), getDOMChildByName(), getDOMElementValue(), len, m_arStrVisibleAddresses, m_cnVisibleAddresses, OPTIONS_NODE_HOST, OPTIONS_NODE_PROXY, OPTIONS_NODE_VISIBLE_ADDRESS, OPTIONS_NODE_VISIBLE_ADDRESS_LIST, and TMP_BUFF_SIZE.
Referenced by setTargetInterfaces().
| SINT32 CACmdLnOptions::appendMixInfo_internal | ( | DOMNode * | a_node, |
| bool | with_subtree | ||
| ) | [private] |
Here we remove any given e-mail address to reduce the spam problem.
References E_SUCCESS, E_UNKNOWN, getElementsByTagName(), m_docMixInfo, and CAMsg::printMsg().
Referenced by setListenerInterfaces(), setMinCascadeLength(), setMixDescription(), setMixType(), setPriceCertificate(), and setServerMonitoring().
| SINT32 CACmdLnOptions::buildDefaultConfig | ( | XERCES_CPP_NAMESPACE::DOMDocument * | doc, |
| bool | bForLastMix = false |
||
| ) | [static, private] |
Creates a default mix configuration.
| E_SUCCESS |
MixID must be the SubjectKeyIdentifier of the mix' certificate
We add this for compatability reasons. ListenerInterfaces can be determined dynamically now
References createDOMElement(), DEFAULT_INFOSERVICE, E_SUCCESS, CACertificate::encode(), CASignature::generateSignKey(), CASignature::getSignKey(), CACertificate::getSubjectKeyIdentifier(), CASignature::getVerifyKey(), setDOMElementAttribute(), and setDOMElementValue().
Referenced by createMixOnCDConfiguration().
| void CACmdLnOptions::clean | ( | ) |
Deletes all resssource allocated by objects of this class EXPECT the locks necessary to controll access to the properties of this class.
References accountingOptionSetters, certificateOptionSetters, clearListenerInterfaces(), clearTargetInterfaces(), clearVisibleAddresses(), generalOptionSetters, m_addrInfoServices, m_addrInfoServicesSize, m_dbCountryStatsHost, m_dbCountryStatsPasswd, m_dbCountryStatsUser, m_docMixInfo, m_docMixXml, m_docOpTnCs, m_OpCert, m_pLogEncryptionCertificate, m_pMultiSignature, m_pNextMixCertificate, m_pPrevMixCertificate, m_strCascadeName, m_strConfigFile, m_strEncryptedLogDir, m_strLogDir, m_strLogLevel, m_strMixID, m_strMixName, m_strPidFile, m_strSOCKSHost, m_strTargetHost, m_strUser, mainOptionSetters, and networkOptionSetters.
Referenced by cleanup().
This is the final cleanup, which deletes every resource (including any locks necessary to synchronise read/write to properties).
References clean(), E_SUCCESS, and m_pcsReConfigure.
Referenced by setAccountingDatabase(), and ~CACmdLnOptions().
| SINT32 CACmdLnOptions::clearListenerInterfaces | ( | ) | [private] |
Deletes all information about the listener interfaces.
References E_SUCCESS, m_arListenerInterfaces, and m_cnListenerInterfaces.
Referenced by clean().
| SINT32 CACmdLnOptions::clearTargetInterfaces | ( | ) | [private] |
Deletes all information about the target interfaces.
References CATargetInterface::cleanAddr(), E_SUCCESS, m_arTargetInterfaces, and m_cnTargets.
Referenced by clean(), and setNewValues().
| SINT32 CACmdLnOptions::clearVisibleAddresses | ( | ) | [private] |
Deletes all information about the visible addresses.
References E_SUCCESS, m_arStrVisibleAddresses, and m_cnVisibleAddresses.
Referenced by clean(), and setTargetInterfaces().
| SINT32 CACmdLnOptions::createMixOnCDConfiguration | ( | const UINT8 * | strFileName | ) | [static] |
Writes a default configuration file into the file named by filename.
Builds a default Configuration.
| strFileName | filename of the file in which the default configuration is stored, if NULL stdout is used |
References buildDefaultConfig(), createDOMDocument(), E_SUCCESS, and saveToFile().
Referenced by parse().
| SINT32 CACmdLnOptions::createSockets | ( | bool | a_bPrintMessages, |
| CASocket ** | a_sockets, | ||
| UINT32 | a_socketsLen | ||
| ) |
References CASocket::create(), E_SPACE, E_SUCCESS, E_UNKNOWN, E_UNSPECIFIED, GET_NET_ERROR, GET_NET_ERROR_STR, CAListenerInterface::getAddr(), getListenerInterface(), getListenerInterfaceCount(), CASocketAddr::getType(), CAListenerInterface::isHidden(), CAListenerInterface::isVirtual(), CASocket::listen(), CAMsg::printMsg(), CASocket::setReuseAddr(), and CASocketAddr::toString().
Referenced by CAFirstMix::init(), and setListenerInterfaces().
| SINT32 CACmdLnOptions::enableEncryptedLog | ( | bool | b | ) |
Set to true if the encrpyted log could/should be used.
References E_SUCCESS, and m_bIsEncryptedLogEnabled.
| SINT32 CACmdLnOptions::getAiID | ( | UINT8 * | id, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strAiID.
Referenced by CAAccountingInstance::CAAccountingInstance().
| XERCES_CPP_NAMESPACE::DOMDocument ** CACmdLnOptions::getAllTermsAndConditionsTemplates | ( | ) |
References m_termsAndConditionsTemplates.
Referenced by CAMix::appendTermsAndConditionsExtension().
| bool CACmdLnOptions::getAutoReconnect | ( | ) |
References m_bAutoReconnect.
| CAXMLBI * CACmdLnOptions::getBI | ( | ) |
| SINT32 CACmdLnOptions::getCascadeName | ( | UINT8 * | name, |
| UINT32 | len | ||
| ) | const |
References E_SUCCESS, E_UNKNOWN, and m_strCascadeName.
Referenced by CAFirstMix::initCountryStats(), and iplist_loopDoLogCountries().
| DOMElement* CACmdLnOptions::getCascadeXML | ( | ) |
References m_pCascadeXML.
| bool CACmdLnOptions::getCompressLogs | ( | ) |
References m_bCompressedLogs.
Referenced by initLogging().
| SINT32 CACmdLnOptions::getCountryStatsDBConnectionLoginData | ( | char ** | db_host, |
| char ** | db_user, | ||
| char ** | db_passwd | ||
| ) |
References E_SUCCESS, m_dbCountryStatsHost, m_dbCountryStatsPasswd, and m_dbCountryStatsUser.
Referenced by CAFirstMix::init().
| bool CACmdLnOptions::getDaemon | ( | ) |
References m_bDaemon.
Referenced by initLogging().
| SINT32 CACmdLnOptions::getDatabaseHost | ( | UINT8 * | host, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strDatabaseHost.
| SINT32 CACmdLnOptions::getDatabaseName | ( | UINT8 * | name, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strDatabaseName.
| SINT32 CACmdLnOptions::getDatabasePassword | ( | UINT8 * | pass, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strDatabasePassword.
References m_iDatabasePort.
Referenced by CAAccountingDBInterface::initDBConnection().
| SINT32 CACmdLnOptions::getDatabaseUsername | ( | UINT8 * | user, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strDatabaseUser.
References m_u32DelayChannelBucketGrow.
Referenced by setNewValues().
References m_u32DelayChannelBucketGrowIntervall.
Referenced by setNewValues().
References m_u32DelayChannelUnlimitTraffic.
Referenced by setNewValues().
| SINT32 CACmdLnOptions::getEncryptedLogDir | ( | UINT8 * | name, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strEncryptedLogDir.
| CAListenerInterface ** CACmdLnOptions::getInfoServices | ( | UINT32 & | r_size | ) |
References m_addrInfoServices, and m_addrInfoServicesSize.
Referenced by CAInfoService::getPaymentInstance(), isAllowedToPassRestrictions(), and CAInfoService::sendHelo().
References m_u32KeepAliveRecvInterval.
Referenced by CAMiddleMix::processKeyExchange(), CALastMix::processKeyExchange(), and CAFirstMix::processKeyExchange().
References m_u32KeepAliveSendInterval.
Referenced by CAMiddleMix::processKeyExchange(), CALastMix::processKeyExchange(), and CAFirstMix::processKeyExchange().
References m_arListenerInterfaces, and m_cnListenerInterfaces.
Referenced by createSockets(), CALocalProxy::init(), CAMiddleMix::init(), CALastMix::init(), CAMix::initMixCascadeInfo(), and CAFirstMix::initOnce().
References m_cnListenerInterfaces.
Referenced by createSockets(), CAMiddleMix::init(), CALastMix::init(), CAMix::initMixCascadeInfo(), CAFirstMix::initOnce(), and setListenerInterfaces().
| SINT32 CACmdLnOptions::getLogDir | ( | UINT8 * | name, |
| UINT32 | len | ||
| ) |
References E_SPACE, E_SUCCESS, E_UNKNOWN, and m_strLogDir.
Referenced by initLogging().
Returns a certificate which contains a key which could be used for log encryption.
References CACertificate::clone(), and m_pLogEncryptionCertificate.
Referenced by CAMsg::openEncryptedLog().
References m_maxLogFiles.
Referenced by CAMsg::rotateLog().
References m_maxLogFileSize.
References m_maxNrOfUsers.
Referenced by fm_loopAcceptUsers(), CAMix::initMixCascadeInfo(), and setNewValues().
References m_nrOfOpenFiles.
| SINT32 CACmdLnOptions::getMixHost | ( | UINT8 * | host, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strTargetHost.
Referenced by CALocalProxy::init().
| SINT32 CACmdLnOptions::getMixId | ( | UINT8 * | id, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strMixID.
Referenced by CAFirstMix::doUserLogin_internal(), CAInfoService::getStatusXMLAsString(), CAMix::initMixCascadeInfo(), CAFirstMix::initMixParameters(), and CAMiddleMix::processKeyExchange().
References m_iTargetPort.
| SINT32 CACmdLnOptions::getMixXml | ( | XERCES_CPP_NAMESPACE::DOMDocument *& | docMixInfo | ) |
Get the XML describing the Mix.
Returns the XML tree describing the Mix .
this is not a string!
This is NOT a copy!
| docMixInfo | destination for the XML tree |
| E_SUCCESS | if it was successful |
| E_UNKNOWN | in case of an error |
References createDOMElement(), E_SUCCESS, E_UNKNOWN, getcurrentTimeMillis(), getDOMChildByName(), m_docMixInfo, print64(), CAMsg::printMsg(), setDOMElementValue(), and UNIVERSAL_NODE_LAST_UPDATE.
References m_pMultiSignature.
Referenced by CAMiddleMix::initOnce(), CALastMix::initOnce(), and CAFirstMix::initOnce().
References CACertificate::clone(), and m_pNextMixCertificate.
Referenced by CAMiddleMix::processKeyExchange(), and CAFirstMix::processKeyExchange().
References m_nrOfTermsAndConditionsTemplates.
Referenced by CAMix::appendTermsAndConditionsExtension().
| SINT32 CACmdLnOptions::getOperatorSubjectKeyIdentifier | ( | UINT8 * | buffer, |
| UINT32 * | length | ||
| ) |
Returns a COPY of the public test certifcate for that mix.
| a | COPY of the mix test certifcate. Returns a COPY of the Operator Certificate of that mix. |
References E_UNKNOWN, CACertificate::getSubjectKeyIdentifier(), and m_OpCert.
Referenced by CAMix::appendTermsAndConditionsExtension(), CAInfoService::getOperatorTnCsAsStrings(), getTermsAndConditions(), and CAMix::termsAndConditionsInfoNode().
References m_iPaymentHardLimit.
Referenced by CAAccountingInstance::CAAccountingInstance().
References m_iPaymentSettleInterval.
Referenced by CAAccountingSettleThread::mainLoop().
References m_iPaymentSoftLimit.
Referenced by CAAccountingInstance::CAAccountingInstance().
| SINT32 CACmdLnOptions::getPidFile | ( | UINT8 * | pidfile, |
| UINT32 | len | ||
| ) |
References E_SPACE, E_SUCCESS, E_UNKNOWN, and m_strPidFile.
References CACertificate::clone(), and m_pPrevMixCertificate.
Referenced by CAMiddleMix::processKeyExchange(), and CALastMix::processKeyExchange().
References m_pPriceCertificate.
| SINT32 CACmdLnOptions::getSOCKSHost | ( | UINT8 * | host, |
| UINT32 | len | ||
| ) |
References E_UNKNOWN, and m_strSOCKSHost.
References m_iSOCKSPort.
References m_iSOCKSServerPort.
Referenced by CALocalProxy::loop().
| SINT32 CACmdLnOptions::getTargetInterface | ( | CATargetInterface & | oTargetInterface, |
| UINT32 | nr | ||
| ) |
Fills a TargetInterface struct with the values which belongs to the target interface nr.
This is actual a copy of all values, so the caller is responsible for destroying them after use!
| oTargetInterface | TargetInterface struct, which gets filles with the values of target interface nr |
| nr | the index of the target interface, for whcih information is request (starting with 1 for the first interface) |
| E_SUCCESS | if successful |
| E_UNKNOWN | if nr is out of range |
References CATargetInterface::cloneInto(), E_UNKNOWN, m_arTargetInterfaces, and m_cnTargets.
Referenced by CAMiddleMix::init(), CAFirstMix::init(), CAMix::needAutoConfig(), setNewValues(), and CALastMix::setTargets().
References m_cnTargets.
Referenced by CAMiddleMix::init(), CAFirstMix::init(), CAMix::needAutoConfig(), setNewValues(), and CALastMix::setTargets().
| XERCES_CPP_NAMESPACE::DOMElement * CACmdLnOptions::getTermsAndConditions | ( | ) |
References getOperatorSubjectKeyIdentifier(), m_docOpTnCs, OPTIONS_ATTRIBUTE_TNC_ID, setDOMElementAttribute(), and TMP_BUFF_SIZE.
Referenced by CAInfoService::getOperatorTnCsAsStrings().
References m_pTrustedRootCertificates.
Referenced by CAMiddleMix::processKeyExchange(), CALastMix::processKeyExchange(), and CAFirstMix::processKeyExchange().
| SINT32 CACmdLnOptions::getUser | ( | UINT8 * | user, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, E_UNKNOWN, and m_strUser.
Referenced by setUserID().
| SINT32 CACmdLnOptions::getVisibleAddress | ( | UINT8 * | strAddressBuff, |
| UINT32 | len, | ||
| UINT32 | nr | ||
| ) |
Fills strAddressBuff with a outside visible adress.
| strAddressBuff | buffer for adress information (either hostname or IP string) |
| len | size of strAddressBuff |
| nr | the number of the adress we request information about (starting with 1 for the first address) |
| E_SUCCESS | if successful |
| E_SPACE | if buffer is to small for the requested address |
| E_UNKNOWN | if nr is out of range |
References E_SPACE, E_SUCCESS, E_UNKNOWN, m_arStrVisibleAddresses, and m_cnVisibleAddresses.
Referenced by setTargetInterfaces().
References m_cnVisibleAddresses.
Referenced by setTargetInterfaces().
References m_pNextMixCertificate.
References m_pPrevMixCertificate.
Referenced by processXmlConfiguration().
| void CACmdLnOptions::initAccountingOptionSetters | ( | ) | [private] |
| void CACmdLnOptions::initCertificateOptionSetters | ( | ) | [private] |
| void CACmdLnOptions::initGeneralOptionSetters | ( | ) | [private] |
References GENERAL_OPTIONS_NR, generalOptionSetters, setCascadeNameFromOptions(), setDaemonMode(), setDynamicMix(), setLoggingOptions(), setMaxUsers(), setMinCascadeLength(), setMixID(), setMixName(), setMixType(), setNrOfFileDescriptors(), setPaymentReminder(), and setUserID().
Referenced by CACmdLnOptions().
References E_SUCCESS, getCompressLogs(), getDaemon(), getLogDir(), init(), isEncryptedLogEnabled(), isSyslogEnabled(), m_bLogConsole, m_strLogLevel, MSG_COMPRESSED_FILE, MSG_FILE, MSG_LOG, MSG_STDOUT, CAMsg::openEncryptedLog(), CAMsg::printMsg(), CAMsg::setLogLevel(), and CAMsg::setLogOptions().
Referenced by setLoggingOptions().
| void CACmdLnOptions::initMainOptionSetters | ( | ) | [private] |
| void CACmdLnOptions::initMixDescriptionSetters | ( | ) | [private] |
| void CACmdLnOptions::initNetworkOptionSetters | ( | ) | [private] |
References NETWORK_OPTIONS_NR, networkOptionSetters, setInfoServices(), setKeepAliveTraffic(), setListenerInterfaces(), setServerMonitoring(), and setTargetInterfaces().
Referenced by CACmdLnOptions().
| void CACmdLnOptions::initTermsAndConditionsOptionSetters | ( | ) | [private] |
References setTermsAndConditionsList(), setTermsAndConditionsTemplates(), TERMS_AND_CONDITIONS_OPTIONS_NR, and termsAndConditionsOptionSetters.
Referenced by CACmdLnOptions().
| SINT32 CACmdLnOptions::invokeOptionSetters | ( | const optionSetter_pt * | optionsSetters, |
| DOMElement * | optionsSource, | ||
| SINT32 | optionsSettersLength | ||
| ) | [private] |
framework-function for calling predefined option setter functions.
Used by functions that handle a certain type of options, i.e. general settings, account setting, etc.
References E_SUCCESS, E_UNKNOWN, and CAMsg::printMsg().
Referenced by processXmlConfiguration(), setAccountingOptions(), setCertificateOptions(), setGeneralOptions(), setNetworkOptions(), and setTermsAndConditions().
Returns if the encrpyted Log could/should be used.
References m_bIsEncryptedLogEnabled.
Referenced by initLogging().
| bool CACmdLnOptions::isFirstMix | ( | ) |
References m_bFirstMix.
Referenced by CACmdLnOptions(), CAInfoService::InfoLoop(), and CAInfoService::sendCascadeHelo().
| bool CACmdLnOptions::isInfoServiceEnabled | ( | ) |
References m_addrInfoServicesSize.
| bool CACmdLnOptions::isLastMix | ( | ) |
References m_bLastMix.
Referenced by CAInfoService::InfoLoop(), processXmlConfiguration(), CAInfoService::sendCascadeHelo(), and setTargetInterfaces().
| bool CACmdLnOptions::isLocalProxy | ( | ) |
References m_bLocalProxy.
| bool CACmdLnOptions::isMiddleMix | ( | ) |
References m_bMiddleMix.
| bool CACmdLnOptions::isSock5sSupported | ( | ) |
References m_bSocksSupport.
| bool CACmdLnOptions::isSyslogEnabled | ( | ) |
References m_bSyslog.
Referenced by initLogging().
| SINT32 CACmdLnOptions::parse | ( | int | argc, |
| const char ** | arg | ||
| ) |
References CASocket::create(), createMixOnCDConfiguration(), DEFAULT_CONFIG_FILE, DEFAULT_TARGET_PORT, E_FILE_OPEN, E_FILE_READ, E_SUCCESS, E_XML_PARSE, CAListenerInterface::getInstance(), m_arListenerInterfaces, m_bAutoReconnect, m_bCompressedLogs, m_bDaemon, m_bLocalProxy, m_cnListenerInterfaces, m_docMixXml, m_iSOCKSPort, m_iSOCKSServerPort, m_iTargetPort, m_strConfigFile, m_strLogDir, m_strPidFile, m_strSOCKSHost, m_strTargetHost, MIX_VERSION_INFO, MIX_VERSION_TESTING, MIX_VERSION_TESTING_TEXT, POPT_ARG_INT, POPT_ARG_NONE, POPT_ARG_STRING, POPT_AUTOHELP, POPT_ERROR_BADOPT, poptFreeContext(), poptGetContext(), poptGetNextOpt(), CAMsg::printMsg(), processXmlConfiguration(), RAW_TCP, RAW_UNIX, readXmlConfiguration(), and TMP_BUFF_SIZE.
| SINT32 CACmdLnOptions::parseInfoServices | ( | DOMElement * | a_infoServiceNode | ) | [private] |
LERNGRUPPE Parses the InfoServices Node in a) a mix configuration or b) out of infoservices.xml (Code refactored from CACmdLnOptions::processXmlConfiguration.
| a_infoServiceNode | The InfoServices Element |
| E_SUCCESS |
References E_SUCCESS, getDOMChildByName(), getDOMElementValue(), getElementsByTagName(), CAListenerInterface::getInstance(), m_addrInfoServices, m_addrInfoServicesSize, m_bAcceptReconfiguration, OPTIONS_NODE_ALLOW_AUTO_CONF, OPTIONS_NODE_INFOSERVICE, and CAListenerInterface::XML_ELEMENT_CONTAINER_NAME.
Referenced by setInfoServices().
| SINT32 CACmdLnOptions::processXmlConfiguration | ( | XERCES_CPP_NAMESPACE::DOMDocument * | docConfig | ) | [private] |
Processes a XML configuration document.
This sets the values of the options to the values found in the XML document. Note that only the values are changed, which are given in the XML document!
| docConfig | the configuration as XML document |
| E_UNKNOWN | if an error occurs |
| E_SUCCESS | otherwise |
References createDOMElement(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementAttribute(), getDOMElementValue(), getElementsByTagName(), hasPrevMixTestCertificate(), invokeOptionSetters(), isLastMix(), m_dbCountryStatsHost, m_dbCountryStatsPasswd, m_dbCountryStatsUser, m_docMixInfo, m_PaymentReminderProbability, m_pCascadeXML, MAIN_OPTION_SETTERS_NR, mainOptionSetters, MIX_VERSION, MIXINFO_NODE_PARENT, MIXINFO_NODE_PAYMENTREMINDER, MIXINFO_NODE_SOFTWARE, MIXINFO_NODE_VERSION, CAMsg::printMsg(), setDOMElementValue(), and verifyMixCertificates().
Referenced by parse(), setNextMix(), setPrevMix(), and threadReConfigure().
| SINT32 CACmdLnOptions::readXmlConfiguration | ( | XERCES_CPP_NAMESPACE::DOMDocument *& | docConfig, |
| const UINT8 *const | configFile | ||
| ) | [private] |
Tries to read the XML configuration file configFile and parses (but not process) it.
Returns the parsed document as DOM_Document.
| docConfig | on return contains the parsed XMl document |
| configFile | file name of the XML config file |
| E_SUCCESS | if successful |
| E_FILE_OPEN | if error in opening the file |
| E_FILE_READ | if not the whole file could be read |
| E_XML_PARSE | if the file could not be parsed |
References E_FILE_OPEN, E_FILE_READ, filesize32(), and len.
Referenced by parse(), and threadReConfigure().
| SINT32 CACmdLnOptions::readXmlConfiguration | ( | XERCES_CPP_NAMESPACE::DOMDocument *& | docConfig, |
| const UINT8 *const | buf, | ||
| UINT32 | len | ||
| ) | [private] |
Tries to read the XML configuration from byte array buf.
The parsed XML document is parsed only, not processed. Returns the parsed document as a DOM_Document.
| docConfig | on return contains the parsed XMl document |
| buf | a byte array containing the XML data |
| len | the length of the byte array |
| E_SUCCESS | if successful |
| E_XML_PARSE | if the data could not be parsed |
References E_SUCCESS, E_UNKNOWN, parseDOMDocument(), and CAMsg::printMsg().
| SINT32 CACmdLnOptions::reread | ( | CAMix * | pMix | ) |
Rereads the configuration file (if one was given on startup) and reconfigures the mix according to the new values.
This is done asyncronous. A new thread is started, which does the actual work. Note: We have to avoid an blocking on any mutex, as this function typically is called from a signal handler - and who knows which mutexes are blocked if this happend...
| E_SUCCESS | if successful |
| E_UNKNOWN | if an error occurs |
References E_SUCCESS, E_UNKNOWN, m_bIsRunReConfigure, m_threadReConfigure, t_CMNDLN_REREAD_PARAMS::pCmdLnOptions, pMix, t_CMNDLN_REREAD_PARAMS::pMix, CAThread::setMainLoop(), CAThread::start(), and threadReConfigure.
Referenced by signal_hup().
| SINT32 CACmdLnOptions::saveToFile | ( | XERCES_CPP_NAMESPACE::DOMDocument * | p_doc, |
| const UINT8 * | p_strFileName | ||
| ) | [static] |
Saves the given XML Document to a file.
| p_doc | The XML Document to be saved |
| p_strFileName | The name of the file to be saved to |
| E_SUCCESS |
References DOM_Output::dumpToMem(), E_SUCCESS, and len.
Referenced by createMixOnCDConfiguration().
| SINT32 CACmdLnOptions::setAccountingDatabase | ( | DOMElement * | elemAccounting | ) | [private] |
References ASSERT_ACCOUNTING_OPTIONS_PARENT, cleanup(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), CAAccountingDBInterface::init(), LOG_NODE_EMPTY_OR_INVALID, LOG_NODE_NOT_FOUND, m_bFirstMix, m_iDatabasePort, m_strDatabaseHost, m_strDatabaseName, m_strDatabasePassword, m_strDatabaseUser, OPTIONS_NODE_AI_DB, OPTIONS_NODE_AI_DB_HOST, OPTIONS_NODE_AI_DB_NAME, OPTIONS_NODE_AI_DB_PASSW, OPTIONS_NODE_AI_DB_PORT, OPTIONS_NODE_AI_DB_USER, CAMsg::printMsg(), strtrim(), and TMP_BUFF_SIZE.
Referenced by initAccountingOptionSetters().
| SINT32 CACmdLnOptions::setAccountingHardLimit | ( | DOMElement * | elemAccounting | ) | [private] |
| SINT32 CACmdLnOptions::setAccountingOptions | ( | DOMElement * | elemRoot | ) | [private] |
References ACCOUNTING_OPTIONS_NR, accountingOptionSetters, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), invokeOptionSetters(), LOG_NODE_NOT_FOUND, and OPTIONS_NODE_ACCOUNTING.
Referenced by initMainOptionSetters().
| SINT32 CACmdLnOptions::setAccountingSoftLimit | ( | DOMElement * | elemAccounting | ) | [private] |
| SINT32 CACmdLnOptions::setCascadeName | ( | const UINT8 * | name | ) |
References E_SUCCESS, and m_strCascadeName.
Referenced by setCascadeNameFromOptions().
| SINT32 CACmdLnOptions::setCascadeNameFromOptions | ( | DOMElement * | elemGeneral | ) | [private] |
References ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), m_strMixID, OPTIONS_NODE_CASCADE_NAME, setCascadeName(), and TMP_BUFF_SIZE.
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setCertificateOptions | ( | DOMElement * | elemRoot | ) | [private] |
References certificateOptionSetters, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), invokeOptionSetters(), LOG_NODE_NOT_FOUND, m_nCertificateOptionsSetters, and OPTIONS_NODE_CERTIFICATE_LIST.
Referenced by initMainOptionSetters().
| SINT32 CACmdLnOptions::setDaemonMode | ( | DOMElement * | elemGeneral | ) | [private] |
References ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), m_bDaemon, OPTIONS_NODE_DAEMON, and TMP_BUFF_SIZE.
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setDynamicMix | ( | DOMElement * | elemGeneral | ) | [private] |
determines whether this mix is a dynamic mix or not appears in <General></General> and is optional.
References ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), m_bDynamic, OPTIONS_NODE_DYNAMIC_MIX, CAMsg::printMsg(), and TMP_BUFF_SIZE.
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setGeneralOptions | ( | DOMElement * | elemRoot | ) | [private] |
References E_SUCCESS, E_UNKNOWN, GENERAL_OPTIONS_NR, generalOptionSetters, getDOMChildByName(), invokeOptionSetters(), LOG_NODE_NOT_FOUND, and OPTIONS_NODE_GENERAL.
Referenced by initMainOptionSetters().
| SINT32 CACmdLnOptions::setInfoServices | ( | DOMElement * | elemNetwork | ) | [private] |
References ASSERT_NETWORK_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), CAListenerInterface::getInstance(), LOG_NODE_EMPTY_OR_INVALID, LOG_NODE_NOT_FOUND, m_addrInfoServices, m_addrInfoServicesSize, m_bAcceptReconfiguration, OPTIONS_NODE_ALLOW_AUTO_CONF, OPTIONS_NODE_INFOSERVICE, OPTIONS_NODE_INFOSERVICE_LIST, parseInfoServices(), and TMP_BUFF_SIZE.
Referenced by initNetworkOptionSetters().
| SINT32 CACmdLnOptions::setKeepAliveTraffic | ( | DOMElement * | elemNetwork | ) | [private] |
References ASSERT_NETWORK_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), KEEP_ALIVE_TRAFFIC_RECV_WAIT_TIME, KEEP_ALIVE_TRAFFIC_SEND_WAIT_TIME, m_u32KeepAliveRecvInterval, m_u32KeepAliveSendInterval, OPTIONS_NODE_KEEP_ALIVE, OPTIONS_NODE_KEEP_ALIVE_RECV_IVAL, OPTIONS_NODE_KEEP_ALIVE_SEND_IVAL, and OPTIONS_NODE_SERVER_MONITORING.
Referenced by initNetworkOptionSetters().
| SINT32 CACmdLnOptions::setListenerInterfaces | ( | DOMElement * | elemNetwork | ) | [private] |
References appendMixInfo_internal(), ASSERT_NETWORK_OPTIONS_PARENT, CASocket::close(), createSockets(), E_SPACE, E_SUCCESS, E_UNKNOWN, E_UNSPECIFIED, getDOMChildByName(), CAListenerInterface::getInstance(), getListenerInterfaceCount(), m_arListenerInterfaces, m_cnListenerInterfaces, OPTIONS_NODE_LISTENER_INTERFACES, CAMsg::printMsg(), and WITH_SUBTREE.
Referenced by initNetworkOptionSetters().
| SINT32 CACmdLnOptions::setLogDir | ( | const UINT8 * | name, |
| UINT32 | len | ||
| ) |
References E_SUCCESS, len, and m_strLogDir.
| SINT32 CACmdLnOptions::setLoggingOptions | ( | DOMElement * | elemGeneral | ) | [private] |
References ASSERT_GENERAL_OPTIONS_PARENT, CERT_X509CERTIFICATE, CACertificate::decode(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementAttribute(), getDOMElementValue(), initLogging(), LOGGING_MAXFILES_DEFAULT, m_bIsEncryptedLogEnabled, m_bLogConsole, m_bSyslog, m_maxLogFiles, m_maxLogFileSize, m_pLogEncryptionCertificate, m_strEncryptedLogDir, m_strLogDir, m_strLogLevel, MIX_VERSION_INFO, MIX_VERSION_TESTING, MIX_VERSION_TESTING_TEXT, OPTIONS_ATTRIBUTE_LOGGING_MAXFILES, OPTIONS_ATTRIBUTE_LOGGING_MAXFILESIZE, OPTIONS_NODE_ENCRYPTED_LOG, OPTIONS_NODE_LOGGING, OPTIONS_NODE_LOGGING_CONSOLE, OPTIONS_NODE_LOGGING_FILE, OPTIONS_NODE_LOGGING_KEYINFO, OPTIONS_NODE_SYSLOG, OPTIONS_NODE_X509DATA, CAMsg::printMsg(), strtrim(), TMP_BUFF_SIZE, and toLower().
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setMaxUsers | ( | DOMElement * | elemGeneral | ) | [private] |
References ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), m_maxNrOfUsers, and OPTIONS_NODE_MAX_USERS.
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setMinCascadeLength | ( | DOMElement * | elemGeneral | ) | [private] |
References appendMixInfo_internal(), ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), OPTIONS_NODE_MIN_CASCADE_LENGTH, and WITH_SUBTREE.
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setMixCertificateVerification | ( | DOMElement * | elemCertificates | ) | [private] |
| SINT32 CACmdLnOptions::setMixDescription | ( | DOMElement * | elemRoot | ) | [private] |
References appendMixInfo_internal(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), OPTIONS_NODE_DESCRIPTION, and WITH_SUBTREE.
Referenced by initMainOptionSetters().
| SINT32 CACmdLnOptions::setMixID | ( | DOMElement * | elemGeneral | ) | [private] |
References addMixIdToMixInfo(), ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), m_strMixID, OPTIONS_NODE_MIX_ID, OPTIONS_NODE_MIX_NAME, strtrim(), and TMP_BUFF_SIZE.
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setMixName | ( | DOMElement * | elemGeneral | ) | [private] |
References ASSERT_GENERAL_OPTIONS_PARENT, createDOMElement(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementAttribute(), getDOMElementValue(), m_docMixInfo, m_strMixName, MIXINFO_NODE_MIX_NAME, OPTIONS_ATTRIBUTE_NAME_FOR_CASCADE, OPTIONS_NODE_MIX_NAME, OPTIONS_VALUE_MIX_NAME, OPTIONS_VALUE_OPERATOR_NAME, setDOMElementAttribute(), setDOMElementValue(), and TMP_BUFF_SIZE.
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setMixType | ( | DOMElement * | elemGeneral | ) | [private] |
determines whether this mix is a first a middle or a last mix appears in <General></General> and must be set.
References appendMixInfo_internal(), ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), LOG_NODE_EMPTY_OR_INVALID, LOG_NODE_NOT_FOUND, m_bFirstMix, m_bLastMix, m_bMiddleMix, OPTIONS_NODE_MIX_TYPE, TMP_BUFF_SIZE, and WITH_SUBTREE.
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setNetworkOptions | ( | DOMElement * | elemRoot | ) | [private] |
References E_SUCCESS, E_UNKNOWN, getDOMChildByName(), invokeOptionSetters(), LOG_NODE_NOT_FOUND, NETWORK_OPTIONS_NR, networkOptionSetters, and OPTIONS_NODE_NETWORK.
Referenced by initMainOptionSetters().
| SINT32 CACmdLnOptions::setNewValues | ( | CACmdLnOptions & | newOptions | ) | [private] |
Copies options from newOptions.
Only those options which are specified in newOptions are copied. The others are left untouched!
| newOptions | CACmdLnOptions object from which the new values are copied |
| E_UNKNOWN | if an error occurs |
| E_SUCCESS | otherwise |
References clearTargetInterfaces(), E_SUCCESS, getDelayChannelBucketGrow(), getDelayChannelBucketGrowIntervall(), getDelayChannelUnlimitTraffic(), getMaxNrOfUsers(), getTargetInterface(), getTargetInterfaceCount(), m_arTargetInterfaces, m_cnTargets, m_maxNrOfUsers, m_u32DelayChannelBucketGrow, m_u32DelayChannelBucketGrowIntervall, and m_u32DelayChannelUnlimitTraffic.
Referenced by threadReConfigure().
| SINT32 CACmdLnOptions::setNextMix | ( | XERCES_CPP_NAMESPACE::DOMDocument * | doc | ) |
Modifies the next mix settings (target interface and certificate) according to the specified options object.
Target interfaces are only copied if they denote a next mix. HTTP and SOCKS proxy settings are ignored.
| doc | a DOM document containing XML data with the new options |
References CERT_X509CERTIFICATE, createDOMElement(), CACertificate::decode(), E_SUCCESS, getDOMChildByName(), m_docMixXml, m_pNextMixCertificate, OPTIONS_NODE_CERTIFICATE_LIST, OPTIONS_NODE_LISTENER_INTERFACE, OPTIONS_NODE_NETWORK, OPTIONS_NODE_NEXT_MIX, OPTIONS_NODE_NEXT_MIX_CERTIFICATE, OPTIONS_NODE_SIGNATURE, OPTIONS_NODE_X509DATA, CAMsg::printMsg(), and processXmlConfiguration().
| SINT32 CACmdLnOptions::setNextMixCertificate | ( | DOMElement * | elemCertificates | ) | [private] |
References CACertificate::clone(), E_SUCCESS, E_UNKNOWN, and m_pNextMixCertificate.
Referenced by CAMiddleMix::processKeyExchange(), and CAFirstMix::processKeyExchange().
| SINT32 CACmdLnOptions::setNrOfFileDescriptors | ( | DOMElement * | elemGeneral | ) | [private] |
References ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, GET_NET_ERROR, GET_NET_ERROR_STR, getDOMChildByName(), getDOMElementValue(), m_nrOfOpenFiles, OPTIONS_NODE_FD_NR, and CAMsg::printMsg().
Referenced by initGeneralOptionSetters().
| SINT32 CACmdLnOptions::setOwnCertificate | ( | DOMElement * | elemCertificates | ) | [private] |
References CACertStore::add(), addMixIdToMixInfo(), CAMultiSignature::addSignature(), ASSERT_CERTIFICATES_OPTIONS_PARENT, CERT_PKCS12, CERT_X509CERTIFICATE, CACertificate::decode(), E_SUCCESS, E_UNKNOWN, CAMultiSignature::findSKI(), CACertificate::getAuthorityKeyIdentifier(), getDOMChildByName(), getElementsByTagName(), CACertStore::getNumber(), CACertificate::getRawSubjectKeyIdentifier(), CAMultiSignature::getSignatureCount(), CACertificate::getSubjectKeyIdentifier(), CAMultiSignature::getXORofSKIs(), LOG_NODE_NOT_FOUND, m_opCertList, m_pMultiSignature, m_strAiID, m_strCascadeName, m_strMixID, OPTIONS_NODE_OWN_CERTIFICATE, OPTIONS_NODE_X509_PKCS12, CAMsg::printMsg(), readPasswd(), CASignature::setSignKey(), SIGKEY_PKCS12, TMP_BUFF_SIZE, and CACertificate::verify().
Referenced by initCertificateOptionSetters().
| SINT32 CACmdLnOptions::setOwnOperatorCertificate | ( | DOMElement * | elemCertificates | ) | [private] |
References ASSERT_CERTIFICATES_OPTIONS_PARENT, CERT_X509CERTIFICATE, CACertificate::decode(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getElementsByTagName(), LOG_NODE_NOT_FOUND, m_OpCert, m_opCertList, OPTIONS_NODE_OWN_OPERATOR_CERTIFICATE, and OPTIONS_NODE_X509_CERTIFICATE.
Referenced by initCertificateOptionSetters().
| SINT32 CACmdLnOptions::setPaymentInstance | ( | DOMElement * | elemAccounting | ) | [private] |
References ASSERT_ACCOUNTING_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, getDOMChildByName(), CAXMLBI::getInstance(), m_pBI, OPTIONS_NODE_PAYMENT_INSTANCE, and CAMsg::printMsg().
Referenced by initAccountingOptionSetters().
| SINT32 CACmdLnOptions::setPaymentReminder | ( | DOMElement * | elemGeneral | ) | [private] |
| SINT32 CACmdLnOptions::setPrepaidInterval | ( | DOMElement * | elemAccounting | ) | [private] |
References ASSERT_ACCOUNTING_OPTIONS_PARENT, createDOMElement(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), LOG_NODE_NOT_FOUND, m_docMixInfo, m_iPrepaidInterval, OPTIONS_DEFAULT_PREPAID_IVAL, OPTIONS_NODE_PREPAID_IVAL, OPTIONS_NODE_PREPAID_IVAL_KB, CAMsg::printMsg(), and setDOMElementValue().
Referenced by initAccountingOptionSetters().
| SINT32 CACmdLnOptions::setPrevMix | ( | XERCES_CPP_NAMESPACE::DOMDocument * | doc | ) |
Modifies the next mix settings (target interface and certificate) according to the specified options object.
Target interfaces are only copied if they denote a next mix. HTTP and SOCKS proxy settings are ignored.
| doc | a DOM document containing XML data with the new options |
References createDOMElement(), DOM_Output::dumpToMem(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), len, m_docMixXml, OPTIONS_NODE_CERTIFICATE_LIST, OPTIONS_NODE_PREV_MIX_CERTIFICATE, OPTIONS_NODE_SIGNATURE, OPTIONS_NODE_X509_CERTIFICATE, OPTIONS_NODE_X509DATA, CAMsg::printMsg(), and processXmlConfiguration().
| SINT32 CACmdLnOptions::setPrevMixCertificate | ( | DOMElement * | elemCertificates | ) | [private] |
References CACertificate::clone(), E_SUCCESS, E_UNKNOWN, and m_pPrevMixCertificate.
Referenced by CAMiddleMix::processKeyExchange(), and CALastMix::processKeyExchange().
| SINT32 CACmdLnOptions::setPriceCertificate | ( | DOMElement * | elemAccounting | ) | [private] |
References appendMixInfo_internal(), ASSERT_ACCOUNTING_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, CAMultiSignature::findSKI(), CAXMLBI::getCertificate(), getDOMChildByName(), CAXMLPriceCert::getInstance(), CAXMLPriceCert::getSubjectKeyIdentifier(), LOG_NODE_NOT_FOUND, m_pBI, m_pMultiSignature, m_pPriceCertificate, m_strAiID, OPTIONS_NODE_PRICE_CERTIFICATE, CAMsg::printMsg(), CAMultiSignature::verifyXML(), and WITH_SUBTREE.
Referenced by initAccountingOptionSetters().
| SINT32 CACmdLnOptions::setRessourceOptions | ( | DOMElement * | elemRoot | ) | [private] |
reads the parameters for the ressource limitation for last mix/first mix
References E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), m_u32DelayChannelBucketGrow, m_u32DelayChannelBucketGrowIntervall, m_u32DelayChannelUnlimitTraffic, OPTIONS_NODE_BYTES_PER_IVAL, OPTIONS_NODE_DELAY_IVAL, OPTIONS_NODE_LATENCY, OPTIONS_NODE_RESSOURCES, OPTIONS_NODE_UNLIMIT_TRAFFIC, and CAMsg::printMsg().
Referenced by initMainOptionSetters().
| SINT32 CACmdLnOptions::setServerMonitoring | ( | DOMElement * | elemNetwork | ) | [private] |
| SINT32 CACmdLnOptions::setSettleInterval | ( | DOMElement * | elemAccounting | ) | [private] |
| SINT32 CACmdLnOptions::setTargetInterfaces | ( | DOMElement * | elemNetwork | ) | [private] |
References addVisibleAddresses(), ASSERT_NETWORK_OPTIONS_PARENT, CATargetInterface::cleanAddr(), clearVisibleAddresses(), CASocketAddr::clone(), CASocket::close(), CASocket::connect(), createDOMElement(), E_SUCCESS, E_UNKNOWN, GET_NET_ERROR, GET_NET_ERROR_STR, getDOMChildByName(), getDOMElementValue(), getElementsByTagName(), getVisibleAddress(), getVisibleAddressesCount(), isLastMix(), LAST_MIX_TO_PROXY_CONNECT_TIMEOUT, m_arTargetInterfaces, m_bSocksSupport, m_cnTargets, m_docMixInfo, OPTIONS_NODE_FILE, OPTIONS_NODE_HOST, OPTIONS_NODE_IP, OPTIONS_NODE_NETWORK_PROTOCOL, OPTIONS_NODE_NEXT_MIX, OPTIONS_NODE_PORT, OPTIONS_NODE_PROXY, OPTIONS_NODE_PROXY_LIST, OPTIONS_NODE_PROXY_TYPE, CAMsg::printMsg(), RAW_TCP, RAW_UNIX, CATargetInterface::set(), setDOMElementAttribute(), setDOMElementValue(), CASocket::setRecvBuff(), CASocket::setSendBuff(), SSL_TCP, SSL_UNIX, strtrim(), TARGET_HTTP_PROXY, TARGET_MIX, TARGET_SOCKS_PROXY, TARGET_UNKNOWN, TMP_BUFF_SIZE, CASocketAddr::toString(), and UNKNOWN_NETWORKTYPE.
Referenced by initNetworkOptionSetters().
| SINT32 CACmdLnOptions::setTermsAndConditions | ( | DOMElement * | elemRoot | ) | [private] |
References E_SUCCESS, E_UNKNOWN, getDOMChildByName(), invokeOptionSetters(), OPTIONS_NODE_TNCS_OPTS, CAMsg::printMsg(), TERMS_AND_CONDITIONS_OPTIONS_NR, and termsAndConditionsOptionSetters.
Referenced by initMainOptionSetters().
| SINT32 CACmdLnOptions::setTermsAndConditionsList | ( | DOMElement * | elemTnCs | ) | [private] |
References createDOMDocument(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementAttribute(), getElementsByTagName(), integrateDOMNode(), m_docOpTnCs, OPTIONS_ATTRIBUTE_TNC_DATE, OPTIONS_ATTRIBUTE_TNC_DEFAULT_LANG_DEFINED, OPTIONS_ATTRIBUTE_TNC_LOCALE, OPTIONS_ATTRIBUTE_TNC_TEMPLATE_REFID, OPTIONS_NODE_TNCS, OPTIONS_NODE_TNCS_OPERATOR, OPTIONS_NODE_TNCS_TRANSLATION, OPTIONS_NODE_TNCS_TRANSLATION_IMPORTS, CAMsg::printMsg(), TMP_BUFF_SIZE, TMP_DATE_SIZE, TMP_LOCALE_SIZE, and WITH_SUBTREE.
Referenced by initTermsAndConditionsOptionSetters().
| SINT32 CACmdLnOptions::setTermsAndConditionsTemplates | ( | DOMElement * | elemTnCs | ) | [private] |
References E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getDOMElementValue(), getElementsByTagName(), getTermsAndConditionsTemplateRefId(), len, m_nrOfTermsAndConditionsTemplates, m_termsAndConditionsTemplates, OPTIONS_NODE_TNCS_TEMPLATE, OPTIONS_NODE_TNCS_TEMPLATES, parseDOMDocument(), CAMsg::printMsg(), TEMPLATE_REFID_MAXLEN, and TMP_BUFF_SIZE.
Referenced by initTermsAndConditionsOptionSetters().
| SINT32 CACmdLnOptions::setTrustedRootCertificates | ( | DOMElement * | elemCertificates | ) | [private] |
References CACertStore::add(), ASSERT_CERTIFICATES_OPTIONS_PARENT, CERT_X509CERTIFICATE, CACertificate::decode(), E_SUCCESS, E_UNKNOWN, getDOMChildByName(), getElementsByTagName(), CACertStore::getNumber(), LOG_NODE_NOT_FOUND, m_bVerifyMixCerts, m_pTrustedRootCertificates, OPTIONS_NODE_TRUSTED_ROOT_CERTIFICATES, OPTIONS_NODE_X509_CERTIFICATE, and CAMsg::printMsg().
| SINT32 CACmdLnOptions::setUserID | ( | DOMElement * | elemGeneral | ) | [private] |
References ASSERT_GENERAL_OPTIONS_PARENT, E_SUCCESS, E_UNKNOWN, GET_NET_ERROR, GET_NET_ERROR_STR, getDOMChildByName(), getDOMElementValue(), getUser(), m_strUser, OPTIONS_NODE_USER_ID, CAMsg::printMsg(), and TMP_BUFF_SIZE.
Referenced by initGeneralOptionSetters().
References m_bVerifyMixCerts.
Referenced by CAMiddleMix::processKeyExchange(), CAFirstMix::processKeyExchange(), and processXmlConfiguration().
| THREAD_RETURN threadReConfigure | ( | void * | param | ) | [friend] |
Thread that does the actual reconfigure work.
Only one is running at the same time.
| param | pointer to a t_CMNDLN_REREAD_PARAMS stuct containing a CACmdLnOptions object pointer and a CMix object pointer. |
Referenced by reread().
Referenced by clean(), initAccountingOptionSetters(), and setAccountingOptions().
Referenced by clean(), initCertificateOptionSetters(), and setCertificateOptions().
Referenced by clean(), initGeneralOptionSetters(), and setGeneralOptions().
Referenced by CACmdLnOptions(), clean(), getInfoServices(), parseInfoServices(), and setInfoServices().
UINT32 CACmdLnOptions::m_addrInfoServicesSize [private] |
Referenced by CACmdLnOptions(), clean(), getInfoServices(), isInfoServiceEnabled(), parseInfoServices(), and setInfoServices().
Referenced by CACmdLnOptions(), clearListenerInterfaces(), getListenerInterface(), parse(), and setListenerInterfaces().
UINT8** CACmdLnOptions::m_arStrVisibleAddresses [private] |
Referenced by addVisibleAddresses(), CACmdLnOptions(), clearVisibleAddresses(), and getVisibleAddress().
Referenced by CACmdLnOptions(), clearTargetInterfaces(), getTargetInterface(), setNewValues(), and setTargetInterfaces().
bool CACmdLnOptions::m_bAcceptReconfiguration [private] |
Referenced by acceptReconfiguration(), CACmdLnOptions(), parseInfoServices(), and setInfoServices().
bool CACmdLnOptions::m_bAutoReconnect [private] |
Referenced by CACmdLnOptions(), getAutoReconnect(), and parse().
bool CACmdLnOptions::m_bCompressedLogs [private] |
Referenced by CACmdLnOptions(), getCompressLogs(), and parse().
bool CACmdLnOptions::m_bDaemon [private] |
Referenced by CACmdLnOptions(), getDaemon(), parse(), and setDaemonMode().
bool CACmdLnOptions::m_bDynamic [private] |
Referenced by setDynamicMix().
bool CACmdLnOptions::m_bFirstMix [private] |
Referenced by CACmdLnOptions(), isFirstMix(), setAccountingDatabase(), and setMixType().
bool CACmdLnOptions::m_bIsEncryptedLogEnabled [private] |
Referenced by CACmdLnOptions(), enableEncryptedLog(), isEncryptedLogEnabled(), and setLoggingOptions().
bool CACmdLnOptions::m_bIsRunReConfigure [private] |
Referenced by CACmdLnOptions(), reread(), and threadReConfigure().
bool CACmdLnOptions::m_bLastMix [private] |
Referenced by CACmdLnOptions(), isLastMix(), and setMixType().
bool CACmdLnOptions::m_bLocalProxy [private] |
Referenced by CACmdLnOptions(), isLocalProxy(), and parse().
bool CACmdLnOptions::m_bLogConsole [private] |
Referenced by CACmdLnOptions(), initLogging(), and setLoggingOptions().
bool CACmdLnOptions::m_bMiddleMix [private] |
Referenced by CACmdLnOptions(), isMiddleMix(), and setMixType().
bool CACmdLnOptions::m_bSocksSupport [private] |
Referenced by CACmdLnOptions(), isSock5sSupported(), and setTargetInterfaces().
bool CACmdLnOptions::m_bSyslog [private] |
Referenced by CACmdLnOptions(), isSyslogEnabled(), and setLoggingOptions().
bool CACmdLnOptions::m_bVerifyMixCerts [private] |
UINT32 CACmdLnOptions::m_cnListenerInterfaces [private] |
UINT32 CACmdLnOptions::m_cnTargets [private] |
UINT32 CACmdLnOptions::m_cnVisibleAddresses [private] |
Referenced by addVisibleAddresses(), CACmdLnOptions(), clearVisibleAddresses(), getVisibleAddress(), and getVisibleAddressesCount().
char* CACmdLnOptions::m_dbCountryStatsHost [private] |
Referenced by CACmdLnOptions(), clean(), getCountryStatsDBConnectionLoginData(), and processXmlConfiguration().
char* CACmdLnOptions::m_dbCountryStatsPasswd [private] |
Referenced by CACmdLnOptions(), clean(), getCountryStatsDBConnectionLoginData(), and processXmlConfiguration().
char* CACmdLnOptions::m_dbCountryStatsUser [private] |
Referenced by CACmdLnOptions(), clean(), getCountryStatsDBConnectionLoginData(), and processXmlConfiguration().
XERCES_CPP_NAMESPACE::DOMDocument* CACmdLnOptions::m_docMixInfo [private] |
XERCES_CPP_NAMESPACE::DOMDocument* CACmdLnOptions::m_docMixXml [private] |
Referenced by CACmdLnOptions(), clean(), parse(), setNextMix(), and setPrevMix().
XERCES_CPP_NAMESPACE::DOMDocument* CACmdLnOptions::m_docOpTnCs [private] |
Referenced by CACmdLnOptions(), clean(), getTermsAndConditions(), and setTermsAndConditionsList().
UINT16 CACmdLnOptions::m_iDatabasePort [private] |
Referenced by getDatabasePort(), and setAccountingDatabase().
UINT32 CACmdLnOptions::m_iPaymentHardLimit [private] |
Referenced by getPaymentHardLimit(), and setAccountingHardLimit().
Referenced by getPaymentSettleInterval(), and setSettleInterval().
UINT32 CACmdLnOptions::m_iPaymentSoftLimit [private] |
Referenced by getPaymentSoftLimit(), and setAccountingSoftLimit().
UINT32 CACmdLnOptions::m_iPrepaidInterval [private] |
Referenced by getPrepaidInterval(), and setPrepaidInterval().
UINT16 CACmdLnOptions::m_iSOCKSPort [private] |
Referenced by CACmdLnOptions(), getSOCKSPort(), and parse().
UINT16 CACmdLnOptions::m_iSOCKSServerPort [private] |
Referenced by CACmdLnOptions(), getSOCKSServerPort(), and parse().
UINT16 CACmdLnOptions::m_iTargetPort [private] |
Referenced by CACmdLnOptions(), getMixPort(), and parse().
UINT32 CACmdLnOptions::m_maxLogFiles [private] |
Referenced by getMaxLogFiles(), and setLoggingOptions().
SINT64 CACmdLnOptions::m_maxLogFileSize [private] |
Referenced by CACmdLnOptions(), getMaxLogFileSize(), and setLoggingOptions().
UINT32 CACmdLnOptions::m_maxNrOfUsers [private] |
Referenced by CACmdLnOptions(), getMaxNrOfUsers(), setMaxUsers(), and setNewValues().
Referenced by initCertificateOptionSetters(), and setCertificateOptions().
SINT32 CACmdLnOptions::m_nrOfOpenFiles [private] |
Referenced by CACmdLnOptions(), getMaxOpenFiles(), and setNrOfFileDescriptors().
Referenced by CACmdLnOptions(), getNumberOfTermsAndConditionsTemplates(), and setTermsAndConditionsTemplates().
CACertificate* CACmdLnOptions::m_OpCert [private] |
Referenced by CACmdLnOptions(), clean(), getOperatorSubjectKeyIdentifier(), and setOwnOperatorCertificate().
DOMNodeList* CACmdLnOptions::m_opCertList [private] |
Referenced by setOwnCertificate(), and setOwnOperatorCertificate().
Referenced by CACmdLnOptions(), processXmlConfiguration(), and setPaymentReminder().
CAXMLBI* CACmdLnOptions::m_pBI [private] |
Referenced by CACmdLnOptions(), getBI(), setPaymentInstance(), and setPriceCertificate().
DOMElement* CACmdLnOptions::m_pCascadeXML [private] |
Referenced by CACmdLnOptions(), getCascadeXML(), and processXmlConfiguration().
CAMutex* CACmdLnOptions::m_pcsReConfigure [private] |
Referenced by CACmdLnOptions(), and cleanup().
bool CACmdLnOptions::m_perfTestEnabled [private] |
Referenced by CACmdLnOptions(), clean(), getLogEncryptionKey(), and setLoggingOptions().
Referenced by CACmdLnOptions(), clean(), getMultiSigner(), setOwnCertificate(), and setPriceCertificate().
Referenced by getPriceCertificate(), and setPriceCertificate().
UINT8* CACmdLnOptions::m_strAiID [private] |
Referenced by CACmdLnOptions(), getAiID(), setOwnCertificate(), and setPriceCertificate().
UINT8* CACmdLnOptions::m_strCascadeName [private] |
Referenced by CACmdLnOptions(), clean(), getCascadeName(), setCascadeName(), and setOwnCertificate().
UINT8* CACmdLnOptions::m_strConfigFile [private] |
Referenced by CACmdLnOptions(), clean(), parse(), and threadReConfigure().
UINT8* CACmdLnOptions::m_strDatabaseHost [private] |
Referenced by CACmdLnOptions(), getDatabaseHost(), and setAccountingDatabase().
UINT8* CACmdLnOptions::m_strDatabaseName [private] |
Referenced by CACmdLnOptions(), getDatabaseName(), and setAccountingDatabase().
UINT8* CACmdLnOptions::m_strDatabasePassword [private] |
Referenced by CACmdLnOptions(), getDatabasePassword(), and setAccountingDatabase().
UINT8* CACmdLnOptions::m_strDatabaseUser [private] |
Referenced by CACmdLnOptions(), getDatabaseUsername(), and setAccountingDatabase().
char* CACmdLnOptions::m_strEncryptedLogDir [private] |
Referenced by CACmdLnOptions(), clean(), getEncryptedLogDir(), and setLoggingOptions().
char* CACmdLnOptions::m_strLogDir [private] |
Referenced by CACmdLnOptions(), clean(), getLogDir(), parse(), setLogDir(), and setLoggingOptions().
char* CACmdLnOptions::m_strLogLevel [private] |
Referenced by CACmdLnOptions(), clean(), initLogging(), and setLoggingOptions().
char* CACmdLnOptions::m_strMixID [private] |
Referenced by addMixIdToMixInfo(), CACmdLnOptions(), clean(), getMixId(), setCascadeNameFromOptions(), setMixID(), and setOwnCertificate().
char* CACmdLnOptions::m_strMixName [private] |
Referenced by CACmdLnOptions(), clean(), and setMixName().
char* CACmdLnOptions::m_strPidFile [private] |
Referenced by CACmdLnOptions(), clean(), getPidFile(), and parse().
char* CACmdLnOptions::m_strSOCKSHost [private] |
Referenced by CACmdLnOptions(), clean(), getSOCKSHost(), and parse().
char* CACmdLnOptions::m_strTargetHost [private] |
Referenced by CACmdLnOptions(), clean(), getMixHost(), and parse().
char* CACmdLnOptions::m_strUser [private] |
Referenced by CACmdLnOptions(), clean(), getUser(), and setUserID().
| XERCES_CPP_NAMESPACE::DOMDocument** CACmdLnOptions::m_termsAndConditionsTemplates |
Referenced by CACmdLnOptions(), getAllTermsAndConditionsTemplates(), and setTermsAndConditionsTemplates().
CAThread CACmdLnOptions::m_threadReConfigure [private] |
Referenced by reread().
Referenced by CACmdLnOptions(), getDelayChannelBucketGrow(), setNewValues(), and setRessourceOptions().
Referenced by CACmdLnOptions(), getDelayChannelBucketGrowIntervall(), setNewValues(), and setRessourceOptions().
Referenced by CACmdLnOptions(), getDelayChannelUnlimitTraffic(), setNewValues(), and setRessourceOptions().
Referenced by getKeepAliveRecvInterval(), and setKeepAliveTraffic().
Referenced by getKeepAliveSendInterval(), and setKeepAliveTraffic().
optionSetter_pt* CACmdLnOptions::mainOptionSetters [private] |
Referenced by clean(), initMainOptionSetters(), and processXmlConfiguration().
Referenced by clean(), initNetworkOptionSetters(), and setNetworkOptions().
Referenced by initTermsAndConditionsOptionSetters(), and setTermsAndConditions().
1.7.6.1