Make sure the RSA OAEP test is skipped under -DRSAref because
[openssl.git] / rsaref / rsaref.c
index 5f77297..90cda46 100644 (file)
@@ -328,6 +328,9 @@ int padding;
        RSARandomState rnd;
        unsigned char buf[16];
 
+       if (padding == RSA_PKCS1_OAEP_PADDING) 
+               goto err;
+
        R_RandomInit(&rnd);
        R_GetRandomBytesNeeded((unsigned int *)&i,&rnd);
        while (i > 0)