Browse Source

when using SHA1Data(), no CTX is needed, so zap that line in the example

ok jmc@
OPENBSD_4_1
grunk 18 years ago
parent
commit
43fa649024
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/lib/libc/hash/sha1.3

+ 1
- 2
src/lib/libc/hash/sha1.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: sha1.3,v 1.34 2004/06/22 01:57:29 jfb Exp $
.\" $OpenBSD: sha1.3,v 1.35 2006/10/03 12:06:07 grunk Exp $
.\" .\"
.\" Copyright (c) 1997, 2004 Todd C. Miller <Todd.Miller@courtesan.com> .\" Copyright (c) 1997, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
.\" .\"
@ -188,7 +188,6 @@ putchar('\en');
.Pp .Pp
Alternately, the helper functions could be used in the following way: Alternately, the helper functions could be used in the following way:
.Bd -literal -offset indent .Bd -literal -offset indent
SHA1_CTX sha;
u_int8_t output[SHA1_DIGEST_STRING_LENGTH]; u_int8_t output[SHA1_DIGEST_STRING_LENGTH];
char *buf = "abc"; char *buf = "abc";


Loading…
Cancel
Save