]> git.pld-linux.org Git - packages/tpm-tools.git/commitdiff
- adjusted for 1.9.3.1
authorAdam Gołębiowski <adamg@pld-linux.org>
Sun, 23 Sep 2018 18:39:15 +0000 (20:39 +0200)
committerAdam Gołębiowski <adamg@pld-linux.org>
Sun, 23 Sep 2018 18:39:15 +0000 (20:39 +0200)
0003-Allocate-OpenSSL-cipher-contexts-for-seal-unseal.patch

index 1f18e8bfc9f128fea7eff7a7e0138c442a131e4b..3aaca68f799aa6e8727b139f8fa4a2519f54b391 100644 (file)
@@ -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;
This page took 0.168599 seconds and 4 git commands to generate.