82 lines
6.0 KiB
TeX
82 lines
6.0 KiB
TeX
\hypertarget{GpgKeyImportExporter_8h_source}{}\doxysection{Gpg\+Key\+Import\+Exporter.\+h}
|
|
\label{GpgKeyImportExporter_8h_source}\index{src/core/function/gpg/GpgKeyImportExporter.h@{src/core/function/gpg/GpgKeyImportExporter.h}}
|
|
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{1 }
|
|
\DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef \_GPGKEYIMPORTEXPORTOR\_H}}
|
|
\DoxyCodeLine{30 \textcolor{preprocessor}{\#define \_GPGKEYIMPORTEXPORTOR\_H}}
|
|
\DoxyCodeLine{31 }
|
|
\DoxyCodeLine{32 \textcolor{preprocessor}{\#include <string>}}
|
|
\DoxyCodeLine{33 }
|
|
\DoxyCodeLine{34 \textcolor{preprocessor}{\#include "{}core/GpgConstants.h"{}}}
|
|
\DoxyCodeLine{35 \textcolor{preprocessor}{\#include "{}core/GpgContext.h"{}}}
|
|
\DoxyCodeLine{36 \textcolor{preprocessor}{\#include "{}core/GpgFunctionObject.h"{}}}
|
|
\DoxyCodeLine{37 \textcolor{preprocessor}{\#include "{}core/GpgModel.h"{}}}
|
|
\DoxyCodeLine{38 }
|
|
\DoxyCodeLine{39 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend}{GpgFrontend}} \{}
|
|
\DoxyCodeLine{40 }
|
|
\DoxyCodeLine{45 \textcolor{keyword}{class }\mbox{\hyperlink{classGpgFrontend_1_1GpgImportedKey}{GpgImportedKey}} \{}
|
|
\DoxyCodeLine{46 \textcolor{keyword}{public}:}
|
|
\DoxyCodeLine{47 std::string fpr; }
|
|
\DoxyCodeLine{48 \textcolor{keywordtype}{int} import\_status; }
|
|
\DoxyCodeLine{49 \};}
|
|
\DoxyCodeLine{50 }
|
|
\DoxyCodeLine{51 \textcolor{keyword}{typedef} std::list<GpgImportedKey> GpgImportedKeyList; }
|
|
\DoxyCodeLine{52 }
|
|
\DoxyCodeLine{57 \textcolor{keyword}{class }GPGFRONTEND\_CORE\_EXPORT \mbox{\hyperlink{classGpgFrontend_1_1GpgImportInformation}{GpgImportInformation}} \{}
|
|
\DoxyCodeLine{58 \textcolor{keyword}{public}:}
|
|
\DoxyCodeLine{59 \mbox{\hyperlink{classGpgFrontend_1_1GpgImportInformation}{GpgImportInformation}}();}
|
|
\DoxyCodeLine{60 }
|
|
\DoxyCodeLine{66 \textcolor{keyword}{explicit} \mbox{\hyperlink{classGpgFrontend_1_1GpgImportInformation}{GpgImportInformation}}(gpgme\_import\_result\_t result);}
|
|
\DoxyCodeLine{67 }
|
|
\DoxyCodeLine{68 \textcolor{keywordtype}{int} considered = 0; }
|
|
\DoxyCodeLine{69 \textcolor{keywordtype}{int} no\_user\_id = 0; }
|
|
\DoxyCodeLine{70 \textcolor{keywordtype}{int} imported = 0; }
|
|
\DoxyCodeLine{71 \textcolor{keywordtype}{int} imported\_rsa = 0; }
|
|
\DoxyCodeLine{72 \textcolor{keywordtype}{int} unchanged = 0; }
|
|
\DoxyCodeLine{73 \textcolor{keywordtype}{int} new\_user\_ids = 0; }
|
|
\DoxyCodeLine{74 \textcolor{keywordtype}{int} new\_sub\_keys = 0; }
|
|
\DoxyCodeLine{75 \textcolor{keywordtype}{int} new\_signatures = 0; }
|
|
\DoxyCodeLine{76 \textcolor{keywordtype}{int} new\_revocations = 0; }
|
|
\DoxyCodeLine{77 \textcolor{keywordtype}{int} secret\_read = 0; }
|
|
\DoxyCodeLine{78 \textcolor{keywordtype}{int} secret\_imported = 0; }
|
|
\DoxyCodeLine{79 \textcolor{keywordtype}{int} secret\_unchanged = 0; }
|
|
\DoxyCodeLine{80 \textcolor{keywordtype}{int} not\_imported = 0; }
|
|
\DoxyCodeLine{81 }
|
|
\DoxyCodeLine{82 GpgImportedKeyList importedKeys; }
|
|
\DoxyCodeLine{83 \};}
|
|
\DoxyCodeLine{84 }
|
|
\DoxyCodeLine{89 \textcolor{keyword}{class }GPGFRONTEND\_CORE\_EXPORT \mbox{\hyperlink{classGpgFrontend_1_1GpgKeyImportExporter}{GpgKeyImportExporter}}}
|
|
\DoxyCodeLine{90 : \textcolor{keyword}{public} \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject}{SingletonFunctionObject}}<GpgKeyImportExporter> \{}
|
|
\DoxyCodeLine{91 \textcolor{keyword}{public}:}
|
|
\DoxyCodeLine{97 \textcolor{keyword}{explicit} \mbox{\hyperlink{classGpgFrontend_1_1GpgKeyImportExporter}{GpgKeyImportExporter}}(}
|
|
\DoxyCodeLine{98 \textcolor{keywordtype}{int} channel = \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a50e2b3794d6553f4231eaec72d9d0a50}{SingletonFunctionObject::GetDefaultChannel}}());}
|
|
\DoxyCodeLine{99 }
|
|
\DoxyCodeLine{106 \mbox{\hyperlink{classGpgFrontend_1_1GpgImportInformation}{GpgImportInformation}} ImportKey(StdBypeArrayPtr inBuffer);}
|
|
\DoxyCodeLine{107 }
|
|
\DoxyCodeLine{117 \textcolor{keywordtype}{bool} ExportKeys(KeyIdArgsListPtr\& uid\_list, ByteArrayPtr\& out\_buffer,}
|
|
\DoxyCodeLine{118 \textcolor{keywordtype}{bool} secret = \textcolor{keyword}{false}) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{119 }
|
|
\DoxyCodeLine{129 \textcolor{keywordtype}{bool} ExportKeys(\textcolor{keyword}{const} KeyArgsList\& keys, ByteArrayPtr\& outBuffer,}
|
|
\DoxyCodeLine{130 \textcolor{keywordtype}{bool} secret = \textcolor{keyword}{false}) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{131 }
|
|
\DoxyCodeLine{140 \textcolor{keywordtype}{bool} ExportKey(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{GpgKey}}\& key, ByteArrayPtr\& out\_buffer) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{141 }
|
|
\DoxyCodeLine{150 \textcolor{keywordtype}{bool} ExportKeyOpenSSH(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{GpgKey}}\& key, ByteArrayPtr\& out\_buffer) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{151 }
|
|
\DoxyCodeLine{160 \textcolor{keywordtype}{bool} ExportSecretKey(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{GpgKey}}\& key, ByteArrayPtr\& outBuffer) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{161 }
|
|
\DoxyCodeLine{170 \textcolor{keywordtype}{bool} ExportSecretKeyShortest(\textcolor{keyword}{const} \mbox{\hyperlink{classGpgFrontend_1_1GpgKey}{GpgKey}}\& key,}
|
|
\DoxyCodeLine{171 ByteArrayPtr\& outBuffer) \textcolor{keyword}{const};}
|
|
\DoxyCodeLine{172 }
|
|
\DoxyCodeLine{173 \textcolor{keyword}{private}:}
|
|
\DoxyCodeLine{174 \mbox{\hyperlink{classGpgFrontend_1_1GpgContext}{GpgContext}}\& ctx\_ =}
|
|
\DoxyCodeLine{175 \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a8a378452876a685af879e04bfa456b6f}{GpgContext::GetInstance}}(\mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_aa99440b9177f5d0c18840f08a40d64b7}{SingletonFunctionObject::GetChannel}}()); }
|
|
\DoxyCodeLine{176 \};}
|
|
\DoxyCodeLine{177 }
|
|
\DoxyCodeLine{178 \} \textcolor{comment}{// namespace GpgFrontend}}
|
|
\DoxyCodeLine{179 }
|
|
\DoxyCodeLine{180 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// \_GPGKEYIMPORTEXPORTOR\_H}}
|
|
|
|
\end{DoxyCode}
|