]> granicus.if.org Git - linux-pam/commitdiff
pam_unix: remove obsolete _UNIX_AUTHTOK, _UNIX_OLD_AUTHTOK, and _UNIX_NEW_AUTHTOK...
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 31 May 2018 00:20:18 +0000 (00:20 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 31 May 2018 00:20:18 +0000 (00:20 +0000)
The last use of these macros was removed by commit Linux-PAM-1.3.0~5
so their definitions should go as well.

* modules/pam_unix/pam_unix_auth.c (_UNIX_AUTHTOK): Remove.
* modules/pam_unix/pam_unix_passwd.c (_UNIX_OLD_AUTHTOK,
_UNIX_NEW_AUTHTOK): Likewise.

Complements: 7e09188c5dc4 ("pam_unix: Use pam_get_authtok() instead of
direct pam_prompt() calls.")

modules/pam_unix/pam_unix_auth.c
modules/pam_unix/pam_unix_passwd.c

index fce6bce14231d3d9600778678a227c803c9ff1eb..9d9f709db78df3b5e8cf5e681c7921dd2978c93a 100644 (file)
@@ -74,8 +74,6 @@
  *      onto a normal UNIX authentication
  */
 
-#define _UNIX_AUTHTOK  "-UN*X-PASS"
-
 #define AUTH_RETURN                                            \
 do {                                                                   \
        D(("recording return code for next time [%d]",          \
index 9fdebefba64f55b6a7c2ef1b309bd87bd6bed644..302cf126572235d4c304adeb4020cda360a8cc06 100644 (file)
@@ -106,11 +106,6 @@ extern int getrpcport(const char *host, unsigned long prognum,
    Sets it.
  */
 
-/* data tokens */
-
-#define _UNIX_OLD_AUTHTOK      "-UN*X-OLD-PASS"
-#define _UNIX_NEW_AUTHTOK      "-UN*X-NEW-PASS"
-
 #define MAX_PASSWD_TRIES       3
 
 #ifdef HAVE_NIS