Skip to content

Commit

Permalink
hkdf: don't compile if not requested
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaeckel committed Oct 15, 2013
1 parent b1b1591 commit 4f86ad7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/misc/hkdf/hkdf.c
Expand Up @@ -4,6 +4,8 @@

#include <tomcrypt.h>

#ifdef LTC_HKDF

#ifndef MIN
#define MIN(a,b) ((a)<(b))?(a):(b)
#endif
Expand Down Expand Up @@ -136,6 +138,7 @@ int hkdf(int hash_idx, const unsigned char *salt, unsigned long saltlen,
XFREE(extracted);
return err;
}
#endif /* LTC_HKDF */


/* vim: set ts=2 sw=2 et ai si: */

0 comments on commit 4f86ad7

Please sign in to comment.