[packages/tpm-tools] - adjusted for 1.9.3.1

adamg adamg at pld-linux.org
Sun Sep 23 20:39:56 CEST 2018


commit 6397285812c50571dd54079ae405c5f9de8a1736
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Sun Sep 23 20:39:15 2018 +0200

    - adjusted for 1.9.3.1

 0003-Allocate-OpenSSL-cipher-contexts-for-seal-unseal.patch | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/0003-Allocate-OpenSSL-cipher-contexts-for-seal-unseal.patch b/0003-Allocate-OpenSSL-cipher-contexts-for-seal-unseal.patch
index 1f18e8b..3aaca68 100644
--- a/0003-Allocate-OpenSSL-cipher-contexts-for-seal-unseal.patch
+++ b/0003-Allocate-OpenSSL-cipher-contexts-for-seal-unseal.patch
@@ -25,12 +25,11 @@ index fc4a84906a..005dab7f8f 100644
  	BIO *bdata = NULL, *b64 = NULL, *bmem = NULL;
  	int bioRc;
  
-@@ -408,7 +408,12 @@ int tpmUnsealFile( char* fname, unsigned char** tss_data, int* tss_size,
+@@ -408,7 +408,11 @@ int tpmUnsealFile( char* fname, unsigned char** tss_data, int* tss_size,
  	}
  
  	/* Decode and decrypt the encrypted data */
--	EVP_CIPHER_CTX *ctx = NULL;
-+	ctx = EVP_CIPHER_CTX_new();
+-	EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new();
 +	if ( ctx == NULL ) {
 +		rc = TPMSEAL_STD_ERROR;
 +		tpm_errno = ENOMEM;
@@ -62,12 +61,11 @@ index a2157f34b1..e25244a0f4 100644
  	BIO *bin = NULL, *bdata=NULL, *b64=NULL;
  
  	initIntlSys();
-@@ -343,7 +343,11 @@ int main(int argc, char **argv)
+@@ -343,7 +343,10 @@ int main(int argc, char **argv)
  	BIO_puts(bdata, TPMSEAL_ENC_STRING); 
  	bdata = BIO_push(b64, bdata);
  
--	EVP_CIPHER_CTX *ctx = NULL;
-+	ctx = EVP_CIPHER_CTX_new();
+-	EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new();
 +	if (ctx == NULL) {
 +		logError(_("Unable to allocate cipher context\n"));
 +		goto out_close;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tpm-tools.git/commitdiff/bbdb5be04803ae2c7b4dc36c25ac6c8580231297



More information about the pld-cvs-commit mailing list