From owner-freebsd-doc Wed Jan 19 12: 0:20 2000 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9EC1714E26 for ; Wed, 19 Jan 2000 12:00:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA25729; Wed, 19 Jan 2000 12:00:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from ppp142197.asahi-net.or.jp (ppp142197.asahi-net.or.jp [202.213.142.197]) by hub.freebsd.org (Postfix) with ESMTP id 8E01615052 for ; Wed, 19 Jan 2000 11:54:40 -0800 (PST) (envelope-from tfuruya@ppp142197.asahi-net.or.jp) Received: (from tfuruya@localhost) by galois.tf.or.jp (8.9.3/3.7W-Teddy-99050304) id EAA20861; Thu, 20 Jan 2000 04:49:07 +0900 (JST) Message-Id: <200001191949.EAA20861@galois.tf.or.jp> Date: Thu, 20 Jan 2000 04:49:07 +0900 (JST) From: Tetsuro Furuya Reply-To: tfuruya@ppp142197.asahi-net.or.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/16209: Bugs of opie.4 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16209 >Category: docs >Synopsis: Bugs of opie.4 >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 19 12:00:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Tetsuro Furuya >Release: FreeBSD 2.2.7-RELEASE i386 and later >Organization: man-jp-reviewer@jp.freebsd.org >Environment: man 4 opie, compilation of c source including opie authentication. >Description: unseen statements, error directives on c source. >How-To-Repeat: man 4 opie >Fix: Here is diff file to fix. --- opie.4.orig Sat May 1 15:43:08 1999 +++ opie.4 Sat May 1 15:44:14 1999 @@ -211,17 +211,17 @@ .IR opiekey(1), which is an OPIE key calculator. -.LP ADDING OPIE TO OTHER PROGRAMS +.SH ADDING OPIE TO OTHER PROGRAMS Adding OPIE authentication to programs other than the ones included as clients in the OPIE distribution isn't very difficult. First, you will need to make sure that the program includes somewhere. Then, below the other includes such as , but before variable declarations, you need to -include "opie.h". You need to add a variable of type "struct opie" to your +include . You need to add a variable of type "struct opie" to your program, you need to make sure that the buffer that you use to get a password from the user is big enough to hold OPIE_RESPONSE_MAX+1 characters, and you need to have a buffer in which to store the challenge string that is big enough -to hold OPIE_PROMPT_MAX+1 characters. +to hold OPIE_CHALLENGE_MAX+1 characters. .LP When you are ready to output the challenge string and know the user's name, you would use a call to opiechallenge. Later, to verify the response received, @@ -253,13 +253,13 @@ .sp 0 struct opie opiedata; .sp 0 - char opieprompt[OPIE_PROMPT_MAX+1]; + char opieprompt[OPIE_CHALLENGE_MAX+1]; .sp 0 . .sp 0 . .sp 0 - opiechallenge(&opiedata, user_name, &opieprompt); + opiechallenge(&opiedata, user_name, opieprompt); .sp 0 . .sp 0 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message