|
WizardsToolkit
1.0.7
|
#include "wizard/studio.h"#include "wizard/authenticate.h"#include "wizard/exception.h"#include "wizard/exception-private.h"#include "wizard/memory_.h"#include "wizard/secret.h"
Go to the source code of this file.
Data Structures | |
| struct | _AuthenticateInfo |
Defines | |
| #define | SecretKeyLength 1024 |
Functions | |
| WizardExport AuthenticateInfo * | AcquireAuthenticateInfo (const AuthenticateMethod method, const char *path, const HashType hash) |
| WizardExport WizardBooleanType | AuthenticateKey (AuthenticateInfo *authenticate_info, ExceptionInfo *exception) |
| WizardExport AuthenticateInfo * | DestroyAuthenticateInfo (AuthenticateInfo *authenticate_info) |
| WizardExport WizardBooleanType | GenerateAuthenticateKey (AuthenticateInfo *authenticate_info, ExceptionInfo *exception) |
| WizardExport const StringInfo * | GetAuthenticateId (const AuthenticateInfo *authenticate_info) |
| WizardExport const StringInfo * | GetAuthenticateKey (const AuthenticateInfo *authenticate_info) |
| WizardExport size_t | GetAuthenticateKeyLength (const AuthenticateInfo *authenticate_info) |
| WizardExport const char * | GetAuthenticatePassphrase (const AuthenticateInfo *authenticate_info) |
| WizardExport void | SetAuthenticateId (AuthenticateInfo *authenticate_info, const StringInfo *id) |
| WizardExport void | SetAuthenticateKeyLength (AuthenticateInfo *authenticate_info, const size_t key_length) |
| WizardExport void | SetAuthenticatePassphrase (AuthenticateInfo *authenticate_info, const char *passphrase) |
| #define SecretKeyLength 1024 |
Definition at line 53 of file authenticate.c.
Referenced by AcquireAuthenticateInfo().
| WizardExport AuthenticateInfo* AcquireAuthenticateInfo | ( | const AuthenticateMethod | method, |
| const char * | path, | ||
| const HashType | hash | ||
| ) |
Definition at line 100 of file authenticate.c.
References AcquireWizardMemory(), ThrowWizardFatalError, AuthenticateDomain, MemoryError, ResetWizardMemory(), _AuthenticateInfo::method, SecretAuthenticateMethod, _AuthenticateInfo::handle, AcquireSecretInfo(), SecretKeyLength, EnumerateError, _AuthenticateInfo::timestamp, _AuthenticateInfo::signature, and WizardSignature.
| WizardExport WizardBooleanType AuthenticateKey | ( | AuthenticateInfo * | authenticate_info, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 153 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::handle, WizardFalse, _AuthenticateInfo::method, SecretAuthenticateMethod, AuthenticateSecretKey(), ThrowWizardFatalError, and EnumerateError.
| WizardExport AuthenticateInfo* DestroyAuthenticateInfo | ( | AuthenticateInfo * | authenticate_info | ) |
Definition at line 208 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::handle, _AuthenticateInfo::method, SecretAuthenticateMethod, DestroySecretInfo(), ThrowWizardFatalError, EnumerateError, and RelinquishWizardMemory().
| WizardExport WizardBooleanType GenerateAuthenticateKey | ( | AuthenticateInfo * | authenticate_info, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 260 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::handle, WizardFalse, _AuthenticateInfo::method, SecretAuthenticateMethod, GenerateSecretKey(), ThrowWizardFatalError, and EnumerateError.
| WizardExport const StringInfo* GetAuthenticateId | ( | const AuthenticateInfo * | authenticate_info | ) |
Definition at line 317 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::method, SecretAuthenticateMethod, _AuthenticateInfo::handle, GetSecretId(), ThrowWizardFatalError, and EnumerateError.
| WizardExport const StringInfo* GetAuthenticateKey | ( | const AuthenticateInfo * | authenticate_info | ) |
Definition at line 368 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::method, SecretAuthenticateMethod, _AuthenticateInfo::handle, GetSecretKey(), ThrowWizardFatalError, and EnumerateError.
| WizardExport size_t GetAuthenticateKeyLength | ( | const AuthenticateInfo * | authenticate_info | ) |
Definition at line 419 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::method, SecretAuthenticateMethod, _AuthenticateInfo::handle, GetSecretKeyLength(), ThrowWizardFatalError, and EnumerateError.
| WizardExport const char* GetAuthenticatePassphrase | ( | const AuthenticateInfo * | authenticate_info | ) |
Definition at line 470 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::method, SecretAuthenticateMethod, _AuthenticateInfo::handle, GetSecretPassphrase(), ThrowWizardFatalError, and EnumerateError.
| WizardExport void SetAuthenticateId | ( | AuthenticateInfo * | authenticate_info, |
| const StringInfo * | id | ||
| ) |
Definition at line 523 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::handle, _AuthenticateInfo::method, SecretAuthenticateMethod, SetSecretId(), ThrowWizardFatalError, and EnumerateError.
| WizardExport void SetAuthenticateKeyLength | ( | AuthenticateInfo * | authenticate_info, |
| const size_t | key_length | ||
| ) |
Definition at line 574 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::handle, _AuthenticateInfo::method, SecretAuthenticateMethod, and SetSecretKeyLength().
| WizardExport void SetAuthenticatePassphrase | ( | AuthenticateInfo * | authenticate_info, |
| const char * | passphrase | ||
| ) |
Definition at line 625 of file authenticate.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _AuthenticateInfo::signature, WizardSignature, _AuthenticateInfo::handle, _AuthenticateInfo::method, SecretAuthenticateMethod, and SetSecretPassphrase().