Don't print out errors in cases where errors are expected: testing
[openssl.git] / fips / ecdsa / fips_ecdsavs.c
index 1245f85..4cf536c 100644 (file)
@@ -284,7 +284,9 @@ static int PKV(FILE *in, FILE *out)
                                return 0;
                                }
                        key = EC_KEY_new_by_curve_name(curve_nid);
                                return 0;
                                }
                        key = EC_KEY_new_by_curve_name(curve_nid);
+                       no_err = 1;
                        rv = EC_KEY_set_public_key_affine_coordinates(key, Qx, Qy);
                        rv = EC_KEY_set_public_key_affine_coordinates(key, Qx, Qy);
+                       no_err = 0;
                        fprintf(out, "Result = %s\n", rv ? "P":"F");
                        }
 
                        fprintf(out, "Result = %s\n", rv ? "P":"F");
                        }