From 7de2c9bc82c5ffb5ab68adbf13a130aac009ff11 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sep 26 2020 07:43:42 +0000 Subject: Fix compiler warnings in libotp Remove unused variable declarations Signed-off-by: Christian Heimes Reviewed-By: Alexander Bokovoy --- diff --git a/daemons/ipa-slapi-plugins/libotp/hotp.c b/daemons/ipa-slapi-plugins/libotp/hotp.c index 109ee67..894786e 100644 --- a/daemons/ipa-slapi-plugins/libotp/hotp.c +++ b/daemons/ipa-slapi-plugins/libotp/hotp.c @@ -70,7 +70,6 @@ static bool hmac(const struct hotp_token_key *key, const char *sn_mech, { unsigned char in[sizeof(uint64_t)]; const EVP_MD *evp; - unsigned char *result; memcpy(in, &counter, sizeof(uint64_t)); @@ -95,7 +94,6 @@ bool hotp(const struct hotp_token *token, uint64_t counter, uint32_t *out) const char *mech = SN_sha1; struct digest_buffer digest; unsigned char counter_buf[sizeof(uint64_t)]; - const EVP_MD *evp; int digits = token->digits; int i; uint64_t div, offset, binary;