53#define SecretKeyLength 1024
107 sizeof(*authenticate_info));
110 (void) memset(authenticate_info,0,
sizeof(*authenticate_info));
111 authenticate_info->
method=method;
123 authenticate_info->
timestamp=time((time_t *) NULL);
125 return(authenticate_info);
167 switch (authenticate_info->
method)
217 switch (authenticate_info->
method)
222 authenticate_info->
handle);
228 authenticate_info->
signature=(~WizardSignature);
231 return(authenticate_info);
275 switch (authenticate_info->
method)
326 switch (authenticate_info->
method)
377 switch (authenticate_info->
method)
428 switch (authenticate_info->
method)
479 switch (authenticate_info->
method)
531 switch (authenticate_info->
method)
573 const size_t key_length)
582 switch (authenticate_info->
method)
624 const char *passphrase)
633 switch (authenticate_info->
method)
WizardExport const char * GetAuthenticatePassphrase(const AuthenticateInfo *authenticate_info)
WizardExport const StringInfo * GetAuthenticateKey(const AuthenticateInfo *authenticate_info)
WizardExport WizardBooleanType GenerateAuthenticateKey(AuthenticateInfo *authenticate_info, ExceptionInfo *exception)
WizardExport AuthenticateInfo * DestroyAuthenticateInfo(AuthenticateInfo *authenticate_info)
WizardExport AuthenticateInfo * AcquireAuthenticateInfo(const AuthenticateMethod method, const char *path, const HashType hash)
WizardExport void SetAuthenticateId(AuthenticateInfo *authenticate_info, const StringInfo *id)
WizardExport size_t GetAuthenticateKeyLength(const AuthenticateInfo *authenticate_info)
WizardExport const StringInfo * GetAuthenticateId(const AuthenticateInfo *authenticate_info)
WizardExport void SetAuthenticateKeyLength(AuthenticateInfo *authenticate_info, const size_t key_length)
WizardExport WizardBooleanType AuthenticateKey(AuthenticateInfo *authenticate_info, ExceptionInfo *exception)
WizardExport void SetAuthenticatePassphrase(AuthenticateInfo *authenticate_info, const char *passphrase)
@ SecretAuthenticateMethod
#define WizardAssert(domain, predicate)
#define ThrowWizardFatalError(domain, error)
WizardBooleanType LogWizardEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
#define GetWizardModule()
WizardExport void * AcquireWizardMemory(const size_t size)
WizardExport void * RelinquishWizardMemory(void *memory)
WizardExport void SetSecretId(SecretInfo *secret_info, const StringInfo *id)
WizardExport WizardBooleanType AuthenticateSecretKey(SecretInfo *secret_info, ExceptionInfo *exception)
WizardExport SecretInfo * DestroySecretInfo(SecretInfo *secret_info)
WizardExport const StringInfo * GetSecretKey(const SecretInfo *secret_info)
WizardExport SecretInfo * AcquireSecretInfo(const char *path, const HashType hash, const size_t key_length)
WizardExport void SetSecretPassphrase(SecretInfo *secret_info, const char *passphrase)
WizardExport void SetSecretKeyLength(SecretInfo *secret_info, const size_t key_length)
WizardExport const StringInfo * GetSecretId(const SecretInfo *secret_info)
WizardExport const char * GetSecretPassphrase(const SecretInfo *secret_info)
WizardExport WizardBooleanType GenerateSecretKey(SecretInfo *secret_info, ExceptionInfo *exception)
WizardExport size_t GetSecretKeyLength(const SecretInfo *secret_info)
AuthenticateMethod method