Skip to content

Commit a677440

Browse files
committed
src: hide unused hmac() prototype
It conflicts with NetBSD's in its libc. Closes libgit2#6457
1 parent 036fe1a commit a677440

File tree

1 file changed

+2
-0
lines changed
  • src/util/hash/rfc6234

1 file changed

+2
-0
lines changed

src/util/hash/rfc6234/sha.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ extern int USHAHashSize(enum SHAversion whichSha);
296296
extern int USHAHashSizeBits(enum SHAversion whichSha);
297297
extern const char *USHAHashName(enum SHAversion whichSha);
298298

299+
#if 0
299300
/*
300301
* HMAC Keyed-Hashing for Message Authentication, RFC 2104,
301302
* for all SHAs.
@@ -307,6 +308,7 @@ extern int hmac(SHAversion whichSha, /* which SHA algorithm to use */
307308
const unsigned char *key, /* pointer to authentication key */
308309
int key_len, /* length of authentication key */
309310
uint8_t digest[USHAMaxHashSize]); /* caller digest to fill in */
311+
#endif
310312

311313
/*
312314
* HMAC Keyed-Hashing for Message Authentication, RFC 2104,

0 commit comments

Comments
 (0)