Browse Source

libxcrypt: update to 4.5.2

Waldemar Brodkorb 2 months ago
parent
commit
21de03a7bf

+ 2 - 2
package/libxcrypt/Makefile

@@ -4,9 +4,9 @@
 include $(ADK_TOPDIR)/rules.mk
 include $(ADK_TOPDIR)/rules.mk
 
 
 PKG_NAME:=		libxcrypt
 PKG_NAME:=		libxcrypt
-PKG_VERSION:=		4.4.36
+PKG_VERSION:=		4.5.2
 PKG_RELEASE:=		1
 PKG_RELEASE:=		1
-PKG_HASH:=		b979838d5f1f238869d467484793b72b8bca64c4eae696fdbba0a9e0b6c28453
+PKG_HASH:=		d99b548636894641e6b29b58ef592cab692e75672155a938c3209c187a872e1e
 PKG_DESCR:=		crypt library
 PKG_DESCR:=		crypt library
 PKG_SECTION:=		libs/crypto
 PKG_SECTION:=		libs/crypto
 PKG_SITES:=		https://github.com/besser82/libxcrypt/archive/refs/tags/
 PKG_SITES:=		https://github.com/besser82/libxcrypt/archive/refs/tags/

+ 11 - 0
package/libxcrypt/patches/patch-lib_crypt-gost-yescrypt_c

@@ -0,0 +1,11 @@
+--- libxcrypt-4.5.2.orig/lib/crypt-gost-yescrypt.c	2025-11-10 18:31:08.000000000 +0100
++++ libxcrypt-4.5.2/lib/crypt-gost-yescrypt.c	2026-06-24 08:52:14.800328324 +0200
+@@ -131,7 +131,7 @@ crypt_gost_yescrypt_rn (const char *phra
+   intbuf->outbuf[1] = 'g';
+ 
+   /* extract yescrypt output from "$y$param$salt$output" */
+-  char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
++  char *hptr = strchr ((char *) intbuf->retval + 3, '$');
+   if (!hptr)
+     {
+       errno = EINVAL;

+ 11 - 0
package/libxcrypt/patches/patch-lib_crypt-sm3-yescrypt_c

@@ -0,0 +1,11 @@
+--- libxcrypt-4.5.2.orig/lib/crypt-sm3-yescrypt.c	2025-11-10 18:31:08.000000000 +0100
++++ libxcrypt-4.5.2/lib/crypt-sm3-yescrypt.c	2026-06-24 08:52:31.200178505 +0200
+@@ -136,7 +136,7 @@ crypt_sm3_yescrypt_rn (const char *phras
+   intbuf->outbuf[3] = '3';
+ 
+   /* extract yescrypt output from "$y$param$salt$output" */
+-  char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
++  char *hptr = strchr ((char *) intbuf->retval + 3, '$');
+   if (!hptr)
+     {
+       errno = EINVAL;