summaryrefslogtreecommitdiff
path: root/auth-bsdauth.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 02:30:41 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 02:30:41 +0000
commit7a2073c50b92c053594d48a651ebafae052a71ed (patch)
tree7cfceb925262a07a356b0667e19f33eec497b602 /auth-bsdauth.c
parent0f345f5ee1e71e1e9f8780ec13b2da23b6a9f7f8 (diff)
- provos@cvs.openbsd.org 2002/03/18 17:50:31
[auth-bsdauth.c auth-options.c auth-rh-rsa.c auth-rsa.c auth-skey.c auth.h auth1.c auth2-chall.c auth2.c kex.c kex.h kexdh.c kexgex.c servconf.c session.h servconf.h serverloop.c session.c sshd.c] integrate privilege separated openssh; its turned off by default for now. work done by me and markus@ applied, but outside of ensure that smaller code bits migrated with their owners.. no work was tried to 'fix' it to work. =) Later project!
Diffstat (limited to 'auth-bsdauth.c')
-rw-r--r--auth-bsdauth.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/auth-bsdauth.c b/auth-bsdauth.c
index b70d48f20..fa06732cc 100644
--- a/auth-bsdauth.c
+++ b/auth-bsdauth.c
@@ -22,12 +22,13 @@
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.2 2001/12/19 07:18:56 deraadt Exp $"); 25RCSID("$OpenBSD: auth-bsdauth.c,v 1.3 2002/03/18 17:50:31 provos Exp $");
26 26
27#ifdef BSD_AUTH 27#ifdef BSD_AUTH
28#include "xmalloc.h" 28#include "xmalloc.h"
29#include "auth.h" 29#include "auth.h"
30#include "log.h" 30#include "log.h"
31#include "monitor_wrap.h"
31 32
32static void * 33static void *
33bsdauth_init_ctx(Authctxt *authctxt) 34bsdauth_init_ctx(Authctxt *authctxt)
@@ -35,7 +36,7 @@ bsdauth_init_ctx(Authctxt *authctxt)
35 return authctxt; 36 return authctxt;
36} 37}
37 38
38static int 39int
39bsdauth_query(void *ctx, char **name, char **infotxt, 40bsdauth_query(void *ctx, char **name, char **infotxt,
40 u_int *numprompts, char ***prompts, u_int **echo_on) 41 u_int *numprompts, char ***prompts, u_int **echo_on)
41{ 42{
@@ -76,7 +77,7 @@ bsdauth_query(void *ctx, char **name, char **infotxt,
76 return 0; 77 return 0;
77} 78}
78 79
79static int 80int
80bsdauth_respond(void *ctx, u_int numresponses, char **responses) 81bsdauth_respond(void *ctx, u_int numresponses, char **responses)
81{ 82{
82 Authctxt *authctxt = ctx; 83 Authctxt *authctxt = ctx;
@@ -113,4 +114,12 @@ KbdintDevice bsdauth_device = {
113 bsdauth_respond, 114 bsdauth_respond,
114 bsdauth_free_ctx 115 bsdauth_free_ctx
115}; 116};
117
118KbdintDevice mm_bsdauth_device = {
119 "bsdauth",
120 bsdauth_init_ctx,
121 mm_bsdauth_query,
122 mm_bsdauth_respond,
123 bsdauth_free_ctx
124};
116#endif 125#endif