Commit a6774403 by Thomas Klausner

src: hide unused hmac() prototype

It conflicts with NetBSD's in its libc.

Closes #6457
parent 036fe1af
...@@ -296,6 +296,7 @@ extern int USHAHashSize(enum SHAversion whichSha); ...@@ -296,6 +296,7 @@ extern int USHAHashSize(enum SHAversion whichSha);
extern int USHAHashSizeBits(enum SHAversion whichSha); extern int USHAHashSizeBits(enum SHAversion whichSha);
extern const char *USHAHashName(enum SHAversion whichSha); extern const char *USHAHashName(enum SHAversion whichSha);
#if 0
/* /*
* HMAC Keyed-Hashing for Message Authentication, RFC 2104, * HMAC Keyed-Hashing for Message Authentication, RFC 2104,
* for all SHAs. * for all SHAs.
...@@ -307,6 +308,7 @@ extern int hmac(SHAversion whichSha, /* which SHA algorithm to use */ ...@@ -307,6 +308,7 @@ extern int hmac(SHAversion whichSha, /* which SHA algorithm to use */
const unsigned char *key, /* pointer to authentication key */ const unsigned char *key, /* pointer to authentication key */
int key_len, /* length of authentication key */ int key_len, /* length of authentication key */
uint8_t digest[USHAMaxHashSize]); /* caller digest to fill in */ uint8_t digest[USHAMaxHashSize]); /* caller digest to fill in */
#endif
/* /*
* HMAC Keyed-Hashing for Message Authentication, RFC 2104, * HMAC Keyed-Hashing for Message Authentication, RFC 2104,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment