Imported Upstream version 1.8.7
[debian/sudo] / plugins / sudoers / auth / API
index 24bd51086f461d4de60c7c65c873bff1b957e4ba..2ccbc55016f068a035c2235a75244cbd7e293d09 100644 (file)
@@ -12,7 +12,7 @@ typedef struct sudo_auth {
     char *name;                        /* name of the method in string form */
     void *data;                 /* method-specific data pointer */
 
-    int (*init)(struct passwd *pw, char **prompt, sudo_auth *auth);
+    int (*init)(struct passwd *pw, sudo_auth *auth);
     int (*setup)(struct passwd *pw, char **prompt, sudo_auth *auth);
     int (*verify)(struct passwd *pw, char *p, sudo_auth *auth);
     int (*cleanup)(struct passwd *pw, sudo_auth *auth);
@@ -57,18 +57,16 @@ The member functions can return the following values:
 
     AUTH_FATAL         A fatal error occurred.  The routine should have
                        written an error message to stderr and optionally
-                       sent mail to the administrator.  (If log_error()
-                       is called to do this, the NO_EXIT flag must be used.)
+                       sent mail to the administrator.
                        When verify_user() gets AUTH_FATAL from an auth
                        function it does an exit(1).
 
 The functions in the struct are as follows:
 
-    int init(struct passwd *pw, char **prompt, sudo_auth *auth)
+    int init(struct passwd *pw, sudo_auth *auth)
         Function to do any one-time initialization for the auth
         method.  All of the "init" functions are run before anything
-        else.  A pointer to the prompt string may be used to add
-        method-specific info to the prompt.
+        else.
 
     int setup(struct passwd *pw, char **prompt, sudo_auth *auth)
         Function to do method-specific setup.  All the "setup"