Don't output bogus errors in PKCS12_parse
[openssl.git] / crypto / x86cpuid.pl
index ef1216a8b2ed4cc8ee5fc35667114ce36017b1aa..86772329bc7bd5a2492e59fdddb25e7901b0f6c2 100644 (file)
@@ -469,6 +469,18 @@ my $max = "ebp";
        &ret    ();
 &function_end_B("OPENSSL_ia32_rdrand");
 
+&function_begin_B("OPENSSL_ia32_rdseed");
+       &mov    ("ecx",8);
+&set_label("loop");
+       &rdseed ("eax");
+       &jc     (&label("break"));
+       &loop   (&label("loop"));
+&set_label("break");
+       &cmp    ("eax",0);
+       &cmove  ("eax","ecx");
+       &ret    ();
+&function_end_B("OPENSSL_ia32_rdseed");
+
 &initseg("OPENSSL_cpuid_setup");
 
 &hidden("OPENSSL_cpuid_setup");