Track namespace changes.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@402 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
e725df8bb1
commit
637fafa964
|
@ -53,7 +53,7 @@
|
||||||
#include <security/pam_modules.h>
|
#include <security/pam_modules.h>
|
||||||
#include <security/pam_appl.h>
|
#include <security/pam_appl.h>
|
||||||
|
|
||||||
#ifndef _OPENPAM
|
#ifndef OPENPAM
|
||||||
static char password_prompt[] = "Password:";
|
static char password_prompt[] = "Password:";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ PAM_EXTERN int
|
||||||
pam_sm_authenticate(pam_handle_t *pamh, int flags,
|
pam_sm_authenticate(pam_handle_t *pamh, int flags,
|
||||||
int argc, const char *argv[])
|
int argc, const char *argv[])
|
||||||
{
|
{
|
||||||
#ifndef _OPENPAM
|
#ifndef OPENPAM
|
||||||
struct pam_conv *conv;
|
struct pam_conv *conv;
|
||||||
struct pam_message msg;
|
struct pam_message msg;
|
||||||
const struct pam_message *msgp;
|
const struct pam_message *msgp;
|
||||||
|
@ -86,7 +86,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
|
||||||
return (PAM_USER_UNKNOWN);
|
return (PAM_USER_UNKNOWN);
|
||||||
|
|
||||||
/* get password */
|
/* get password */
|
||||||
#ifndef _OPENPAM
|
#ifndef OPENPAM
|
||||||
pam_err = pam_get_item(pamh, PAM_CONV, (const void **)&conv);
|
pam_err = pam_get_item(pamh, PAM_CONV, (const void **)&conv);
|
||||||
if (pam_err != PAM_SUCCESS)
|
if (pam_err != PAM_SUCCESS)
|
||||||
return (PAM_SYSTEM_ERR);
|
return (PAM_SYSTEM_ERR);
|
||||||
|
@ -95,7 +95,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
|
||||||
msgp = &msg;
|
msgp = &msg;
|
||||||
#endif
|
#endif
|
||||||
for (retry = 0; retry < 3; ++retry) {
|
for (retry = 0; retry < 3; ++retry) {
|
||||||
#ifdef _OPENPAM
|
#ifdef OPENPAM
|
||||||
pam_err = pam_get_authtok(pamh, PAM_AUTHTOK,
|
pam_err = pam_get_authtok(pamh, PAM_AUTHTOK,
|
||||||
(const char **)&password, NULL);
|
(const char **)&password, NULL);
|
||||||
#else
|
#else
|
||||||
|
@ -124,7 +124,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
|
||||||
pam_err = PAM_AUTH_ERR;
|
pam_err = PAM_AUTH_ERR;
|
||||||
else
|
else
|
||||||
pam_err = PAM_SUCCESS;
|
pam_err = PAM_SUCCESS;
|
||||||
#ifndef _OPENPAM
|
#ifndef OPENPAM
|
||||||
free(password);
|
free(password);
|
||||||
#endif
|
#endif
|
||||||
return (pam_err);
|
return (pam_err);
|
||||||
|
|
Loading…
Reference in New Issue