diff --git a/lib/crypt-gost-yescrypt.c b/lib/crypt-gost-yescrypt.c index 190ae94b..e9dc7e80 100644 --- a/lib/crypt-gost-yescrypt.c +++ b/lib/crypt-gost-yescrypt.c @@ -131,7 +131,7 @@ crypt_gost_yescrypt_rn (const char *phrase, size_t phr_size, 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; diff --git a/lib/crypt-sm3-yescrypt.c b/lib/crypt-sm3-yescrypt.c index 4f42aa66..17da83e1 100644 --- a/lib/crypt-sm3-yescrypt.c +++ b/lib/crypt-sm3-yescrypt.c @@ -136,7 +136,7 @@ crypt_sm3_yescrypt_rn (const char *phrase, size_t phr_size, 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;