summaryrefslogtreecommitdiff
path: root/auth-bsdauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-bsdauth.c')
-rw-r--r--auth-bsdauth.c8
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"
25RCSID("$OpenBSD: auth-bsdauth.c,v 1.3 2002/03/18 17:50:31 provos Exp $"); 25RCSID("$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));