BN_cmp returns an int, not a BIGNUM *