diff options
author | Jack Lloyd <[email protected]> | 2018-02-01 10:25:38 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-02-01 10:25:38 -0500 |
commit | 5213f9a5ed5c39b28d5226183231cf1121c59235 (patch) | |
tree | 0a8d5e0344a8ad1eb309cb99f7badce662e2d0fb /src/lib/pubkey/ec_group/ec_group.h | |
parent | a0d7b60d5f95475793ee627cedf71d6a2f1d624b (diff) |
Fix deprecation warnings
Diffstat (limited to 'src/lib/pubkey/ec_group/ec_group.h')
-rw-r--r-- | src/lib/pubkey/ec_group/ec_group.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/pubkey/ec_group/ec_group.h b/src/lib/pubkey/ec_group/ec_group.h index f1a3f8fff..0e6b57b5a 100644 --- a/src/lib/pubkey/ec_group/ec_group.h +++ b/src/lib/pubkey/ec_group/ec_group.h @@ -112,7 +112,7 @@ class BOTAN_PUBLIC_API(2,0) EC_Group final * Return domain parameter curve * @result domain parameter curve */ - const CurveGFp& BOTAN_DEPRECATED("Avoid CurveGFp") get_curve() const; + BOTAN_DEPRECATED("Avoid CurveGFp") const CurveGFp& get_curve() const; /** * Return the size of p in bits (same as get_p().bits()) @@ -196,13 +196,7 @@ class BOTAN_PUBLIC_API(2,0) EC_Group final bool verify_group(RandomNumberGenerator& rng, bool strong = false) const; - bool operator==(const EC_Group& other) const - { - return ((get_curve() == other.get_curve()) && - (get_base_point() == other.get_base_point()) && - (get_order() == other.get_order()) && - (get_cofactor() == other.get_cofactor())); - } + bool operator==(const EC_Group& other) const; /** * Return PEM representation of named EC group |