Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Ports
tboot
tboot-openssl-1-1-0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tboot-openssl-1-1-0.patch of Package tboot
changeset: 503:2bb331ec268d user: Ning Sun <ning.sun@intel.com> date: Mon Aug 28 02:10:28 2017 -0700 summary: port to openssl-1.1.0 diff -r e57efe410a90 -r 2bb331ec268d lcptools/hash.c --- a/lcptools/hash.c Mon Jul 24 05:34:17 2017 -0700 +++ b/lcptools/hash.c Mon Aug 28 02:10:28 2017 -0700 @@ -74,13 +74,18 @@ return false; if ( hash_alg == TB_HALG_SHA1_LG ) { - EVP_MD_CTX ctx; + EVP_MD_CTX *ctx = EVP_MD_CTX_create(); + if (ctx == NULL) { + fprintf(stderr, "%s(): EVP_MD_CTX_create() failed.\n", __func__); + return false; + } const EVP_MD *md; md = EVP_sha1(); - EVP_DigestInit(&ctx, md); - EVP_DigestUpdate(&ctx, buf, size); - EVP_DigestFinal(&ctx, hash->sha1, NULL); + EVP_DigestInit(ctx, md); + EVP_DigestUpdate(ctx, buf, size); + EVP_DigestFinal(ctx, hash->sha1, NULL); + EVP_MD_CTX_destroy(ctx); return true; } else
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor