[libfko] minor bug fix to not return GPG error codes from _rijndael_decrypt()
authorMichael Rash <mbr@cipherdyne.org>
Mon, 3 Feb 2014 01:32:02 +0000 (20:32 -0500)
committerMichael Rash <mbr@cipherdyne.org>
Mon, 3 Feb 2014 01:32:02 +0000 (20:32 -0500)
lib/fko_encryption.c

index 9f2957d..4b3fd14 100644 (file)
@@ -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);