Make sure the RSA OAEP test is skipped under -DRSAref because
[openssl.git] / rsaref / rsaref.c
index 5f772972d50982bb6f8cb1f3162ea34b624ea291..90cda4687b47a654e490aa5676780cedb7e2a3ef 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)