svn commit: r355962 - head/lib/libsecureboot
Simon J. Gerraty
sjg at FreeBSD.org
Fri Dec 20 21:56:29 UTC 2019
Author: sjg
Date: Fri Dec 20 21:56:28 2019
New Revision: 355962
URL: https://svnweb.freebsd.org/changeset/base/355962
Log:
Avoid unused vars when VE_ECDSA_HASH_AGAIN undefined
Reviewed by: emaste
MFC after: 1 week
Modified:
head/lib/libsecureboot/vets.c
Modified: head/lib/libsecureboot/vets.c
==============================================================================
--- head/lib/libsecureboot/vets.c Fri Dec 20 21:55:13 2019 (r355961)
+++ head/lib/libsecureboot/vets.c Fri Dec 20 21:56:28 2019 (r355962)
@@ -642,9 +642,10 @@ hexdigest(char *buf, size_t bufsz, unsigned char *foo,
static unsigned char *
verify_ec(br_x509_pkey *pk, const char *file, const char *sigfile)
{
- char hexbuf[br_sha512_SIZE * 2 + 2];
+#ifdef VE_ECDSA_HASH_AGAIN
+ char *hex, hexbuf[br_sha512_SIZE * 2 + 2];
+#endif
unsigned char rhbuf[br_sha512_SIZE];
- char *hex;
br_sha256_context ctx;
unsigned char *fcp, *scp;
size_t flen, slen, plen;
More information about the svn-src-all
mailing list