File openssl-fips_disallow_x931_rand_method.patch of Package openssl-1_0_0.21013

Index: openssl-1.0.2g/crypto/fips/fips_rand_lib.c
===================================================================
--- openssl-1.0.2g.orig/crypto/fips/fips_rand_lib.c	2016-04-13 15:01:53.236630810 +0200
+++ openssl-1.0.2g/crypto/fips/fips_rand_lib.c	2016-04-13 15:02:48.986482927 +0200
@@ -73,8 +73,6 @@ int FIPS_rand_set_method(const RAND_METH
     if (!fips_rand_bits) {
         if (meth == FIPS_drbg_method())
             fips_approved_rand_meth = 1;
-        else if (meth == FIPS_x931_method())
-            fips_approved_rand_meth = 2;
         else {
             fips_approved_rand_meth = 0;
             if (FIPS_module_mode()) {
openSUSE Build Service is sponsored by