Mix address manager
AddressManager::AddressManager (Acs * parent, LogFile * addressManagerLogFile) Address manager constructor | |
AddressManager::AddressManager (Mix * parent, LogFile * addressManagerLogFile) AddressManager constructor | |
void | AddressManager::CertificatesArrived (GMessage *data) Stores incoming certificates |
GMessage* | AddressManager::CreateAcsCertificate () Create Acs certifcate |
Err | AddressManager::CreateMixCertificate (u_short port, GMessage **certificate) Creates a new Mix's certificate |
void | AddressManager::DownloadCertificates (Size count, string type) Sends a request to ACS for certificates |
GMessage* | AddressManager::GetMixCertificate () Get Mix certificate |
void | AddressManager::HereYouAre (GMessage * data) Store given certificates |
Err | AddressManager::LoadCertificates () Load certificates from disk |
Err | AddressManager::LoadCertificates () Stores given certificates |
Err | AddressManager::ReturnAcsCertificate ( GMessage **acsCertificate) Returns a certificate of any Acs |
Err | AddressManager::ReturnLocalMixCertificate ( GMessage **mixCertificate) Returns Mix's own certificate |
Err | AddressManager::ReturnMixCertificate ( GMessage **mixCertificate) Returns a certificate of any Mix |
Err | AddressManager::SaveCertificates () Save certificates to disk |
Err | AddressManager::SaveCertificates () Saves certificates from memory onto the disk |
void | AddressManager::Shutdown () Prepare for clean shutdown |
void | AddressManager::Shutdown () For shutdowning, not implemented |
Err | AddressManager::StoreAsymetricKeyPairOntoDisk (GMessage *asymetricKeyPair) When creating a new certificate, it saves asymetric key pair onto the disk |
AddressManager::~AddressManager () Acs address manger destructor | |
AddressManager::~AddressManager () Address Manager destructor |
methods |
attributes | |||||||
methods
|
Mix address manager. Takes care of generation storage and expiration of mix's access certificates. This includes access certificates of Acs' and other Mixes.
Structure of the certificate is:
addressManagerLogFile - Log File.
GM_CERTIFICATE_1
GM_CERTIFICATE_2
...
GM_CERTIFICATE_"n"
Certificate-Type: Acs
Name: acs-johny
Mix-Certificate:
Address:
...
Port
GM_CERTIFICATE_TYPE - the name of a server
GM_ADDRESS - DNS of IP address
GM_PORT - port where the server is running
GM_PUBLIC_KEY_INFO - public key from the server's key pair
GM_NOT_VALID_BEFORE - validity
GM_NOT_VALID_AFTER - validity
certificate - Where we return the certificate.
type - What certificate to download.
alphabetic index hierarchy of classes
generated by doc++