From fd340da6d9fcf297f33fcf76283d5ec7b5650423 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 2 May 2023 23:10:49 +0200 Subject: [PATCH] gcrypt: Remove pointless state variable. The variable is set but then only used for an unimportant log message. So let's drop the message and the variable. --- gcrypt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcrypt.c b/gcrypt.c index f9a84906..b46f8f95 100644 --- a/gcrypt.c +++ b/gcrypt.c @@ -114,7 +114,6 @@ void crypt_shutdown(void) struct asymmetric_key { gcry_sexp_t sexp; - int num_bytes; }; static const char *gcrypt_strerror(gcry_error_t gret) @@ -457,7 +456,6 @@ int apc_get_pubkey(const char *key_file, struct asymmetric_key **result) } PARA_INFO_LOG("successfully read %u bit ssh public key\n", bits); key = alloc(sizeof(*key)); - key->num_bytes = ret; key->sexp = sexp; *result = key; ret = bits / 8; @@ -564,8 +562,6 @@ int apc_pub_encrypt(struct asymmetric_key *pub, unsigned char *inbuf, size_t nbytes; int ret; - PARA_INFO_LOG("encrypting %u byte input with %d-byte key\n", len, pub->num_bytes); - /* get pub key */ pub_key = gcry_sexp_find_token(pub->sexp, "public-key", 0); if (!pub_key) -- 2.39.2