Browse files

[libfko] minor bug fix to not return GPG error codes from _rijndael_d…

…ecrypt()
  • Loading branch information...
1 parent 8922c27 commit 7bb5811651bd833b2a991c3dda0b3a1c85505bdc @mrash committed Feb 2, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fko_encryption.c
View
4 lib/fko_encryption.c
@@ -236,10 +236,10 @@ _rijndael_decrypt(fko_ctx_t ctx,
return(FKO_ERROR_DECRYPTION_SIZE);
if(ctx->encoded_msg == NULL)
- return(FKO_ERROR_INVALID_DATA_ENCRYPT_GPG_ENCODEDMSG_NULL);
+ return(FKO_ERROR_MISSING_ENCODED_DATA);
if(! is_valid_encoded_msg_len(pt_len))
- return(FKO_ERROR_INVALID_DATA_ENCRYPT_GPG_ENCODEDMSGLEN_VALIDFAIL);
+ return(FKO_ERROR_INVALID_DATA_DECODE_MSGLEN_VALIDFAIL);
if(zero_free_rv != FKO_SUCCESS)
return(zero_free_rv);

0 comments on commit 7bb5811

Please sign in to comment.