diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2012-09-07 23:11:52 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2012-09-07 23:11:52 +0000 |
commit | 16338a520a35a49c1e08e81413b044888934b05e (patch) | |
tree | 6da2c6703982bceba99e28e25b39ea489be3eb09 /lib/libc | |
parent | 3d31d03122482af0e2e8615bd4c3f27b73b7048d (diff) |
add const where missing
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/hash/sha2.3 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/hash/sha2.3 b/lib/libc/hash/sha2.3 index 0ce969a78e3..f617cc78a88 100644 --- a/lib/libc/hash/sha2.3 +++ b/lib/libc/hash/sha2.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sha2.3,v 1.16 2008/09/12 05:33:10 djm Exp $ +.\" $OpenBSD: sha2.3,v 1.17 2012/09/07 23:11:51 tedu Exp $ .\" .\" Copyright (c) 2003, 2004 Todd C. Miller <Todd.Miller@courtesan.com> .\" @@ -20,7 +20,7 @@ .\" .\" See http://www.nist.gov/sha/ for the detailed standard .\" -.Dd $Mdocdate: September 12 2008 $ +.Dd $Mdocdate: September 7 2012 $ .Dt SHA2 3 .Os .Sh NAME @@ -54,7 +54,7 @@ .Ft "char *" .Fn SHA256FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length" .Ft "char *" -.Fn SHA256Data "u_int8_t *data" "size_t len" "char *buf" +.Fn SHA256Data "const u_int8_t *data" "size_t len" "char *buf" .Ft void .Fn SHA384Init "SHA2_CTX *context" .Ft void @@ -68,11 +68,11 @@ .Ft "char *" .Fn SHA384End "SHA2_CTX *context" "char *buf" .Ft "char *" -.Fn SHA384File "char *filename" "char *buf" +.Fn SHA384File "const char *filename" "char *buf" .Ft "char *" -.Fn SHA384FileChunk "char *filename" "char *buf" "off_t offset" "off_t length" +.Fn SHA384FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length" .Ft "char *" -.Fn SHA384Data "u_int8_t *data" "size_t len" "char *buf" +.Fn SHA384Data "const u_int8_t *data" "size_t len" "char *buf" .Ft void .Fn SHA512Init "SHA2_CTX *context" .Ft void @@ -86,11 +86,11 @@ .Ft "char *" .Fn SHA512End "SHA2_CTX *context" "char *buf" .Ft "char *" -.Fn SHA512File "char *filename" "char *buf" +.Fn SHA512File "const char *filename" "char *buf" .Ft "char *" -.Fn SHA512FileChunk "char *filename" "char *buf" "off_t offset" "off_t length" +.Fn SHA512FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length" .Ft "char *" -.Fn SHA512Data "u_int8_t *data" "size_t len" "char *buf" +.Fn SHA512Data "const u_int8_t *data" "size_t len" "char *buf" .Sh DESCRIPTION The SHA2 functions implement the NIST Secure Hash Standard, FIPS PUB 180-2. |