diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 00:41:51 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 00:41:51 +0000 |
commit | cb72e4f6d2cf63cda22484ec90142689fed288f6 (patch) | |
tree | 3bc1bb95abd19df05ee0b3e78bad6cdba987837f /auth-bsdauth.c | |
parent | 115422f918d86e007cb3c050e9c4d09102580089 (diff) |
- deraadt@cvs.openbsd.org 2002/06/19 00:27:55
[auth-bsdauth.c auth-skey.c auth1.c auth2-chall.c auth2-none.c authfd.c
authfd.h monitor_wrap.c msg.c nchan.c radix.c readconf.c scp.c sftp.1
ssh-add.1 ssh-add.c ssh-agent.1 ssh-agent.c ssh-keygen.1 ssh-keygen.c
ssh-keysign.c ssh.1 sshconnect.c sshconnect.h sshconnect2.c ttymodes.c
xmalloc.h]
KNF done automatically while reading....
Diffstat (limited to 'auth-bsdauth.c')
-rw-r--r-- | auth-bsdauth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-bsdauth.c b/auth-bsdauth.c index fa06732cc..4f1b452b7 100644 --- a/auth-bsdauth.c +++ b/auth-bsdauth.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: auth-bsdauth.c,v 1.3 2002/03/18 17:50:31 provos Exp $"); | 25 | RCSID("$OpenBSD: auth-bsdauth.c,v 1.4 2002/06/19 00:27:55 deraadt Exp $"); |
26 | 26 | ||
27 | #ifdef BSD_AUTH | 27 | #ifdef BSD_AUTH |
28 | #include "xmalloc.h" | 28 | #include "xmalloc.h" |
@@ -57,7 +57,7 @@ bsdauth_query(void *ctx, char **name, char **infotxt, | |||
57 | debug3("bsdauth_query: style %s", | 57 | debug3("bsdauth_query: style %s", |
58 | authctxt->style ? authctxt->style : "<default>"); | 58 | authctxt->style ? authctxt->style : "<default>"); |
59 | authctxt->as = auth_userchallenge(authctxt->user, | 59 | authctxt->as = auth_userchallenge(authctxt->user, |
60 | authctxt->style, "auth-ssh", &challenge); | 60 | authctxt->style, "auth-ssh", &challenge); |
61 | if (authctxt->as == NULL) | 61 | if (authctxt->as == NULL) |
62 | challenge = NULL; | 62 | challenge = NULL; |
63 | debug2("bsdauth_query: <%s>", challenge ? challenge : "empty"); | 63 | debug2("bsdauth_query: <%s>", challenge ? challenge : "empty"); |
@@ -66,8 +66,8 @@ bsdauth_query(void *ctx, char **name, char **infotxt, | |||
66 | if (challenge == NULL) | 66 | if (challenge == NULL) |
67 | return -1; | 67 | return -1; |
68 | 68 | ||
69 | *name = xstrdup(""); | 69 | *name = xstrdup(""); |
70 | *infotxt = xstrdup(""); | 70 | *infotxt = xstrdup(""); |
71 | *numprompts = 1; | 71 | *numprompts = 1; |
72 | *prompts = xmalloc(*numprompts * sizeof(char*)); | 72 | *prompts = xmalloc(*numprompts * sizeof(char*)); |
73 | *echo_on = xmalloc(*numprompts * sizeof(u_int)); | 73 | *echo_on = xmalloc(*numprompts * sizeof(u_int)); |