Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2000 04:49:07 +0900 (JST)
From:      Tetsuro Furuya <tfuruya@ppp142197.asahi-net.or.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/16209: Bugs of opie.4
Message-ID:  <200001191949.EAA20861@galois.tf.or.jp>

next in thread | raw e-mail | index | archive | help

>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 <stdio.h> somewhere. Then, below the other
 includes such as <stdio.h>, but before variable declarations, you need to
-include "opie.h". You need to add a variable of type "struct opie" to your
+include <opie.h>. 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001191949.EAA20861>