Do not include pbkdf2 prototype in header if code is not compiled in.

This commit is contained in:
Milan Broz
2013-01-10 16:48:47 +01:00
parent c040b4821d
commit 310bf08568

View File

@@ -67,12 +67,14 @@ int crypt_pbkdf(const char *kdf, const char *hash,
char *key, size_t key_length,
unsigned int iterations);
#if USE_INTERNAL_PBKDF2
/* internal PBKDF2 implementation */
int pkcs5_pbkdf2(const char *hash,
const char *P, size_t Plen,
const char *S, size_t Slen,
unsigned int c,
unsigned int dkLen,char *DK);
#endif
/* CRC32 */
uint32_t crypt_crc32(uint32_t seed, const unsigned char *buf, size_t len);