Fix overly lenient comparisons:
authorBodo Moeller <bodo@openssl.org>
Mon, 16 Sep 2013 11:03:27 +0000 (13:03 +0200)
committerBodo Moeller <bodo@openssl.org>
Mon, 16 Sep 2013 12:50:48 +0000 (14:50 +0200)
commit485d7d5904c55ef85e3f69380a947ecb53661c87
treee1f5dc79cab4b9bbcdf352e239019a4790b8a76b
parentd75e384ff8973f5eeeb6b606f3a6b92218ffa45c
Fix overly lenient comparisons:

    - EC_GROUP_cmp shouldn't consider curves equal just because
      the curve name is the same. (They really *should* be the same
      in this case, but there's an EC_GROUP_set_curve_name API,
      which could be misused.)

    - EC_POINT_cmp shouldn't return 0 for ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
      or EC_R_INCOMPATIBLE_OBJECTS errors because in a cmp API, 0 indicates
      equality (not an error).

    Reported by: king cope

(cherry picked from commit 312a46791ab465cfa3bf26764361faed0e5df014)
Configure
crypto/ec/ec_lib.c