diff options
author | René Korthaus <[email protected]> | 2016-09-28 13:06:36 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-10-03 12:18:24 +0200 |
commit | f38841305ecd3fd0d13285823497a5a9d3b5c19f (patch) | |
tree | d01a3263baa7df488cf58fc997d1c9710dbfb0a4 /src/lib/tls/tls_policy.h | |
parent | ab2842d6f28680b1cac18d5ff6b70b395d1ffb65 (diff) |
Support encoding of supported point formats extension
Diffstat (limited to 'src/lib/tls/tls_policy.h')
-rw-r--r-- | src/lib/tls/tls_policy.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/tls/tls_policy.h b/src/lib/tls/tls_policy.h index 76e80ddde..47ac51685 100644 --- a/src/lib/tls/tls_policy.h +++ b/src/lib/tls/tls_policy.h @@ -67,6 +67,11 @@ class BOTAN_DLL Policy bool allowed_ecc_curve(const std::string& curve) const; /** + * Request that ECC curve points are sent compressed + */ + virtual bool use_ecc_point_compression() const; + + /** * Returns a list of compression algorithms we are willing to use, * in order of preference. Allowed values any value of * Compression_Method. @@ -348,6 +353,9 @@ class BOTAN_DLL Text_Policy : public Policy std::vector<std::string> allowed_ecc_curves() const override { return get_list("ecc_curves", Policy::allowed_ecc_curves()); } + bool use_ecc_point_compression() const override + { return get_bool("use_ecc_point_compression", Policy::use_ecc_point_compression()); } + bool allow_tls10() const override { return get_bool("allow_tls10", Policy::allow_tls10()); } |