mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
drbg: Fix build with DEBUG_LEVEL < 4
This commit is contained in:
parent
94cbd6469a
commit
1b58e8c386
@ -158,7 +158,6 @@ METHOD(drbg_t, generate, bool,
|
||||
private_drbg_hmac_t *this, uint32_t len, uint8_t *out)
|
||||
{
|
||||
size_t delta;
|
||||
chunk_t output;
|
||||
|
||||
if (len > MAX_DRBG_BYTES)
|
||||
{
|
||||
@ -179,7 +178,9 @@ METHOD(drbg_t, generate, bool,
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
output = chunk_create(out, len);
|
||||
#if DEBUG_LEVEL >= 4
|
||||
chunk_t output = chunk_create(out, len);
|
||||
#endif
|
||||
|
||||
while (len)
|
||||
{
|
||||
@ -192,7 +193,7 @@ METHOD(drbg_t, generate, bool,
|
||||
len -= delta;
|
||||
out += delta;
|
||||
}
|
||||
DBG4(DBG_LIB, "HMAC_DRBG Out: %B", &output);
|
||||
DBG4(DBG_LIB, "HMAC_DRBG out: %B", &output);
|
||||
|
||||
if (!update(this, chunk_empty))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user