diff options
Diffstat (limited to 'security/gvm-libs')
-rw-r--r-- | security/gvm-libs/Makefile | 2 | ||||
-rw-r--r-- | security/gvm-libs/distinfo | 6 | ||||
-rw-r--r-- | security/gvm-libs/files/patch-util_passwordbasedauthentication.c | 21 | ||||
-rw-r--r-- | security/gvm-libs/files/patch-util_passwordbasedauthentication.h | 15 | ||||
-rw-r--r-- | security/gvm-libs/pkg-plist | 10 |
5 files changed, 42 insertions, 12 deletions
diff --git a/security/gvm-libs/Makefile b/security/gvm-libs/Makefile index 9c996dafa27c..f39558d1ec0f 100644 --- a/security/gvm-libs/Makefile +++ b/security/gvm-libs/Makefile @@ -1,5 +1,5 @@ PORTNAME= gvm -DISTVERSION= 21.4.1 +DISTVERSION= 21.4.2 DISTVERSIONPREFIX= v CATEGORIES= security PKGNAMESUFFIX= -libs diff --git a/security/gvm-libs/distinfo b/security/gvm-libs/distinfo index a54a69ecbcf2..59f4ad6a4f37 100644 --- a/security/gvm-libs/distinfo +++ b/security/gvm-libs/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1624923931 -SHA256 (greenbone-gvm-libs-v21.4.1_GH0.tar.gz) = e646d5ca38742c1a98438cea65c8fa22b12f9cfd1754559ba5891658fbf1f466 -SIZE (greenbone-gvm-libs-v21.4.1_GH0.tar.gz) = 295135 +TIMESTAMP = 1630799652 +SHA256 (greenbone-gvm-libs-v21.4.2_GH0.tar.gz) = a868b25dd000a81c4a0962cff18726edc2fe14b3cdeb58669bcef4b6349c344a +SIZE (greenbone-gvm-libs-v21.4.2_GH0.tar.gz) = 296966 diff --git a/security/gvm-libs/files/patch-util_passwordbasedauthentication.c b/security/gvm-libs/files/patch-util_passwordbasedauthentication.c index 7f58b15edbae..6838446064ad 100644 --- a/security/gvm-libs/files/patch-util_passwordbasedauthentication.c +++ b/security/gvm-libs/files/patch-util_passwordbasedauthentication.c @@ -1,14 +1,29 @@ ---- 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 @@ +--- util/passwordbasedauthentication.c 2021-08-03 06:50:41.000000000 -0500 ++++ util/passwordbasedauthentication.c 2021-09-04 20:54:26.630524000 -0500 +@@ -26,7 +26,13 @@ // UFC_crypt defines crypt_r when only when __USE_GNU is set // this shouldn't affect other implementations #define __USE_GNU +#if defined(__FreeBSD__) ++#if HAS_CRYPT_R +#include <unistd.h> ++#endif +#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 +@@ -173,6 +179,7 @@ + return strlen (setting) > 1 && setting[0] == '$'; + } + ++#if HAS_CRYPT_R + char * + pba_hash (struct PBASettings *setting, const char *password) + { +@@ -276,3 +283,4 @@ + free (tmp); + return result; + } ++#endif /* #if HAS_CRYPT_R */ diff --git a/security/gvm-libs/files/patch-util_passwordbasedauthentication.h b/security/gvm-libs/files/patch-util_passwordbasedauthentication.h new file mode 100644 index 000000000000..a6be34361e77 --- /dev/null +++ b/security/gvm-libs/files/patch-util_passwordbasedauthentication.h @@ -0,0 +1,15 @@ +--- util/passwordbasedauthentication.h 2021-09-04 20:50:39.448395000 -0500 ++++ util/passwordbasedauthentication.h 2021-09-04 20:50:57.245603000 -0500 +@@ -18,6 +18,12 @@ + #ifndef _GVM_PASSWORDBASEDAUTHENTICATION_H + #define _GVM_PASSWORDBASEDAUTHENTICATION_H + ++#if defined(__FreeBSD__) && __FreeBSD__ < 12 ++#define HAS_CRYPT_R 0 ++#else ++#define HAS_CRYPT_R 1 ++#endif ++ + /* max amount of applied pepper */ + #define MAX_PEPPER_SIZE 4 + /* is used when count is 0 on init*/ diff --git a/security/gvm-libs/pkg-plist b/security/gvm-libs/pkg-plist index bf6c7aa0b0e6..d4328e736d2c 100644 --- a/security/gvm-libs/pkg-plist +++ b/security/gvm-libs/pkg-plist @@ -38,19 +38,19 @@ include/gvm/util/uuidutils.h include/gvm/util/xmlutils.h lib/libgvm_base.so lib/libgvm_base.so.21 -lib/libgvm_base.so.21.4.1 +lib/libgvm_base.so.21.4.2 lib/libgvm_boreas.so lib/libgvm_boreas.so.21 -lib/libgvm_boreas.so.21.4.1 +lib/libgvm_boreas.so.21.4.2 lib/libgvm_gmp.so lib/libgvm_gmp.so.21 -lib/libgvm_gmp.so.21.4.1 +lib/libgvm_gmp.so.21.4.2 lib/libgvm_osp.so lib/libgvm_osp.so.21 -lib/libgvm_osp.so.21.4.1 +lib/libgvm_osp.so.21.4.2 lib/libgvm_util.so lib/libgvm_util.so.21 -lib/libgvm_util.so.21.4.1 +lib/libgvm_util.so.21.4.2 libdata/pkgconfig/libgvm_base.pc libdata/pkgconfig/libgvm_boreas.pc libdata/pkgconfig/libgvm_gmp.pc |