Fix overly lenient comparisons:
authorBodo Moeller <bmoeller@google.com>
Mon, 16 Sep 2013 10:59:21 +0000 (12:59 +0200)
committerBodo Moeller <bmoeller@google.com>
Mon, 16 Sep 2013 10:59:21 +0000 (12:59 +0200)
commitca567a03ad4595589b6062465a8404764da4e3fa
tree27f54d569f3028a0b0f1d6ca1a3d531f9835ac06
parent8e52a9063a8a016bdac780005256994d26f9c2f9
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
Configure
crypto/ec/ec_lib.c