|
|
28a59a |
From 8c1968a1e52c3d45a96509e9eba753357ad377c9 Mon Sep 17 00:00:00 2001
|
|
|
28a59a |
From: Petr Gotthard <petr.gotthard@centrum.cz>
|
|
|
28a59a |
Date: Sat, 7 Aug 2021 11:45:14 +0200
|
|
|
28a59a |
Subject: [PATCH 05/17] openssl: Remove functions that have no effect in
|
|
|
28a59a |
OpenSSL >= 1.1.0
|
|
|
28a59a |
|
|
|
28a59a |
This will work with OpenSSL 1.1.0 through 3.0.0.
|
|
|
28a59a |
|
|
|
28a59a |
Signed-off-by: Petr Gotthard <petr.gotthard@centrum.cz>
|
|
|
28a59a |
---
|
|
|
28a59a |
lib/tpm2_convert.c | 1 -
|
|
|
28a59a |
tools/tpm2_tool.c | 8 --------
|
|
|
28a59a |
2 files changed, 9 deletions(-)
|
|
|
28a59a |
|
|
|
28a59a |
diff --git a/lib/tpm2_convert.c b/lib/tpm2_convert.c
|
|
|
28a59a |
index 27a0effe..cc1c18ab 100644
|
|
|
28a59a |
--- a/lib/tpm2_convert.c
|
|
|
28a59a |
+++ b/lib/tpm2_convert.c
|
|
|
28a59a |
@@ -262,7 +262,6 @@ static bool tpm2_convert_pubkey_bio(TPMT_PUBLIC *public,
|
|
|
28a59a |
"Unsupported key type for requested output format. Only RSA is supported.");
|
|
|
28a59a |
}
|
|
|
28a59a |
|
|
|
28a59a |
- ERR_free_strings();
|
|
|
28a59a |
return result;
|
|
|
28a59a |
}
|
|
|
28a59a |
|
|
|
28a59a |
diff --git a/tools/tpm2_tool.c b/tools/tpm2_tool.c
|
|
|
28a59a |
index f4865266..edd04c83 100644
|
|
|
28a59a |
--- a/tools/tpm2_tool.c
|
|
|
28a59a |
+++ b/tools/tpm2_tool.c
|
|
|
28a59a |
@@ -230,14 +230,6 @@ int main(int argc, char **argv) {
|
|
|
28a59a |
tpm2_errata_init(ctx.ectx);
|
|
|
28a59a |
}
|
|
|
28a59a |
|
|
|
28a59a |
- /*
|
|
|
28a59a |
- * Load the openssl error strings and algorithms
|
|
|
28a59a |
- * so library routines work as expected.
|
|
|
28a59a |
- */
|
|
|
28a59a |
- OpenSSL_add_all_algorithms();
|
|
|
28a59a |
- OpenSSL_add_all_ciphers();
|
|
|
28a59a |
- ERR_load_crypto_strings();
|
|
|
28a59a |
-
|
|
|
28a59a |
/*
|
|
|
28a59a |
* Call the specific tool, all tools implement this function instead of
|
|
|
28a59a |
* 'main'.
|
|
|
28a59a |
--
|
|
|
28a59a |
2.31.1
|
|
|
28a59a |
|