mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix compiler warnings in libotp
Remove unused variable declarations Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Alexander Bokovoy
parent
6fde06ac30
commit
7de2c9bc82
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user