src/pgp_netpgp.c
changeset 187 0199040b3395
parent 186 cfd6fe0e9dc5
child 188 0a882568ccd3
     1.1 --- a/src/pgp_netpgp.c	Sun Apr 12 02:08:16 2015 +0200
     1.2 +++ b/src/pgp_netpgp.c	Mon Apr 13 15:23:33 2015 +0200
     1.3 @@ -347,21 +347,12 @@
     1.4      free_stringlist(_keylist);
     1.5  
     1.6  free_pgp:
     1.7 -    // pgp_memory_free(sig) done by pgp_validate_mem - why ?
     1.8 -    // pgp_memory_free(signedmem); -- idem ?
     1.9 +    // free done by pgp_validate_mem_detached
    1.10 +    // pgp_memory_free(sig);
    1.11 +    // pgp_memory_free(signedmem);
    1.12      pgp_validate_result_free(vresult);
    1.13  
    1.14      return result;
    1.15 -
    1.16 -    /* TODO check
    1.17 -    result = PEP_UNENCRYPTED;
    1.18 -    result = PEP_DECRYPT_SIGNATURE_DOES_NOT_MATCH;
    1.19 -    result = PEP_VERIFIED_AND_TRUSTED;
    1.20 -    result = PEP_VERIFY_NO_KEY;
    1.21 -    result = PEP_UNENCRYPTED;
    1.22 -    result = PEP_DECRYPT_WRONG_FORMAT;
    1.23 -    return PEP_OUT_OF_MEMORY;
    1.24 -    */
    1.25  }
    1.26  
    1.27  PEP_STATUS pgp_encrypt_and_sign(