/* [<][>][^][v][top][bottom][index][help] */
DEFINITIONS
This source file includes following definitions.
- CGpg
// Gpg.h: CGpg クラスのインターフェイス
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GPG_H__FABBB963_4A76_4F0E_B146_4FF1E1BD179E__INCLUDED_)
#define AFX_GPG_H__FABBB963_4A76_4F0E_B146_4FF1E1BD179E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct GEN_KEY_STRUCT
{
CString Key_Type;
CString Key_Length;
CString Subkey_Type;
CString Subkey_Length;
CString Name_Real;
CString Name_Comment;
CString Name_Email;
CString Expire_Date;
CString Passphrase;
};
class CGpg
{
public:
CString ExportKey(CString id);
CString GetSecKeyList();
CString GetPubKeyList();
BOOL ImportKey(LPCTSTR path);
BOOL ImportKey(CString key);
BOOL GenKey(GEN_KEY_STRUCT *gen_key_struct);
BOOL DelSecKey(CString id);
BOOL DelPubKey(CString id);
BOOL Check();
CString GetKeyList();
// CString Encode(CStringArray &list, CString in);
BOOL Encode(CStringArray &list, CString in, CString &out);
CString Decode(CString path, CString pass);
CString GetErrorMsg();
// BOOL ConnectProcess(CStringArray &comline, CString &out1, CString &out2);
// BOOL ConnectProcess2(CStringArray &comline, CString &out1, CString &out2, int size);
CGpg();
virtual ~CGpg();
private:
CString m_error;
};
#endif // !defined(AFX_GPG_H__FABBB963_4A76_4F0E_B146_4FF1E1BD179E__INCLUDED_)