Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | Update to build with openssl 1.1.x |
| 3 | |
| 4 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
| 5 | |
| 6 | Index: git/src/cmds/tpm_extendpcr.c |
| 7 | =================================================================== |
| 8 | --- git.orig/src/cmds/tpm_extendpcr.c |
| 9 | +++ git/src/cmds/tpm_extendpcr.c |
| 10 | @@ -136,7 +136,7 @@ int main(int argc, char **argv) |
| 11 | |
| 12 | unsigned char msg[EVP_MAX_MD_SIZE]; |
| 13 | unsigned int msglen; |
| 14 | - EVP_MD_CTX ctx; |
| 15 | + EVP_MD_CTX *ctx = EVP_MD_CTX_new(); |
| 16 | EVP_DigestInit(&ctx, EVP_sha1()); |
| 17 | while ((lineLen = BIO_read(bin, line, sizeof(line))) > 0) |
| 18 | EVP_DigestUpdate(&ctx, line, lineLen); |