summaryrefslogtreecommitdiff
path: root/security/openssh/files/patch-monitor.c
blob: fc0f1911dddaf281e448e7d66c74fa2fe3de48df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- monitor.c.orig	Fri Jun 21 07:50:51 2002
+++ monitor.c	Mon Jun 24 20:39:42 2002
@@ -30,7 +30,7 @@
 #include <openssl/dh.h>
 
 #ifdef SKEY
-#include <skey.h>
+#include <opie.h>
 #endif
 
 #include "ssh.h"
@@ -656,11 +656,11 @@
 int
 mm_answer_skeyquery(int socket, Buffer *m)
 {
-	struct skey skey;
+	struct opie opie;
 	char challenge[1024];
 	int res;
 
-	res = skeychallenge(&skey, authctxt->user, challenge);
+	res = opiechallenge(&opie, authctxt->user, challenge);
 
 	buffer_clear(m);
 	buffer_put_int(m, res);
@@ -683,8 +683,8 @@
 
 	authok = (options.challenge_response_authentication &&
 	    authctxt->valid &&
-	    skey_haskey(authctxt->pw->pw_name) == 0 &&
-	    skey_passcheck(authctxt->pw->pw_name, response) != -1);
+	    opie_haskey(authctxt->pw->pw_name) == 0 &&
+	    opie_passverify(authctxt->pw->pw_name, response) != -1);
 
 	xfree(response);