1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 10:39:27 +02:00

unify #if to #ifdef

This commit is contained in:
B. Petersen 2019-03-12 21:09:16 +01:00
parent c17782ef65
commit 4a68604f06
No known key found for this signature in database
GPG key ID: 3B88E92DEA8E9AFC
2 changed files with 10 additions and 5 deletions

View file

@ -122,6 +122,11 @@ standard. It is possible your system uses
`/usr/local/lib/x86_64-linux-gnu` which should be auto-detected and `/usr/local/lib/x86_64-linux-gnu` which should be auto-detected and
just work as well. just work as well.
The library is build using netpgp by default (shipped in /libs).
By adding `-Drpgp=true` to the build command, rpgp is used instead
(https://github.com/dignifiedquire/rpgp,
needs to be installed on the system or available as a lib)
### Building without system-level dependencies ### Building without system-level dependencies

View file

@ -27,7 +27,7 @@ one :-) */
#include "dc_hash.h" #include "dc_hash.h"
#if DC_USE_RPGP #ifdef DC_USE_RPGP
void dc_pgp_init(void) void dc_pgp_init(void)
{ {
} }
@ -56,7 +56,7 @@ void dc_pgp_exit(void)
{ {
} }
#if DC_USE_RPGP #ifdef DC_USE_RPGP
void dc_pgp_rand_seed(dc_context_t* context, const void* buf, size_t bytes) {} void dc_pgp_rand_seed(dc_context_t* context, const void* buf, size_t bytes) {}
@ -962,7 +962,7 @@ cleanup:
#endif // !DC_USE_RPGP #endif // !DC_USE_RPGP
#if DC_USE_RPGP #ifdef DC_USE_RPGP
int dc_pgp_pk_decrypt( dc_context_t* context, int dc_pgp_pk_decrypt( dc_context_t* context,
const void* ctext, const void* ctext,
@ -1184,7 +1184,7 @@ cleanup:
******************************************************************************/ ******************************************************************************/
#if DC_USE_RPGP #ifdef DC_USE_RPGP
int dc_pgp_symm_encrypt(dc_context_t* context, int dc_pgp_symm_encrypt(dc_context_t* context,
const char* passphrase, const char* passphrase,
const void* plain, size_t plain_bytes, const void* plain, size_t plain_bytes,
@ -1330,7 +1330,7 @@ cleanup:
#endif /* !DC_USE_RPGP */ #endif /* !DC_USE_RPGP */
#if DC_USE_RPGP #ifdef DC_USE_RPGP
int dc_pgp_symm_decrypt(dc_context_t* context, int dc_pgp_symm_decrypt(dc_context_t* context,
const char* passphrase, const char* passphrase,