Make the second arg to the sudo auth verify function const.

This may be either a plaintext password or a password prompt.
Either way it should not be modified by the verify function.
This commit is contained in:
Todd C. Miller
2022-10-31 09:11:32 -06:00
parent bd209b9f16
commit 4da22b101e
14 changed files with 31 additions and 30 deletions

View File

@@ -71,7 +71,7 @@ sudo_secureware_init(struct passwd *pw, sudo_auth *auth)
}
int
sudo_secureware_verify(struct passwd *pw, char *pass, sudo_auth *auth, struct sudo_conv_callback *callback)
sudo_secureware_verify(struct passwd *pw, const char *pass, sudo_auth *auth, struct sudo_conv_callback *callback)
{
char *pw_epasswd = auth->data;
char *epass = NULL;