From 6a47964cab12d66c30a106b77a59263e615c1213 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 28 Jul 2012 22:14:27 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@1236 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/new_gpg/new_gpg_10.vcxproj | 331 ++++++++++++++++++++++++++++-------- plugins/new_gpg/src/commonheaders.h | 1 - plugins/new_gpg/src/main.cpp | 10 -- plugins/new_gpg/src/messages.cpp | 22 +-- 4 files changed, 261 insertions(+), 103 deletions(-) (limited to 'plugins/new_gpg') diff --git a/plugins/new_gpg/new_gpg_10.vcxproj b/plugins/new_gpg/new_gpg_10.vcxproj index 13fc2b06be..7dfa1d30fb 100755 --- a/plugins/new_gpg/new_gpg_10.vcxproj +++ b/plugins/new_gpg/new_gpg_10.vcxproj @@ -5,10 +5,18 @@ Debug Win32 + + Debug + X64 + Release Win32 + + Release + X64 + @@ -18,7 +26,10 @@ - NotUsing + Create + Create + Create + Create @@ -68,6 +79,11 @@ false Unicode + + DynamicLibrary + false + Unicode + DynamicLibrary false @@ -78,6 +94,11 @@ false Unicode + + DynamicLibrary + false + Unicode + DynamicLibrary false @@ -98,6 +119,11 @@ false Unicode + + DynamicLibrary + false + Unicode + DynamicLibrary false @@ -112,73 +138,38 @@ DynamicLibrary false Unicode + true + + + DynamicLibrary + false + Unicode + true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 $(SolutionDir)$(Configuration)\ $(SolutionDir)$(Configuration)\Plugins\ + $(SolutionDir)$(Configuration)64\Plugins\ $(Configuration)\ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ false false + false .\Debug\ $(SolutionDir)$(Configuration)\Plugins\ + $(SolutionDir)$(Configuration)64\Plugins\ .\Debug\ $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ true true + true true $(SolutionDir)$(Configuration)\ $(SolutionDir)$(Configuration)\ @@ -188,16 +179,22 @@ false $(SolutionDir)$(Configuration)\ $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\ $(Configuration)\ $(Configuration)\ + $(Configuration)\ false false + false $(SolutionDir)$(Configuration)\ $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\ $(Configuration)\ $(Configuration)\ + $(Configuration)\ false false + false $(Configuration)\ $(Configuration)\ true @@ -206,25 +203,34 @@ AllRules.ruleset AllRules.ruleset + AllRules.ruleset AllRules.ruleset + + AllRules.ruleset AllRules.ruleset + AllRules.ruleset + + AllRules.ruleset AllRules.ruleset + AllRules.ruleset + + AllRules.ruleset AllRules.ruleset @@ -233,10 +239,13 @@ AllRules.ruleset AllRules.ruleset + AllRules.ruleset + + @@ -260,10 +269,6 @@ true StreamingSIMDExtensions Precise - .\Release Unicode/testplug.pch - .\Release Unicode/ - .\Release Unicode/ - .\Release Unicode/ Level3 true @@ -272,7 +277,6 @@ 0x0809 - libgpgme-11.lib;libgcrypt-11.lib;libksba-8.lib;%(AdditionalDependencies) true X:\install\git\miranda\mim_plugs\lib;%(AdditionalLibraryDirectories) true @@ -304,7 +308,7 @@ Size true true - X:\install\git\miranda\miranda_ng_svn\plugins\new_gpg\dependencies\include;..\..\..\boost_1_49_0;..\..\include + .\dependencies\include;..\..\..\boost_1_49_0;..\..\include WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_UNICODE;%(PreprocessorDefinitions) true MultiThreadedDLL @@ -313,6 +317,8 @@ Fast Level3 true + Use + commonheaders.h NDEBUG;%(PreprocessorDefinitions) @@ -329,7 +335,58 @@ false - .\Release Unicode/testplug.lib + $(IntDir)$(TargetName).lib + Windows + + + true + .\Release Unicode/testplug.bsc + + + + + NDEBUG;%(PreprocessorDefinitions) + true + true + .\Release Unicode/testplug.tlb + + + + + Full + OnlyExplicitInline + Size + true + true + .\dependencies\include;..\..\..\boost_1_49_0;..\..\include + WIN64;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_UNICODE;%(PreprocessorDefinitions) + true + MultiThreadedDLL + true + StreamingSIMDExtensions + Fast + Level3 + true + Use + commonheaders.h + + + NDEBUG;%(PreprocessorDefinitions) + 0x0809 + + + shlwapi.lib;%(AdditionalDependencies) + true + $(SolutionDir)\lib;..\..\..\boost_1_49_0\lib64;%(AdditionalLibraryDirectories) + true + true + true + UseLinkTimeCodeGeneration + false + + + $(IntDir)$(TargetName).lib + Windows true @@ -353,12 +410,8 @@ MultiThreadedDebug Use commonheaders.h - c:\temp\new_gpg.pch - .\Debug/ - .\Debug/ - .\Debug/ true Level3 true @@ -373,9 +426,6 @@ true x:\temp\windows\libs\boost\lib;%(AdditionalLibraryDirectories) true - true - false - false false @@ -397,20 +447,18 @@ Disabled - ..\..\dependencies\include;x:\temp\windows\libs\Boost\include;..\..\include + .\dependencies\include;..\..\..\boost_1_49_0;..\..\include WIN32;_DEBUG;_WINDOWS;_USRDLL;TESTPLUG_EXPORTS;_CRT_SECURE_NO_WARNINGS;_UNICODE;UNICODE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL - NotUsing + Use commonheaders.h - All true Level3 true true true CompileAsCpp - true _DEBUG;%(PreprocessorDefinitions) @@ -419,16 +467,59 @@ shlwapi.lib;%(AdditionalDependencies) true - $(SolutionDir)\lib;x:\temp\windows\libs\Boost\lib;%(AdditionalLibraryDirectories) + $(SolutionDir)\lib;..\..\..\boost_1_49_0\lib;%(AdditionalLibraryDirectories) + true + false + + + $(IntDir)$(TargetName).lib + $(TargetDir)$(TargetName).pdb + Windows + + + true + .\Debug/testplug.bsc + + + + + _DEBUG;%(PreprocessorDefinitions) + true + true + .\Debug/testplug.tlb + + + + + Disabled + .\dependencies\include;..\..\..\boost_1_49_0;..\..\include + WIN64;_DEBUG;_WINDOWS;_USRDLL;TESTPLUG_EXPORTS;_CRT_SECURE_NO_WARNINGS;_UNICODE;UNICODE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) + EnableFastChecks + MultiThreadedDebugDLL + Use + commonheaders.h + true + Level3 + true + true + true + CompileAsCpp + + + _DEBUG;%(PreprocessorDefinitions) + 0x0809 + + + shlwapi.lib;%(AdditionalDependencies) + true + $(SolutionDir)\lib;..\..\..\boost_1_49_0\lib64;%(AdditionalLibraryDirectories) true - true - true - false false $(IntDir)$(TargetName).lib $(TargetDir)$(TargetName).pdb + Windows true @@ -693,6 +784,55 @@ .\Release Unicode (static)/testplug.bsc + + + NDEBUG;%(PreprocessorDefinitions) + true + true + .\Release Unicode (static)/testplug.tlb + + + + + Full + OnlyExplicitInline + Size + true + true + ../../include;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + true + MultiThreaded + true + StreamingSIMDExtensions + Precise + .\Release Unicode (static)/testplug.pch + .\Release Unicode (static)/ + .\Release Unicode (static)/ + .\Release Unicode (static)/ + Level3 + true + + + NDEBUG;%(PreprocessorDefinitions) + 0x0809 + + + true + true + true + true + UseLinkTimeCodeGeneration + false + + + .\Release Unicode (static)/testplug.lib + + + true + .\Release Unicode (static)/testplug.bsc + + NDEBUG;%(PreprocessorDefinitions) @@ -791,6 +931,55 @@ .\Release Unicode (static)/testplug.bsc + + + NDEBUG;%(PreprocessorDefinitions) + true + true + .\Release Unicode (static)/testplug.tlb + + + + + Full + OnlyExplicitInline + Size + true + true + ../../include;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + true + MultiThreadedDLL + true + StreamingSIMDExtensions + Precise + .\Release Unicode (static)/testplug.pch + .\Release Unicode (static)/ + .\Release Unicode (static)/ + .\Release Unicode (static)/ + Level3 + true + + + NDEBUG;%(PreprocessorDefinitions) + 0x0809 + + + true + true + true + true + UseLinkTimeCodeGeneration + false + + + .\Release Unicode (static)/testplug.lib + + + true + .\Release Unicode (static)/testplug.bsc + + _DEBUG;%(PreprocessorDefinitions) diff --git a/plugins/new_gpg/src/commonheaders.h b/plugins/new_gpg/src/commonheaders.h index 459d76ef64..ea9f32cd32 100755 --- a/plugins/new_gpg/src/commonheaders.h +++ b/plugins/new_gpg/src/commonheaders.h @@ -67,7 +67,6 @@ using std::fstream; #include #include #include -#include #include #include #include diff --git a/plugins/new_gpg/src/main.cpp b/plugins/new_gpg/src/main.cpp index 3857f38438..6b80bc2b8a 100755 --- a/plugins/new_gpg/src/main.cpp +++ b/plugins/new_gpg/src/main.cpp @@ -2022,16 +2022,6 @@ void InitCheck() } mir_free(path); } - extern bool bAutoExchange; - if(bAutoExchange && (ServiceExists("ICQ"PS_ICQ_ADDCAPABILITY))) //work only for one icq instance - { - ICQ_CUSTOMCAP cap; - cap.cbSize = sizeof(ICQ_CUSTOMCAP); - cap.hIcon = 0; - strcpy(cap.name, "GPG Key AutoExchange"); - strcpy(cap.caps, "GPG AutoExchange"); - CallService("ICQ"PS_ICQ_ADDCAPABILITY, 0, (LPARAM)&cap); - } } void ImportKey() diff --git a/plugins/new_gpg/src/messages.cpp b/plugins/new_gpg/src/messages.cpp index f2e3c3527c..8ac0186466 100755 --- a/plugins/new_gpg/src/messages.cpp +++ b/plugins/new_gpg/src/messages.cpp @@ -567,13 +567,6 @@ int RecvMsgSvc(WPARAM w, LPARAM l) DWORD uin = DBGetContactSettingDword(ccs->hContact, proto, "UIN", 0); if(uin) { - if(ServiceExists("ICQ"PS_ICQ_CHECKCAPABILITY)) - { - ICQ_CUSTOMCAP cap = {0}; - strcpy(cap.caps, "GPG AutoExchange"); - if(CallService("ICQ"PS_ICQ_CHECKCAPABILITY, (WPARAM)ccs->hContact, (LPARAM)&cap)) - CallContactService(ccs->hContact, PSS_MESSAGE, (WPARAM)PREF_UTF, (LPARAM)"-----PGP KEY REQUEST-----"); - } } else { @@ -827,19 +820,6 @@ int SendMsgSvc(WPARAM w, LPARAM l) DWORD uin = DBGetContactSettingDword(ccs->hContact, proto, "UIN", 0); if(uin) { - if(ServiceExists("ICQ"PS_ICQ_CHECKCAPABILITY)) - { - ICQ_CUSTOMCAP cap = {0}; - strcpy(cap.caps, "GPG AutoExchange"); - if(CallService("ICQ"PS_ICQ_CHECKCAPABILITY, (WPARAM)ccs->hContact, (LPARAM)&cap)) - { - CallContactService(ccs->hContact, PSS_MESSAGE, (WPARAM)ccs->wParam, (LPARAM)"-----PGP KEY REQUEST-----"); - hcontact_data[ccs->hContact].msgs_to_send.push_back(msg); - boost::thread *thr = new boost::thread(boost::bind(send_encrypted_msgs_thread, ccs->hContact)); - mir_free(msg); - return returnNoError(ccs->hContact); - } - } } else { @@ -854,7 +834,7 @@ int SendMsgSvc(WPARAM w, LPARAM l) if(caps) { wstring str; - for(int i =0;;i++) + for(int i=0;;i++) { str.push_back(caps[i]); if(caps[i] == '\0') -- cgit v1.2.3