pkgsrc/devel/bglibs/patches/patch-crypto_hmac-sha512.c
schmonz 4203dd9b79 Update to 2.03. From the changelog:
- Reverted libbg-cli back to static linkage (for now) to fix problem
  with cli-generate generated code.
- Fixed header include path in cli-generate.
- Rewrote iobuf and str number formatting using fmt.
- Added missing selftest.c file to the dist tarball (oops).
- Fixed uint##.h headers.
- Flattened out the installed headers and libraries.
  NOTE: This means this package is not backwards compatible.
- Added dns library (modified from public domain djbdns-1.05)
- Added wildcard handling and substitution to bg-installer.
- Added reversed IPv4 formatting functions (from Jorge Valdes).
- Added str_end* and str_case_end* functions, parallel to str_start* and
  str_case_start* but for suffixes.
- Added the ability to use arbitrary format functions in fmt_multi.
- Added support for enumerate and itemize in cli-generate.
- Added surfrand_uniform function, protected against bias.
2017-01-02 02:18:30 +00:00

15 lines
584 B
C

$NetBSD: patch-crypto_hmac-sha512.c,v 1.2 2017/01/02 02:18:30 schmonz Exp $
Rename hmac to bghmac.
--- crypto/hmac-sha512.c.orig 2016-12-18 09:59:00.448666869 +0000
+++ crypto/hmac-sha512.c
@@ -46,7 +46,7 @@ static void test_hmac(const char* key, c
const str data_str = { (char*)data, strlen(data), 0 };
unsigned char digest[SHA512_DIGEST_LENGTH];
unsigned i;
- hmac(&hmac_sha512, &key_str, &data_str, digest);
+ bghmac(&hmac_sha512, &key_str, &data_str, digest);
for (i = 0; i < sizeof digest; ++i)
obuf_putxw(&outbuf, digest[i], 2, '0');
obuf_endl(&outbuf);