Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ecrypt()
  • Loading branch information...
commit 7bb5811651bd833b2a991c3dda0b3a1c85505bdc 1 parent 8922c27
@mrash authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.