#include <lluserauth.h>
Collaboration diagram for LLUserAuth:
Public Types | |
typedef std::map< std::string, std::string > | response_t |
typedef std::vector< response_t > | options_t |
E_NO_RESPONSE_YET = -2 | |
E_DOWNLOADING = -1 | |
E_OK = 0 | |
E_COULDNT_RESOLVE_HOST | |
E_SSL_PEER_CERTIFICATE | |
E_SSL_CACERT | |
E_SSL_CONNECT_ERROR | |
E_UNHANDLED_ERROR | |
E_LAST | |
enum | UserAuthcode { E_NO_RESPONSE_YET = -2, E_DOWNLOADING = -1, E_OK = 0, E_COULDNT_RESOLVE_HOST, E_SSL_PEER_CERTIFICATE, E_SSL_CACERT, E_SSL_CONNECT_ERROR, E_UNHANDLED_ERROR, E_LAST } |
Public Member Functions | |
LLUserAuth () | |
~LLUserAuth () | |
void | authenticate (const char *auth_uri, const char *auth_method, const char *firstname, const char *lastname, const char *passwd, const char *start, BOOL skip_optional_update, BOOL accept_tos, BOOL accept_critical_message, const LLUUID &viewer_digest, BOOL last_exec_froze, const std::vector< const char * > &requested_options, const std::string &hashed_mac, const std::string &hashed_volume_serial) |
UserAuthcode | authResponse () |
std::string | errorMessage () const |
const char * | getResponse (const char *name) const |
BOOL | getOptions (const char *name, options_t &options) const |
F64 | getLastTransferRateBPS () const |
Private Types | |
typedef std::map< std::string, options_t > | all_options_t |
Private Member Functions | |
UserAuthcode | parseResponse () |
Private Attributes | |
LLXMLRPCTransaction * | mTransaction |
UserAuthcode | mAuthResponse |
std::string | mErrorMessage |
response_t | mResponses |
all_options_t | mOptions |
F64 | mLastTransferRateBPS |
Definition at line 71 of file lluserauth.h.
typedef std::map<std::string, options_t> LLUserAuth::all_options_t [private] |
Definition at line 128 of file lluserauth.h.
typedef std::vector<response_t> LLUserAuth::options_t |
Definition at line 92 of file lluserauth.h.
typedef std::map<std::string, std::string> LLUserAuth::response_t |
Definition at line 91 of file lluserauth.h.
E_NO_RESPONSE_YET | |
E_DOWNLOADING | |
E_OK | |
E_COULDNT_RESOLVE_HOST | |
E_SSL_PEER_CERTIFICATE | |
E_SSL_CACERT | |
E_SSL_CONNECT_ERROR | |
E_UNHANDLED_ERROR | |
E_LAST |
Definition at line 78 of file lluserauth.h.
LLUserAuth::LLUserAuth | ( | ) |
LLUserAuth::~LLUserAuth | ( | ) |
void LLUserAuth::authenticate | ( | const char * | auth_uri, | |
const char * | auth_method, | |||
const char * | firstname, | |||
const char * | lastname, | |||
const char * | passwd, | |||
const char * | start, | |||
BOOL | skip_optional_update, | |||
BOOL | accept_tos, | |||
BOOL | accept_critical_message, | |||
const LLUUID & | viewer_digest, | |||
BOOL | last_exec_froze, | |||
const std::vector< const char * > & | requested_options, | |||
const std::string & | hashed_mac, | |||
const std::string & | hashed_volume_serial | |||
) |
Definition at line 86 of file lluserauth.cpp.
References LLUUID::asString(), E_NO_RESPONSE_YET, end, gChannelName, gCurrentVersion, llendl, llinfos, mAuthResponse, mTransaction, NULL, params, and request().
Referenced by idle_startup().
LLUserAuth::UserAuthcode LLUserAuth::authResponse | ( | ) |
Definition at line 168 of file lluserauth.cpp.
References E_COULDNT_RESOLVE_HOST, E_DOWNLOADING, E_SSL_CACERT, E_SSL_CONNECT_ERROR, E_SSL_PEER_CERTIFICATE, E_UNHANDLED_ERROR, llendl, llinfos, mAuthResponse, mErrorMessage, mLastTransferRateBPS, mTransaction, NULL, parseResponse(), LLXMLRPCTransaction::process(), LLXMLRPCTransaction::status(), LLXMLRPCTransaction::StatusDownloading, LLXMLRPCTransaction::statusMessage(), and LLXMLRPCTransaction::transferRate().
Referenced by idle_startup().
std::string LLUserAuth::errorMessage | ( | ) | const [inline] |
Definition at line 112 of file lluserauth.h.
References mErrorMessage.
Referenced by idle_startup().
F64 LLUserAuth::getLastTransferRateBPS | ( | ) | const [inline] |
Definition at line 119 of file lluserauth.h.
References mLastTransferRateBPS.
Referenced by idle_startup().
Definition at line 333 of file lluserauth.cpp.
References FALSE, mOptions, and TRUE.
Referenced by idle_startup().
const char * LLUserAuth::getResponse | ( | const char * | name | ) | const |
Definition at line 321 of file lluserauth.cpp.
References mResponses, and NULL.
Referenced by idle_startup().
LLUserAuth::UserAuthcode LLUserAuth::parseResponse | ( | ) | [private] |
Definition at line 257 of file lluserauth.cpp.
References E_OK, E_UNHANDLED_ERROR, lldebugs, llendl, llwarns, MAX_STRING, mOptions, mResponses, mTransaction, NULL, param, parseOptionInto(), LLXMLRPCTransaction::response(), and type.
Referenced by authResponse().
UserAuthcode LLUserAuth::mAuthResponse [private] |
Definition at line 124 of file lluserauth.h.
Referenced by authenticate(), authResponse(), and LLUserAuth().
std::string LLUserAuth::mErrorMessage [private] |
F64 LLUserAuth::mLastTransferRateBPS [private] |
Definition at line 134 of file lluserauth.h.
Referenced by authResponse(), and getLastTransferRateBPS().
all_options_t LLUserAuth::mOptions [private] |
response_t LLUserAuth::mResponses [private] |
LLXMLRPCTransaction* LLUserAuth::mTransaction [private] |
Definition at line 122 of file lluserauth.h.
Referenced by authenticate(), authResponse(), parseResponse(), and ~LLUserAuth().