diff options
author | Jack Lloyd <[email protected]> | 2017-11-13 11:43:28 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-11-13 11:43:28 -0500 |
commit | fb6398a9ab002d2c21ea1aaeb31d3b8992951904 (patch) | |
tree | a2e2d400ac4139d97796f36694e77dd91d257f47 | |
parent | 473d228381452e4721aa718ee8f5f2627fa28f25 (diff) |
Remove final on TLS policy objects (GH #1292)
-rw-r--r-- | news.rst | 7 | ||||
-rw-r--r-- | src/lib/tls/tls_policy.h | 8 |
2 files changed, 11 insertions, 4 deletions
@@ -78,6 +78,13 @@ Version 2.4.0, Not Yet Released could be used was by manually constructing a ``CTR_BE`` object and setting the second parameter to something in the range of 1 to 3. +* In 2.3.0, final annotations were added to many classes including the TLS + policies (like ``Strict_Policy`` and ``BSI_TR_02102_2``). However it is + reasonable and useful for an application to derive from one of these policies, so + as to create an application specific policy that is based on a library-provided + policy, but with a few tweaks. So the final annotations have been removed on + these classes. (GH #1292) + * Add an OID for RIPEMD-160 * Fixes for CMake build (GH #1251) diff --git a/src/lib/tls/tls_policy.h b/src/lib/tls/tls_policy.h index 499ae91ba..db2cbb3bb 100644 --- a/src/lib/tls/tls_policy.h +++ b/src/lib/tls/tls_policy.h @@ -326,7 +326,7 @@ class BOTAN_PUBLIC_API(2,0) Policy /** * NSA Suite B 128-bit security level (RFC 6460) */ -class BOTAN_PUBLIC_API(2,0) NSA_Suite_B_128 final : public Policy +class BOTAN_PUBLIC_API(2,0) NSA_Suite_B_128 : public Policy { public: std::vector<std::string> allowed_ciphers() const override @@ -362,7 +362,7 @@ class BOTAN_PUBLIC_API(2,0) NSA_Suite_B_128 final : public Policy /** * BSI TR-02102-2 Policy */ -class BOTAN_PUBLIC_API(2,0) BSI_TR_02102_2 final : public Policy +class BOTAN_PUBLIC_API(2,0) BSI_TR_02102_2 : public Policy { public: std::vector<std::string> allowed_ciphers() const override @@ -423,7 +423,7 @@ class BOTAN_PUBLIC_API(2,0) BSI_TR_02102_2 final : public Policy /** * Policy for DTLS. We require DTLS v1.2 and an AEAD mode. */ -class BOTAN_PUBLIC_API(2,0) Datagram_Policy final : public Policy +class BOTAN_PUBLIC_API(2,0) Datagram_Policy : public Policy { public: std::vector<std::string> allowed_macs() const override @@ -443,7 +443,7 @@ class BOTAN_PUBLIC_API(2,0) Datagram_Policy final : public Policy * to use if you control both sides of the protocol and don't have to worry * about ancient and/or bizarre TLS implementations. */ -class BOTAN_PUBLIC_API(2,0) Strict_Policy final : public Policy +class BOTAN_PUBLIC_API(2,0) Strict_Policy : public Policy { public: std::vector<std::string> allowed_ciphers() const override; |