From: Andre Noll Date: Tue, 2 May 2023 21:10:49 +0000 (+0200) Subject: gcrypt: Remove pointless state variable. X-Git-Tag: v0.7.3~9^2~6 X-Git-Url: http://git.tuebingen.mpg.de/versions/paraslash-0.3.1.tar.bz2.asc?a=commitdiff_plain;h=fd340da6d9fcf297f33fcf76283d5ec7b5650423;p=paraslash.git 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. --- 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)