diff mbox series

[V3,05/10] sslapi: Add priv key/cert to swupdate_digest for asym decryption

Message ID 20231215142251.52393-6-Michael.Glembotzki@iris-sensing.com
State Changes Requested
Headers show
Series Add support for asymmetric decryption | expand

Commit Message

Michael Glembotzki Dec. 15, 2023, 2:19 p.m. UTC
Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com>
---
 include/sslapi.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/include/sslapi.h b/include/sslapi.h
index 0dce615..de86695 100644
--- a/include/sslapi.h
+++ b/include/sslapi.h
@@ -108,6 +108,10 @@  struct swupdate_digest {
 #else
 	EVP_CIPHER_CTX *ctxdec;
 #endif
+#ifdef CONFIG_ASYM_ENCRYPTED_SW_DESCRIPTION
+	EVP_PKEY *rkey; /* recipient private key */
+	X509 *rcert;    /* recipient cert */
+#endif
 };
 
 #if OPENSSL_VERSION_NUMBER < 0x10100000L