summaryrefslogtreecommitdiff
path: root/cipher/cipher.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2019-12-22 16:43:50 +0200
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2019-12-22 16:52:46 +0200
commit5b9ea3df0dc355d77b9f061f63064614a97b8b67 (patch)
treee19b64c9242439c39b20e1d672a71df00f7521eb /cipher/cipher.c
parente5c4cf0efb8fd297963e6b4392ab98c41dbad536 (diff)
downloadlibgcrypt-5b9ea3df0dc355d77b9f061f63064614a97b8b67.tar.gz
cipher: fix typo in error log
* cipher/cipher.c (_gcry_cipher_encrypt): Fix log "cipher_decrypt: ..." to "cipher_encrypt: ...". -- Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r--cipher/cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c
index ab3e4240..bd571367 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -1125,7 +1125,7 @@ _gcry_cipher_encrypt (gcry_cipher_hd_t h, void *out, size_t outsize,
if (h->mode != GCRY_CIPHER_MODE_NONE && !h->marks.key)
{
- log_error ("cipher_decrypt: key not set\n");
+ log_error ("cipher_encrypt: key not set\n");
return GPG_ERR_MISSING_KEY;
}