diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-02 15:51:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-02 15:51:46 +0000 |
commit | eca1b167120907f6d927de29f449c93bdf381a83 (patch) | |
tree | 0699691346ba01d3963cf5c3ef49138713f37205 /plugins/CryptoPP/cpp_pgpw.cpp | |
parent | 1ed8a4ff1ec95b0df08a5bf48bb372c8481e381b (diff) |
- removed __asm piece
git-svn-id: http://svn.miranda-ng.org/main/trunk@717 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/cpp_pgpw.cpp')
-rw-r--r-- | plugins/CryptoPP/cpp_pgpw.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CryptoPP/cpp_pgpw.cpp b/plugins/CryptoPP/cpp_pgpw.cpp index e8f9f98ab4..fa20560f94 100644 --- a/plugins/CryptoPP/cpp_pgpw.cpp +++ b/plugins/CryptoPP/cpp_pgpw.cpp @@ -115,7 +115,7 @@ BOOL load_pgp_sdk(int type, int id) if ( isVista ) load_pgpsdk_dll(hpgpsdk);
else load_pgpsdk_mem(hpgpsdk);
r = p_pgp_init();
- if(r) {
+ if (r) {
pgpVer = p_pgp_get_version();
return r;
}
@@ -157,7 +157,7 @@ int __cdecl pgp_done() {
int r = 0;
pgpVer = 0;
- if(hpgpsdk) {
+ if (hpgpsdk) {
r = p_pgp_done();
if ( isVista ) {
FreeLibrary(hpgpsdk);
@@ -204,7 +204,7 @@ LPSTR __cdecl pgp_encrypt(pCNTX ptr, LPCSTR szPlainMsg) SAFE_FREE(ptr->tmp);
LPSTR szEncMsg;
- if(p->pgpKey)
+ if (p->pgpKey)
szEncMsg = p_pgp_encrypt_key(szPlainMsg,(LPCSTR)p->pgpKey);
else
szEncMsg = p_pgp_encrypt_keydb(szPlainMsg,p->pgpKeyID);
@@ -225,9 +225,9 @@ LPSTR __cdecl pgp_decrypt(pCNTX ptr, LPCSTR szEncMsg) LPSTR szPlainMsg = p_pgp_decrypt_keydb(szEncMsg);
if (!szPlainMsg) {
ptr = get_context_on_id(hPGPPRIV); // find private pgp keys
- if(ptr) {
+ if (ptr) {
pPGPDATA p = (pPGPDATA) ptr->pdata;
- if(p->pgpKey)
+ if (p->pgpKey)
szPlainMsg = p_pgp_decrypt_key(szEncMsg,(LPCSTR)p->pgpKey);
}
if (!szPlainMsg) return NULL;
@@ -259,7 +259,7 @@ LPSTR __cdecl pgp_decode(HANDLE context, LPCSTR szEncMsg) LPSTR szNewMsg = NULL;
LPSTR szOldMsg = pgp_decrypt(ptr, szEncMsg);
- if(szOldMsg) {
+ if (szOldMsg) {
if ( !is_7bit_string(szOldMsg) && !is_utf8_string(szOldMsg) ) {
int slen = strlen(szOldMsg)+1;
LPWSTR wszMsg = (LPWSTR) alloca(slen*sizeof(WCHAR));
|