summaryrefslogtreecommitdiff
path: root/modules/pam_unix/pam_unix.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2017-02-19 21:00:46 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2017-02-19 21:00:46 +0000
commit04e30652172d69d399641893e6a801503a0a1f8f (patch)
tree13dc6a841647bee3f58db67dea6c46970b923e12 /modules/pam_unix/pam_unix.c
parentd2afd010d41e1acf0fe4e164246c8055368bf503 (diff)
Diffstat (limited to 'modules/pam_unix/pam_unix.c')
-rw-r--r--modules/pam_unix/pam_unix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/pam_unix/pam_unix.c b/modules/pam_unix/pam_unix.c
index ad7dd1b3a77a..06d020bc3a22 100644
--- a/modules/pam_unix/pam_unix.c
+++ b/modules/pam_unix/pam_unix.c
@@ -1,6 +1,6 @@
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
- * Copyright (c) 2004-2011 Dag-Erling Smørgrav
+ * Copyright (c) 2004-2015 Dag-Erling Smørgrav
* All rights reserved.
*
* This software was developed for the FreeBSD Project by ThinkSec AS and
@@ -32,7 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pam_unix.c 648 2013-03-05 17:54:27Z des $
+ * $Id: pam_unix.c 890 2016-01-11 16:22:09Z des $
*/
#ifdef HAVE_CONFIG_H
@@ -74,7 +74,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
#endif
struct passwd *pwd;
const char *user;
- char *crypt_password, *password;
+ const char *crypt_password, *password;
int pam_err, retry;
(void)argc;
@@ -98,7 +98,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
for (retry = 0; retry < 3; ++retry) {
#ifdef OPENPAM
pam_err = pam_get_authtok(pamh, PAM_AUTHTOK,
- (const char **)&password, NULL);
+ &password, NULL);
#else
resp = NULL;
pam_err = (*conv->conv)(1, &msgp, &resp, conv->appdata_ptr);