diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-11 17:48:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-11 17:48:18 +0000 |
commit | 2fbe1d2262383b272ef887d712f308f787cf33f1 (patch) | |
tree | 772a78df1caf0be843d8778344e02ac750ba7a03 /plugins/CryptoPP/src/GPGw/gpgw.h | |
parent | 48fc03aa394f4506c6053323386c040fede13a29 (diff) |
64-bit compatible version of CryptoPP
git-svn-id: http://svn.miranda-ng.org/main/trunk@4917 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/src/GPGw/gpgw.h')
-rw-r--r-- | plugins/CryptoPP/src/GPGw/gpgw.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/plugins/CryptoPP/src/GPGw/gpgw.h b/plugins/CryptoPP/src/GPGw/gpgw.h new file mode 100644 index 0000000000..abaf52430e --- /dev/null +++ b/plugins/CryptoPP/src/GPGw/gpgw.h @@ -0,0 +1,61 @@ +// Windows API
+
+#pragma once
+
+#include "..\version.h"
+
+// gnupg plugin
+#include "gpg_res.h"
+#include "size.h"
+#include "language.h"
+#include "pipeexec.h"
+#include "gpg.h"
+#include "tools.h"
+#include "passphrases.h"
+#include "passdialog.h"
+#include "userdialog.h"
+#include "keys.h"
+
+// passphrase typ
+struct passphrase_t
+{
+ char keyuserid[keyuseridsize];
+ char passphrase[passphrasesize];
+};
+
+extern struct passphrase_t *passphrases;
+extern int passphrasecount;
+
+extern char temporarydirectory[fullfilenamesize];
+extern char logfile[fullfilenamesize];
+
+extern char *txtbeginpgppublickeyblock;
+extern char *txtendpgppublickeyblock;
+extern char *txtbeginpgpmessage;
+extern char *txtendpgpmessage;
+
+#undef MODULENAME
+#define MODULENAME "GnuPG"
+
+extern LPCSTR szModuleName;
+extern LPCSTR szVersionStr;
+extern HINSTANCE g_hInst;
+
+#define DLLEXPORT __declspec(dllexport)
+
+extern DLLEXPORT int __cdecl _gpg_init(void);
+extern DLLEXPORT int __cdecl _gpg_done(void);
+extern DLLEXPORT int __cdecl _gpg_open_keyrings(LPSTR,LPSTR);
+extern DLLEXPORT int __cdecl _gpg_close_keyrings(void);
+extern DLLEXPORT void __cdecl _gpg_set_log(LPCSTR);
+extern DLLEXPORT void __cdecl _gpg_set_tmp(LPCSTR);
+extern DLLEXPORT LPSTR __cdecl _gpg_get_error(void);
+extern DLLEXPORT int __cdecl _gpg_size_keyid(void);
+extern DLLEXPORT int __cdecl _gpg_select_keyid(HWND,LPSTR);
+extern DLLEXPORT LPSTR __cdecl _gpg_encrypt(LPCSTR,LPCSTR);
+extern DLLEXPORT LPSTR __cdecl _gpg_decrypt(LPCSTR);
+extern DLLEXPORT LPSTR __cdecl _gpg_get_passphrases();
+extern DLLEXPORT void __cdecl _gpg_set_passphrases(LPCSTR);
+
+void __cdecl ErrorMessage(const char *alevel, const char *atext, const char *ahint);
+void __cdecl LogMessage(const char *astart, const char *atext, const char *aend);
|