#include "wizard/studio.h"#include "wizard/blob-private.h"#include "wizard/exception.h"#include "wizard/exception-private.h"#include "wizard/file.h"#include "wizard/keyring.h"#include "wizard/magick.h"#include "wizard/memory_.h"#include "wizard/utility.h"#include "wizard/xml-tree.h"
Go to the source code of this file.
Data Structures | |
| struct | _KeyringInfo |
Defines | |
| #define | KeyringFilename "keyring.xdm" |
| #define | KeyringFiletype "keyring" |
| #define | KeyringProtocolMajorVersion 1 |
| #define | KeyringProtocolMinorVersion 1 |
Functions | |
| WizardExport KeyringInfo * | AcquireKeyringInfo (const char *path) |
| WizardExport KeyringInfo * | DestroyKeyringInfo (KeyringInfo *keyring_info) |
| WizardExport WizardBooleanType | ExportKeyringKey (KeyringInfo *keyring_info, ExceptionInfo *exception) |
| WizardExport const StringInfo * | GetKeyringKey (const KeyringInfo *keyring_info) |
| WizardExport const StringInfo * | GetKeyringNonce (const KeyringInfo *keyring_info) |
| WizardExport WizardBooleanType | ImportKeyringKey (KeyringInfo *keyring_info, ExceptionInfo *exception) |
| WizardExport WizardBooleanType | PrintKeyringProperties (const char *path, BlobInfo *keyring_blob, ExceptionInfo *exception) |
| WizardExport void | SetKeyringId (KeyringInfo *keyring_info, const StringInfo *id) |
| WizardExport void | SetKeyringKey (KeyringInfo *keyring_info, const StringInfo *key) |
| WizardExport void | SetKeyringNonce (KeyringInfo *keyring_info, const StringInfo *nonce) |
| WizardExport void | SetKeyringPath (KeyringInfo *keyring_info, const char *path) |
| #define KeyringFilename "keyring.xdm" |
Definition at line 56 of file keyring.c.
Referenced by ExportKeyringKey(), ImportKeyringKey(), and PrintKeyringProperties().
| #define KeyringFiletype "keyring" |
Definition at line 57 of file keyring.c.
Referenced by ExportKeyringKey(), ImportKeyringKey(), and PrintKeyringProperties().
| #define KeyringProtocolMajorVersion 1 |
Definition at line 58 of file keyring.c.
Referenced by AcquireKeyringInfo().
| #define KeyringProtocolMinorVersion 1 |
Definition at line 59 of file keyring.c.
Referenced by AcquireKeyringInfo().
| WizardExport KeyringInfo* AcquireKeyringInfo | ( | const char * | path | ) |
Definition at line 107 of file keyring.c.
References AcquireAlignedMemory(), ConstantString(), _KeyringInfo::id, _KeyringInfo::key, KeyringDomain, KeyringProtocolMajorVersion, KeyringProtocolMinorVersion, MemoryError, _KeyringInfo::nonce, _KeyringInfo::path, _KeyringInfo::protocol_major, _KeyringInfo::protocol_minor, ResetWizardMemory(), _KeyringInfo::signature, ThrowWizardFatalError, _KeyringInfo::timestamp, and WizardSignature.
Referenced by AcquireSecretInfo(), and ImportKeyringKey().
| WizardExport KeyringInfo* DestroyKeyringInfo | ( | KeyringInfo * | keyring_info | ) |
Definition at line 151 of file keyring.c.
References DestroyString(), DestroyStringInfo(), GetWizardModule, _KeyringInfo::id, _KeyringInfo::key, KeymapDomain, LogWizardEvent(), _KeyringInfo::nonce, _KeyringInfo::path, RelinquishWizardMemory(), _KeyringInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by DestroySecretInfo(), and ImportKeyringKey().
| WizardExport WizardBooleanType ExportKeyringKey | ( | KeyringInfo * | keyring_info, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 194 of file keyring.c.
References AcquireFileInfo(), AcquireStringInfo(), CloneStringInfo(), CompareStringInfo(), DestroyFileInfo(), DestroyStringInfo(), GetFilePath(), GetStringInfoDatum(), GetStringInfoLength(), GetWizardMagick(), GetWizardModule, _KeyringInfo::id, KeymapDomain, KeyringError, KeyringFilename, KeyringFiletype, LogWizardEvent(), _KeyringInfo::path, _KeyringInfo::protocol_major, _KeyringInfo::protocol_minor, ReadFile16Bits(), ReadFile32Bits(), ReadFile64Bits(), ReadFileChunk(), ReadFileMode, SetKeyringKey(), SetKeyringNonce(), _KeyringInfo::signature, ThrowWizardException(), _KeyringInfo::timestamp, TraceEvent, WizardAssert, WizardFalse, WizardMagick, WizardSignature, and WizardTrue.
Referenced by AuthenticateSecretKey(), GenerateSecretKey(), and ImportKeyringKey().
| WizardExport const StringInfo* GetKeyringKey | ( | const KeyringInfo * | keyring_info | ) |
Definition at line 354 of file keyring.c.
References GetWizardModule, _KeyringInfo::key, KeyringDomain, LogWizardEvent(), _KeyringInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by AuthenticateSecretKey(), and GenerateSecretKey().
| WizardExport const StringInfo* GetKeyringNonce | ( | const KeyringInfo * | keyring_info | ) |
Definition at line 384 of file keyring.c.
References GetWizardModule, KeyringDomain, LogWizardEvent(), _KeyringInfo::nonce, _KeyringInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by AuthenticateSecretKey(), and GenerateSecretKey().
| WizardExport WizardBooleanType ImportKeyringKey | ( | KeyringInfo * | keyring_info, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 417 of file keyring.c.
References AcquireFileInfo(), AcquireKeyringInfo(), DestroyFileInfo(), DestroyKeyringInfo(), DestroyString(), DestroyStringInfo(), ExportKeyringKey(), GetFileDescriptor(), GetFilePath(), GetStringInfoDatum(), GetStringInfoLength(), GetWizardMagick(), GetWizardModule, _KeyringInfo::id, _KeyringInfo::key, KeymapDomain, KeyringError, KeyringFilename, KeyringFiletype, LogWizardEvent(), _KeyringInfo::nonce, _KeyringInfo::path, _KeyringInfo::protocol_major, _KeyringInfo::protocol_minor, SetKeyringId(), _KeyringInfo::signature, StringInfoToHexString(), ThrowWizardException(), _KeyringInfo::timestamp, TraceEvent, WizardAssert, WizardFalse, WizardMagick, WizardSeek, WizardSignature, WizardTrue, WriteFile16Bits(), WriteFile32Bits(), WriteFile64Bits(), WriteFileChunk(), and WriteFileMode.
Referenced by GenerateSecretKey().
| WizardExport WizardBooleanType PrintKeyringProperties | ( | const char * | path, | |
| BlobInfo * | keyring_blob, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 536 of file keyring.c.
References AcquireFileInfo(), AcquireString(), AcquireStringInfo(), CanonicalXMLContent(), CloneStringInfo(), CompareStringInfo(), ConcatenateString(), DestroyFileInfo(), DestroyString(), DestroyStringInfo(), FileError, FormatWizardString(), FormatWizardTime(), GetFilePath(), GetFileProperties(), GetStringInfoDatum(), GetStringInfoLength(), GetWizardMagick(), GetWizardModule, KeymapDomain, KeyringError, KeyringFilename, KeyringFiletype, LogWizardEvent(), _KeyringInfo::protocol_major, _KeyringInfo::protocol_minor, ReadFile16Bits(), ReadFile32Bits(), ReadFile64Bits(), ReadFileChunk(), ReadFileMode, ResetWizardMemory(), _KeyringInfo::signature, StringInfoToHexString(), ThrowFileException, ThrowWizardException(), _KeyringInfo::timestamp, TraceEvent, WizardAssert, WizardFalse, WizardMagick, WizardSignature, WizardTrue, and WriteBlob().
| WizardExport void SetKeyringId | ( | KeyringInfo * | keyring_info, | |
| const StringInfo * | id | |||
| ) |
Definition at line 751 of file keyring.c.
References CloneStringInfo(), DestroyStringInfo(), _KeyringInfo::id, KeymapDomain, _KeyringInfo::signature, WizardAssert, and WizardSignature.
Referenced by AuthenticateSecretKey(), GenerateSecretKey(), and ImportKeyringKey().
| WizardExport void SetKeyringKey | ( | KeyringInfo * | keyring_info, | |
| const StringInfo * | key | |||
| ) |
Definition at line 784 of file keyring.c.
References CloneStringInfo(), DestroyStringInfo(), _KeyringInfo::key, KeymapDomain, _KeyringInfo::signature, WizardAssert, and WizardSignature.
Referenced by ExportKeyringKey(), and GenerateSecretKey().
| WizardExport void SetKeyringNonce | ( | KeyringInfo * | keyring_info, | |
| const StringInfo * | nonce | |||
| ) |
Definition at line 817 of file keyring.c.
References CloneStringInfo(), DestroyStringInfo(), KeymapDomain, _KeyringInfo::nonce, _KeyringInfo::signature, WizardAssert, and WizardSignature.
Referenced by ExportKeyringKey(), and GenerateSecretKey().
| WizardExport void SetKeyringPath | ( | KeyringInfo * | keyring_info, | |
| const char * | path | |||
| ) |
Definition at line 851 of file keyring.c.
References CloneString(), KeymapDomain, _KeyringInfo::path, _KeyringInfo::signature, WizardAssert, and WizardSignature.
1.6.2-20100208