netpgp : ...
authorEdouard Tisserant
Mon, 13 Apr 2015 15:23:33 +0200
changeset 1870199040b3395
parent 186 cfd6fe0e9dc5
child 188 0a882568ccd3
netpgp : ...
src/Makefile
src/pgp_netpgp.c
     1.1 --- a/src/Makefile	Sun Apr 12 02:08:16 2015 +0200
     1.2 +++ b/src/Makefile	Mon Apr 13 15:23:33 2015 +0200
     1.3 @@ -26,7 +26,7 @@
     1.4  TARGET=libpEpEngine.so
     1.5  GPGME_IN=$(HOME)
     1.6  LIBGPGME=libgpgme.so.11
     1.7 -CC=gcc -std=c99
     1.8 +CC=gcc -std=c99 -ggdb3 -O0
     1.9  CFLAGS?=-I$(GPGME_IN)/include $(OPTIMIZE) -fPIC -pedantic \
    1.10  	-DSYSTEM_DB=\"$(SYSTEM_DB)\" -DLIBGPGME=\"$(LIBGPGME)\" \
    1.11  	-DSQLITE_THREADSAFE=1 -D_GNU_SOURCE
     2.1 --- a/src/pgp_netpgp.c	Sun Apr 12 02:08:16 2015 +0200
     2.2 +++ b/src/pgp_netpgp.c	Mon Apr 13 15:23:33 2015 +0200
     2.3 @@ -347,21 +347,12 @@
     2.4      free_stringlist(_keylist);
     2.5  
     2.6  free_pgp:
     2.7 -    // pgp_memory_free(sig) done by pgp_validate_mem - why ?
     2.8 -    // pgp_memory_free(signedmem); -- idem ?
     2.9 +    // free done by pgp_validate_mem_detached
    2.10 +    // pgp_memory_free(sig);
    2.11 +    // pgp_memory_free(signedmem);
    2.12      pgp_validate_result_free(vresult);
    2.13  
    2.14      return result;
    2.15 -
    2.16 -    /* TODO check
    2.17 -    result = PEP_UNENCRYPTED;
    2.18 -    result = PEP_DECRYPT_SIGNATURE_DOES_NOT_MATCH;
    2.19 -    result = PEP_VERIFIED_AND_TRUSTED;
    2.20 -    result = PEP_VERIFY_NO_KEY;
    2.21 -    result = PEP_UNENCRYPTED;
    2.22 -    result = PEP_DECRYPT_WRONG_FORMAT;
    2.23 -    return PEP_OUT_OF_MEMORY;
    2.24 -    */
    2.25  }
    2.26  
    2.27  PEP_STATUS pgp_encrypt_and_sign(