From 3d09823df0029a35f9f3259a5f9a401dcbf26ee3 Mon Sep 17 00:00:00 2001 From: alegon01 Date: Mon, 4 Feb 2019 14:26:02 +0100 Subject: [PATCH] Fix build when OPENSSL_NO_RIPEMD and OPENSSL_NO_CAST are defined. Fix formatting. --- src/tools/pkcs11-tool.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c index 7dc8c8a8..29d33b7b 100644 --- a/src/tools/pkcs11-tool.c +++ b/src/tools/pkcs11-tool.c @@ -4653,9 +4653,9 @@ static int test_signature(CK_SESSION_HANDLE sess) CKM_RSA_PKCS, CKM_SHA1_RSA_PKCS, CKM_MD5_RSA_PKCS, - #ifndef OPENSSL_NO_RIPEMD +#ifndef OPENSSL_NO_RIPEMD CKM_RIPEMD160_RSA_PKCS, - #endif +#endif CKM_SHA256_RSA_PKCS, 0xffffff }; @@ -5236,9 +5236,9 @@ static int test_unwrap(CK_SESSION_HANDLE sess) errors += wrap_unwrap(sess, EVP_des_cbc(), privKeyObject); errors += wrap_unwrap(sess, EVP_des_ede3_cbc(), privKeyObject); errors += wrap_unwrap(sess, EVP_bf_cbc(), privKeyObject); - #ifndef OPENSSL_NO_CAST +#ifndef OPENSSL_NO_CAST errors += wrap_unwrap(sess, EVP_cast5_cfb(), privKeyObject); - #endif +#endif #endif }