diff mbox series

[07/16] sslapi: Add wolfSSL compatibility macro

Message ID 20200916135825.40367-8-bage@linutronix.de
State Accepted
Headers show
Series wolfssl SSL impl, PKCS#11 AES, AES key len | expand

Commit Message

Bastian Germann Sept. 16, 2020, 1:58 p.m. UTC
From: Bastian Germann <bage@linutronix.de>

The EVP_PKEY_CTX_set_rsa_pss_saltlen function is not implemented in wolfSSL
even though RSA PSS is. So define a compatibility macro for it.

Signed-off-by: Bastian Germann <bage@linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn@linutronix.de>
---
 include/sslapi.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/sslapi.h b/include/sslapi.h
index 74bd424..97e1f5c 100644
--- a/include/sslapi.h
+++ b/include/sslapi.h
@@ -58,6 +58,8 @@  static inline uint32_t SSL_X509_get_extended_key_usage(X509 *x)
 #endif /* CONFIG_SIGALG_CMS */
 
 #ifdef CONFIG_SSL_IMPL_WOLFSSL
+#define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) (1)
+
 #define X509_PURPOSE_CODE_SIGN EXTKEYUSE_CODESIGN
 #define SSL_PURPOSE_EMAIL_PROT EXTKEYUSE_EMAILPROT
 #else