csoler
928927e038
forgot to commit this in previous commit
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7059 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-01-26 20:32:51 +00:00
csoler
ef0a9e43ca
fixed proper return of decryption result so that the PGPHandler can report it
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7058 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-01-26 20:30:10 +00:00
csoler
f7cbacdcb1
added flag to only limit packets when necessary, otherwise a large keyring cannot be read
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7014 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-01-14 21:16:06 +00:00
csoler
2d64e3f540
limited the number of packets to be parsed in a row, to prevent compressed data to contain an enormous number of packets. Fixes one possible attack pointed out by HM
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7013 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-01-14 19:58:55 +00:00
csoler
3a567b2d6f
fixed possible malloc error when the size is absurdly big (potentially caused by a deliberate attack)
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7002 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-01-09 19:59:21 +00:00
csoler
2c19810e37
patch from HM to avoid allocating absurdly long uids
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6958 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-23 12:59:34 +00:00
csoler
a4a4d3bdda
added check for malloc success in packet-parse.c
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6950 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-19 22:16:17 +00:00
csoler
2f188b8217
removed asserts in packet-parse.c
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6949 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-18 20:22:59 +00:00
csoler
d8f42ddac7
fixed mistake introduced in 6937 that prevents correct writing of uncompressed packets
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6941 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-12 17:32:23 +00:00
csoler
156db5fb7c
removed asserts and added proper error handling
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6940 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-10 19:51:47 +00:00
csoler
f4ec563595
removed asserts in reader_armoured.c
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6939 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-10 14:20:17 +00:00
csoler
3e88b54ae3
removed asserts and put proper error handling in compress.c
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6937 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-10 09:49:13 +00:00
csoler
e2384724c3
removed asserts from validate.c. This needs to be tested against bad keys!
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6925 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-05 20:33:09 +00:00
csoler
70a407504f
removed asserts in signature.c. Replaced by proper error handling
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6922 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-04 20:58:57 +00:00
csoler
d0d85c0242
removed one assert in ops
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6920 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-02 19:45:25 +00:00
csoler
7d0d51dc2a
removed assert that would cause RS to stop if a signature ptag is not recognised.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6919 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-12-02 19:31:19 +00:00
csoler
261d9102d4
added check over recursive compression depth. Fixes CVE-2013-4402
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6880 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-10-29 20:56:40 +00:00
thunder2
13e7ac8b43
Fixed compile of the libraries with MinGW 4.8 on Windows.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-10-07 23:11:10 +00:00
csoler
c34ede4b1c
updated values for min/normal partial packet size to 1MB, so that we do not create partial packets for everyday use. We will have to properly extend openpgp-sdk to support parsing of partial packets if we want to PGP-encrypt chunks larger than 1MB.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6553 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-08-04 12:44:57 +00:00
csoler
b4f26dcf8f
fixed bug due to not using realloc correctly (thanks valgrind)
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6385 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-05-30 19:43:05 +00:00
csoler
37854a4697
removed asserts left in packet-parse that would be triggered by the new cleaning code in openpgp-sdk
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6383 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-05-30 16:50:17 +00:00
csoler
0266329dc8
- Added a drop-down item to allow removing unused keys, in the Network dialog.
...
- added key removal method in OpenPGP-SDK
- improved FriendSelectionDialog/Widget to enable select all/none keys, and show non friend keys
- added safe key removal method in PGPHandler. Removed keys from other locations will not cause errors.
- added backup system to public keyring, impossibility to remove public parts of owned secret keys, etc.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6382 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-05-29 21:32:02 +00:00
csoler
404e9362dc
added the ability to produce raw signatures, without signer id nor time stamp
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6273 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-03-22 23:54:54 +00:00
thunder2
85c089b09b
Fixed #ifdef for Windows compile in openpgpsdk.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5936 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-12-03 18:08:16 +00:00
thunder2
2de928dc64
Moved new files for ops_open from util to openpgpsdk.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5935 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-12-03 16:20:44 +00:00
thunder2
b85bccbbe6
Added function "ops_open" to openpgpsdk to open files with utf8 characters on Windows.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5934 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-12-03 15:58:44 +00:00
csoler
41cb5b7d34
removed some debugging output
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5560 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-09-17 20:09:38 +00:00
thunder2
29d7217c64
Added missing close of the temporary keyring file.
...
Now the keyring is saved properly and the newly added keys are not lost after shutdown of RetroShare.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5523 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-09-07 23:32:55 +00:00
csoler
64e171948c
removed deadly assert in validate.c:338
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5409 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-13 19:30:42 +00:00
csoler
8f27ab280f
removed unnecessary assert in free code.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5384 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-06 16:37:58 +00:00
thunder2
70aabe11f0
Switched off optimized compile on Windows (again).
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5376 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-02 23:25:28 +00:00
csoler
f835e83ff9
fixed up memory leak
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5374 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-02 19:40:24 +00:00
csoler
24b38baf6b
removed a couple of assert that could crash RS
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5369 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-01 14:02:45 +00:00
csoler
2dba7e96bc
removed deadly assert in case of parse failure
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5336 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-27 14:15:00 +00:00
thunder2
515a0abdb3
Switched to OpenSSL-1.0.1c for Windows compile.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5329 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-26 16:59:42 +00:00
thunder2
e305ab547d
Moved the include folder OpenSSL to the other external includes for Windows compile.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5319 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-21 23:21:39 +00:00
csoler
eec4fcb2f7
added missign break, causing a crash when creating a new key
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5303 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-15 20:27:47 +00:00
thunder2
b59f8e664a
Renamed the pro-file of OpenPGP-SDK from "src.pro" to "openpgpsdk.pro".
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5295 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-13 22:19:32 +00:00
csoler
f5c276c9b5
improved error handling
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5289 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-12 19:20:31 +00:00
csoler
c9eb267165
implemented export of identity (to create additional locations easily). Import still to do...
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5285 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-10 21:40:53 +00:00
csoler
54511ad390
fixed bug in certificate signature
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5283 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-09 20:20:36 +00:00
csoler
93f08ae730
fixed signature code
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5278 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-07 13:40:40 +00:00
csoler
444602e8e6
- added key signatures (not fully debugged yet)
...
- added locks to prevent concurrent access to PGPHandler
- added output of unverified signatures
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5275 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-05 22:25:46 +00:00
csoler
139ab68a4a
fixed key armoured output
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5273 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-03 07:00:49 +00:00
csoler
da1c8a6aa3
proper save of keys with all signatures
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5272 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-02 21:45:43 +00:00
csoler
9a07328ac2
fixed output/syncing of secret keyring
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5265 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-01 21:40:44 +00:00
thunder2
eac2c010c3
Fixed compile on Windows.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5264 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-01 20:08:28 +00:00
csoler
ba0cca637b
moved files to comply with rest of directory structure of RS
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5260 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-01 13:05:48 +00:00
csoler
3b5816e4f8
- added auto-update and sync of keyrings and trustdb between different instances (Not fully tested yet!)
...
- added checking of compatibility for DSA before calling openssl
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5259 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-29 19:38:19 +00:00
csoler
d825508836
removed a few asserts
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5234 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-19 18:58:07 +00:00
csoler
b603ef9d9f
added v3 signature verification codes for ripemd-160, sha224, sha512 and sha384
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5233 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-19 18:51:32 +00:00
thunder2
af19809ef7
Fixed crash and memory leak in parse_literal_data.
...
Added "break" in RsInit::InitRetroShare.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5225 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-16 09:40:59 +00:00
csoler
bc9fa8ff3e
corrected typo
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5224 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-15 22:03:15 +00:00
csoler
1b58ef74f8
implemented efficient signature merging. Not fully tested yet!
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5223 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-15 21:58:46 +00:00
thunder2
f50edd228f
- Fixed compile on Windows. Added new type "rs_lock_handle_t" for file locking functions.
...
- Added missing check of file pointer in PGPHandler::decryptTextFromFile
- Added missing fclose of the ssl passphrase file in RsLoginHandler::getSSLPasswdFromGPGFile. Is this still needed, because PGPHandler::decryptTextFromFile does the same check?
- Fixed possible memory leak in ops_decrypt_memory.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5222 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-14 22:53:02 +00:00
csoler
36bec260b9
fixed crash due to writing an unsupported key type
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5218 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-13 20:54:39 +00:00
thunder2
1885fb66c4
- Enabled compile on Windows (bzip2 library needed).
...
- Fixed crash after the second call to RsInit::InitRetroShare when keyring does not exist.
The instance of AuthSSL was created twice and AuthGPG was deleted without stopping the thread. Stopped the AuthGPG thread on exit of RetroShare.
- Added the correct path to the keyring for Windows in RsInit::copyGnuPGKeyrings.
- Changed the detection of the portable version on Windows from the file "gpg.exe" to the file "portable".
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5211 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-10 00:29:46 +00:00
csoler
ba56f5f611
fixed memory leaks
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5167 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-05-14 20:01:00 +00:00
csoler
ad5ca59a7a
Fixed signature parsing
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5164 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-05-13 19:04:13 +00:00
csoler
fcb202f666
added keyring output
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5131 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-05-01 18:45:24 +00:00
csoler
60fcd981c1
fixed binary signature
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5128 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-05-01 08:53:32 +00:00
csoler
ce5e6d3949
fixed password handling
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5127 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-29 11:57:03 +00:00
csoler
b7dcbf3ef2
fixed validate signature for data of arbitrary length
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5126 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-27 12:07:29 +00:00
csoler
afc23f39c8
fixed signature verification
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5122 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-26 19:37:15 +00:00
csoler
b43fb7e8b3
- added encryption / decryption of files and memory
...
- started implementation of new AuthGPG
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5084 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-08 14:52:01 +00:00
csoler
c27f695a37
updated to trunk of openpgp-sdk
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5078 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-04 19:27:07 +00:00
csoler
eb448cbaaf
fixed memory issue, added signature verification (uncomplete)
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5072 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-01 21:10:54 +00:00
csoler
33a37054e8
fixed several memory leaks
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5071 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-01 16:43:23 +00:00
csoler
1888b21998
- added key copy methods to OpenPGP-SDK
...
- added encrypted key storage and retrieval to own keyring after generation
- improved test program
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5070 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-01 12:52:15 +00:00
csoler
765b6b9486
improvements to openpgp-sdk integration. Added/tested key generation, keyring output
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5052 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-27 20:48:21 +00:00
csoler
7d06d19e40
added compilable version of openpgp sdk
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5048 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-24 15:58:18 +00:00