From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CryptoPP/GPGw/gpg.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 plugins/CryptoPP/GPGw/gpg.h (limited to 'plugins/CryptoPP/GPGw/gpg.h') diff --git a/plugins/CryptoPP/GPGw/gpg.h b/plugins/CryptoPP/GPGw/gpg.h new file mode 100644 index 0000000000..5a06071e4a --- /dev/null +++ b/plugins/CryptoPP/GPGw/gpg.h @@ -0,0 +1,40 @@ +#ifndef __GPG_H__ +#define __GPG_H__ + +typedef enum +{ + gpgSuccess, + gpgUnknownError, + gpgWriteToFileFailed, + gpgReadFromFileFailed, + gpgExecuteFailed +} +gpgResult; + +// konstanten fuer die initialisierung der parameter +extern char *txtgpgargslistpublickeys; +extern char *txtgpgargslistsecretkeys; +extern char *txtgpgargsimportpublickey; +extern char *txtgpgargsexportpublickey; +extern char *txtgpgargsdetectuserid; +extern char *txtgpgargsencrypt; +extern char *txtgpgargsdecrypt; + +// sonstige konstanten +extern char *txtcrlf; +extern char *txtidseparator; + +// zeichenketten +extern char gpgExecutable[]; +extern char gpgHomeDirectory[]; + +// funktionsprototypen +gpgResult gpgListPublicKeys(char *aresult); +gpgResult gpgListSecretKeys(char *aresult); +gpgResult gpgImportPublicKey(const char *akey); +gpgResult gpgExportPublicKey(char *aresult, const char *auserid); +gpgResult gpgDetectUserID(char *aresult, const char *aciphertext); +gpgResult gpgEncrypt(char *aresult, const char *auserid, const char *aplaintext); +gpgResult gpgDecrypt(char *aresult, const char *aciphertext, const char *apassphrase); + +#endif // __GPG_H__ -- cgit v1.2.3