diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-11 05:22:07 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-11 05:22:07 +0300 |
commit | 41539458d2d114cb714b72315c482e33340a9ee3 (patch) | |
tree | 0dffe24b1af5cdd47b00ba8e5bb79cc5853f2c02 /messages.cpp | |
parent | ff34af8edad99fae99b59def8a3d5cce92085a9c (diff) |
modified: init.cpp
modified: main.cpp
modified: messages.cpp
modified: new_gpg.rc
modified: options.cpp
modified: resource.h
modified: utilities.cpp
Diffstat (limited to 'messages.cpp')
-rw-r--r-- | messages.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/messages.cpp b/messages.cpp index ab492d1..38205cb 100644 --- a/messages.cpp +++ b/messages.cpp @@ -29,6 +29,17 @@ int RecvMsgSvc(WPARAM w, LPARAM l) return CallService(MS_PROTO_CHAINRECV, w, l);
bool unicode = (bool)(pre->flags&PREF_UNICODE);
+ { //check for public key
+ string str = msg;
+ string::size_type s1, s2;
+ if(((s2 = str.find("-----END PGP PUBLIC KEY BLOCK-----")) != string::npos) && ((s1 = str.find("-----BEGIN PGP PUBLIC KEY BLOCK-----")) != string::npos))
+ { //this is public key
+ }
+ else if(((s2 = str.find("-/ENCRYPTED-")) != string::npos) && ((s1 = str.find("-ENCRYPTED-")) != string::npos))
+ { //this is encrypted data block
+ }
+ }
+
return CallService(MS_PROTO_CHAINRECV, w, l);
}
|