diff options
| author | Simon J. Gerraty <sjg@FreeBSD.org> | 2019-12-20 21:56:28 +0000 |
|---|---|---|
| committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2019-12-20 21:56:28 +0000 |
| commit | 0e47020f7f20c9ecf5d796497064f1ff124fbfa6 (patch) | |
| tree | c92fbdea45b5d5bf728ae3ed412fd3ac5475fdca /lib/libsecureboot/vets.c | |
| parent | 9449898858ad13f74a9a89bc71fd07af235eb8b4 (diff) | |
Notes
Diffstat (limited to 'lib/libsecureboot/vets.c')
| -rw-r--r-- | lib/libsecureboot/vets.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libsecureboot/vets.c b/lib/libsecureboot/vets.c index c1686f300eb7..7d974fc54115 100644 --- a/lib/libsecureboot/vets.c +++ b/lib/libsecureboot/vets.c @@ -642,9 +642,10 @@ hexdigest(char *buf, size_t bufsz, unsigned char *foo, size_t foo_len) 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; |
