MagickCore 7.0.10
|
#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/nt-base.h"
#include "wizard/utility.h"
#include "wizard/xml-tree.h"
Go to the source code of this file.
Data Structures | |
struct | _KeyringInfo |
Macros | |
#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) |
WizardExport KeyringInfo * AcquireKeyringInfo | ( | const char * | path | ) |
Definition at line 108 of file keyring.c.
References AcquireWizardMemory(), ConstantString(), _KeyringInfo::id, _KeyringInfo::key, KeyringDomain, KeyringProtocolMajorVersion, KeyringProtocolMinorVersion, MemoryError, _KeyringInfo::nonce, _KeyringInfo::path, _KeyringInfo::protocol_major, _KeyringInfo::protocol_minor, _KeyringInfo::signature, ThrowWizardFatalError, _KeyringInfo::timestamp, and WizardSignature.
Referenced by AcquireSecretInfo(), and ImportKeyringKey().
WizardExport KeyringInfo * DestroyKeyringInfo | ( | KeyringInfo * | keyring_info | ) |
Definition at line 152 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 195 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 355 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 385 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 418 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, 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 537 of file keyring.c.
References AcquireFileInfo(), AcquireString(), AcquireStringInfo(), CanonicalXMLContent(), CloneStringInfo(), CompareStringInfo(), ConcatenateString(), DestroyFileInfo(), DestroyString(), DestroyStringInfo(), FileError, FormatLocaleString(), FormatWizardTime(), GetFilePath(), GetFileProperties(), GetStringInfoDatum(), GetStringInfoLength(), GetWizardMagick(), GetWizardModule, KeymapDomain, KeyringError, KeyringFilename, KeyringFiletype, LogWizardEvent(), _KeyringInfo::protocol_major, _KeyringInfo::protocol_minor, ReadFile16Bits(), ReadFile32Bits(), ReadFile64Bits(), ReadFileChunk(), ReadFileMode, _KeyringInfo::signature, StringInfoToHexString(), ThrowFileException, ThrowWizardException(), _KeyringInfo::timestamp, TraceEvent, WizardAssert, WizardFalse, WizardMagick, WizardPathExtent, WizardSignature, WizardTrue, and WriteBlob().
WizardExport void SetKeyringId | ( | KeyringInfo * | keyring_info, |
const StringInfo * | id | ||
) |
Definition at line 752 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 785 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 818 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 852 of file keyring.c.
References CloneString(), KeymapDomain, _KeyringInfo::path, _KeyringInfo::signature, WizardAssert, and WizardSignature.