* Add libxcrypt-fix-const-qualifiers.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/libxcrypt?expand=0&rev=57
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
Index: libxcrypt-4.5.2/lib/crypt-gost-yescrypt.c
|
|
===================================================================
|
|
--- libxcrypt-4.5.2.orig/lib/crypt-gost-yescrypt.c
|
|
+++ libxcrypt-4.5.2/lib/crypt-gost-yescrypt.c
|
|
@@ -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;
|
|
Index: libxcrypt-4.5.2/lib/crypt-sm3-yescrypt.c
|
|
===================================================================
|
|
--- libxcrypt-4.5.2.orig/lib/crypt-sm3-yescrypt.c
|
|
+++ libxcrypt-4.5.2/lib/crypt-sm3-yescrypt.c
|
|
@@ -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;
|