Displaying 1 result from an estimated 1 matches for "opie_init_ctx".
2001 Nov 04
2
OPIE patch for current CVS
...RWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+#include "includes.h"
+RCSID("$Id");
+
+#ifdef OPIE
+
+#include <opie.h>
+
+#include "xmalloc.h"
+#include "auth.h"
+
+static void *
+opie_init_ctx(Authctxt *authctxt)
+{
+ return authctxt;
+}
+
+#define PROMPT "\nOPIE Password: "
+
+static int
+opie_query(void *ctx, char **name, char **infotxt,
+ u_int* numprompts, char ***prompts, u_int **echo_on)
+{
+ Authctxt *authctxt = ctx;
+ char challenge[OPIE_CHALLENGE_MAX+64], *p;
+ int...