File openssl-1_1-shortcut-test_afalg_aes_cbc.patch of Package openssl-1_1.27651

diff --git a/test/afalgtest.c b/test/afalgtest.c
index adb2977..c4f848a 100644
--- a/test/afalgtest.c
+++ b/test/afalgtest.c
@@ -43,6 +43,9 @@ static ENGINE *e;
 #ifndef OPENSSL_NO_AFALGENG
 static int test_afalg_aes_cbc(int keysize_idx)
 {
+  /* This test fails in fips mode, so just shortcut out. */
+  if ( FIPS_mode()) return 1;
+
     EVP_CIPHER_CTX *ctx;
     const EVP_CIPHER *cipher;
     unsigned char key[] = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
openSUSE Build Service is sponsored by