Remove extra whitespace at the end of some lines.
[dragonfly.git] / contrib / libpam / libpam / pam_second.c
1 /*
2  * pam_second.c -- PAM secondary authentication
3  * (based on XSSO draft spec of March 1997)
4  *
5  * $Id$
6  * $FreeBSD: src/contrib/libpam/libpam/pam_second.c,v 1.1.1.1.6.2 2001/06/11 15:28:12 markm Exp $
7  * $DragonFly: src/contrib/libpam/libpam/Attic/pam_second.c,v 1.2 2003/06/17 04:24:03 dillon Exp $
8  *
9  * $Log$
10  */
11
12 #include <stdio.h>
13 #include <stdlib.h>
14
15 #include "pam_private.h"
16
17 /* p 42 */
18
19 int pam_authenticate_secondary(pam_handle_t *pamh,
20                                char *target_username,
21                                char *target_module_type,
22                                char *target_authn_domain,
23                                char *target_supp_data,
24                                unsigned char *target_module_authtok,
25                                int flags)
26 {
27     int retval=PAM_SYSTEM_ERR;
28
29     D(("called"));
30
31     _pam_start_timer(pamh);    /* we try to make the time for a failure
32                                   independent of the time it takes to
33                                   fail */
34
35     IF_NO_PAMH("pam_authenticate_secondary",pamh,PAM_SYSTEM_ERR);
36
37     _pam_await_timer(pamh, retval);   /* if unsuccessful then wait now */
38
39     D(("pam_authenticate_secondary exit"));
40
41     return retval;
42 }