FreeBSD Bugzilla – Attachment 7478 Details for
Bug 16209
Bugs of opie.4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.42 KB, created by
Tetsuro Furuya
on 2000-01-19 20:00:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Tetsuro Furuya
Created:
2000-01-19 20:00:00 UTC
Size:
1.42 KB
patch
obsolete
>--- 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16209
: 7478