Make sure that libscrypt_scrypt actually exists before using it.

Previously, if the header was present, we'd proceed even if the
function wasn't there.

Easy fix for bug 19161.  A better fix would involve trying harder to
find libscrypt_scrypt.
This commit is contained in:
Nick Mathewson
2016-05-24 10:28:31 -04:00
parent 87134db57c
commit be3875cda2
4 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
#include <openssl/evp.h>
#ifdef HAVE_LIBSCRYPT_H
#if defined(HAVE_LIBSCRYPT_H) && defined(HAVE_LIBSCRYPT_SCRYPT)
#define HAVE_SCRYPT
#include <libscrypt.h>
#endif