1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 02:29:28 +02:00
Commit graph

76 commits

Author SHA1 Message Date
B. Petersen
1c7ed9af7e fix bug found by valgrind: init symmetric-decryption with correct blocksize 2018-07-12 19:41:14 +02:00
B. Petersen
9c841ad10b fix errors detected by valgrind, esp. in decrypting symmetric-data of the setup message 2018-07-12 18:55:25 +02:00
Floris Bruynooghe
702b3ccc49 Use bundeled libetpan by default
Using the system-libetpan causes pain to people who have out-dated
library versions, additionally it is nice to by default create a
library which uses dependencies as close as possible to the android
version for testing purposes.  This makes sure that the bundeled
sub-projects are used by default.

Additionally it makes sure to not install these bundeled dependencies
and only statically link the libdeltachat.so against them.  This is
beneficial to not conflict with any system-installed versions of these
libraries, especially since some bundled libraries are stripped down
and would not provide indirect users of the library the full library
functionality.

It does still provide an option to use the system-provided libetpan if
desired however, this makes sure libdeltachat plays nice with normal
package managers etc.
2018-06-10 19:52:54 +02:00
B. Petersen
1696f53dd9 comment 2018-02-18 22:00:21 +01:00
B. Petersen
4cedcccc6d netpgp: handle unsupported encryption algorithms more graceful 2018-02-18 21:58:55 +01:00
B. Petersen
94fd79aecb support symm. decryption with 'Encrypted session key' present 2018-02-18 19:07:27 +01:00
B. Petersen
96145c6e8f prepare for decrypting 'Symmetric-Key Encrypted Session Key Packets' encrypted with the optional 'Encrypted Session Keys' 2018-02-18 14:11:13 +01:00
B. Petersen
6cb9c1be80 add basic symmetric decryption to netpgp 2018-02-17 17:35:29 +01:00
B. Petersen
e2986045de prepare netpgp to access a password for symmetric decryption 2018-02-17 00:32:27 +01:00
B. Petersen
3a13a540c3 comment, remove unused netpgp code 2018-02-16 21:42:56 +01:00
Floris Bruynooghe
8d59e5b701 Make libbz2 a proper dependency
This makes sure that at meson/configure time the build will fail
with an error saying the library can't be found.  This is much
better then a mysterious link error right at the end of the
compilation.
2018-01-02 14:47:31 +01:00
Floris Bruynooghe
e8180dda9a Add very basic meson build infrastructure
This manages to build the .so and test binary on Debian stretch.
2017-12-29 13:38:39 +01:00
B. Petersen
b31639a285 write correct 'Symmetrically Encrypted Data Packet' for the setup message 2017-12-01 19:30:23 +01:00
B. Petersen
8baea599ea fix last netpgp memory leak found by valgrind in the current stress setup 2017-11-29 12:25:22 +01:00
B. Petersen
c98b7266f9 fix memory leak introduced by unused variable 2017-11-28 20:49:08 +01:00
B. Petersen
cab764bb63 check for NULL pointer 2017-11-28 20:37:01 +01:00
B. Petersen
f5d1b5d17b fix memory leak in netpgp crypt struct 2017-11-28 19:05:49 +01:00
B. Petersen
89879f490e fix memory leak in netpgp's hashes 2017-11-28 18:14:40 +01:00
B. Petersen
f1266df0b0 fix memory leak in netpgp 2017-11-28 17:02:20 +01:00
B. Petersen
b0debf54e0 fix memory leak in netpgp's pgp_sign_buf() 2017-11-28 16:14:29 +01:00
B. Petersen
fc95d55a28 fix memory leak in symetrically encrypted parsing 2017-11-28 15:56:25 +01:00
B. Petersen
bcede906a5 fix memory leak in netpgp session key generation 2017-11-28 15:23:24 +01:00
B. Petersen
13f7b555cb const'ify netpgp 2017-11-27 14:09:49 +01:00
B. Petersen
dd83483297 fix a memory leak in netpgp when using more than one signature in a key (which is quite usual, eg. for the ID and for the subkey) 2017-11-27 13:42:05 +01:00
B. Petersen
fe15eef863 typo, remove dead code 2017-11-27 11:26:10 +01:00
B. Petersen
80adb33762 const'ify netpgp 2017-11-27 11:15:42 +01:00
B. Petersen
3f90be4bc1 comment 2017-11-26 17:50:29 +01:00
B. Petersen
0967491741 const'ify 2017-11-26 17:49:16 +01:00
B. Petersen
e8e30b3bfd fix memory leak in netpgp's signing 2017-11-26 16:54:29 +01:00
B. Petersen
d2c65ad112 fix potential memory leak in netpgp 2017-11-26 16:32:21 +01:00
B. Petersen
1c45898fe7 fix netpgp realloc() potential memory leak 2017-11-26 11:31:11 +01:00
B. Petersen
77eef1c370 implement missing netpgp function parse_hash_finish() 2017-11-25 16:35:16 +01:00
B. Petersen
2823359684 exit if we cannot allocate a few bytes in netpgp 2017-11-25 15:58:01 +01:00
B. Petersen
4f3573b9a2 cleanup netpgp code 2017-11-25 15:03:03 +01:00
B. Petersen
0479f5932c fix memory leak in netpgp's encryption routine 2017-11-25 13:05:41 +01:00
B. Petersen
516b259da5 fix memory leak in netpgp's compression/decompression routines 2017-11-24 00:12:00 +01:00
B. Petersen
6495c85c22 fix memory leak in netpgp 2017-11-23 23:14:51 +01:00
B. Petersen
ee5afc379f fix memory leak in netpgp 2017-11-23 22:50:09 +01:00
B. Petersen
f5fecba79e Prepare OpenPGP-Tag-18 creation. 2017-11-07 12:23:51 +01:00
B. Petersen
94c9db2ed4 Allow more than one subkey in a key (as done eg. in K-9). 2017-10-14 02:36:36 +02:00
B. Petersen
4c321ff9b1 Update netpgp to netgpp-et-2017-10-13. 2017-10-14 00:22:55 +02:00
B. Petersen
1e590f4e6a Remove unused netpgp code. 2017-10-14 00:04:30 +02:00
B. Petersen
f2856acc82 Netpgp: Remove dead code. 2017-10-12 17:05:21 +02:00
B. Petersen
4ff61731fe Show validation errors in message info. 2017-06-26 00:58:55 +02:00
B. Petersen
e9357dbef2 Prepare cryptographic verification. 2017-06-24 19:06:05 +02:00
B. Petersen
60dd062ada Add 'Symmetric-Key Encrypted Session Key' (Tag 3) to setup file. 2017-06-20 17:46:59 +02:00
B. Petersen
b86c5d8142 Prepare AES-128 key encryption. 2017-06-20 01:10:50 +02:00
B. Petersen
753dc1ae1c Fix PGP_PARSE_PARSED in Netpgp (the original code does not set PGP_PARSE_PARSED, however this seems to be a bug as this function was called before pgp_setup_memory_read() - as pgp_filter_keys_fileread() uses the same callback, I assume, PGP_PARSE_PARSED is the expected behaviour) 2017-06-05 23:41:16 +02:00
B. Petersen
5ff9ff1604 Add a function to export all self keys. 2017-05-30 22:33:06 +02:00
B. Petersen
caadf7aa99 Do not add 'Modification Detection' feature to subkey binding packet. 2017-05-30 14:05:38 +02:00