29 #ifndef _GPGKEYIMPORTEXPORTOR_H
30 #define _GPGKEYIMPORTEXPORTOR_H
34 #include "core/GpgConstants.h"
35 #include "core/GpgContext.h"
36 #include "core/GpgFunctionObject.h"
37 #include "core/GpgModel.h"
51 typedef std::list<GpgImportedKey> GpgImportedKeyList;
75 int new_signatures = 0;
76 int new_revocations = 0;
78 int secret_imported = 0;
79 int secret_unchanged = 0;
82 GpgImportedKeyList importedKeys;
117 bool ExportKeys(KeyIdArgsListPtr& uid_list, ByteArrayPtr& out_buffer,
118 bool secret =
false)
const;
129 bool ExportKeys(
const KeyArgsList& keys, ByteArrayPtr& outBuffer,
130 bool secret =
false)
const;
141 bool ExportAllKeys(KeyIdArgsListPtr& uid_list, ByteArrayPtr& out_buffer,
152 bool ExportKey(
const GpgKey& key, ByteArrayPtr& out_buffer)
const;
162 bool ExportKeyOpenSSH(
const GpgKey& key, ByteArrayPtr& out_buffer)
const;
172 bool ExportSecretKey(
const GpgKey& key, ByteArrayPtr& outBuffer)
const;
182 bool ExportSecretKeyShortest(
const GpgKey& key,
183 ByteArrayPtr& outBuffer)
const;
Definition: GpgContext.h:71
Definition: GpgKeyImportExporter.h:45
Definition: GpgKeyImportExporter.h:90
Definition: GpgFunctionObject.h:150
static int GetDefaultChannel()
Get the Default Channel object.
Definition: GpgFunctionObject.h:251
static GpgContext & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:172
int GetChannel() const
Get the Channel object.
Definition: GpgFunctionObject.h:258
Definition: CoreCommonUtil.cpp:31