summaryrefslogtreecommitdiff
path: root/security/gvm-libs/files/patch-util_passwordbasedauthentication.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/gvm-libs/files/patch-util_passwordbasedauthentication.c')
-rw-r--r--security/gvm-libs/files/patch-util_passwordbasedauthentication.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/gvm-libs/files/patch-util_passwordbasedauthentication.c b/security/gvm-libs/files/patch-util_passwordbasedauthentication.c
new file mode 100644
index 000000000000..7f58b15edbae
--- /dev/null
+++ b/security/gvm-libs/files/patch-util_passwordbasedauthentication.c
@@ -0,0 +1,14 @@
+--- util/passwordbasedauthentication.c 2021-07-08 17:07:24.145438000 -0500
++++ util/passwordbasedauthentication.c 2021-07-08 17:08:24.809605000 -0500
+@@ -26,7 +26,11 @@
+ // UFC_crypt defines crypt_r when only when __USE_GNU is set
+ // this shouldn't affect other implementations
+ #define __USE_GNU
++#if defined(__FreeBSD__)
++#include <unistd.h>
++#else
+ #include <crypt.h>
++#endif
+ // INVALID_HASH is used on verify when the given hash is a NULL pointer.
+ // This is done to not directly jump to exit with a INVALID_HASH result
+ // but rather keep calculating to make it a little bit harder to guess