diff options
author | René Korthaus <[email protected]> | 2016-11-03 19:15:12 +0100 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-11-03 20:46:42 +0100 |
commit | b08d02df85ebd358af442c36a86589b3ba131d58 (patch) | |
tree | 10b83d5f82ab802e231b1e24d4a00a74a77af831 /src/lib/pubkey/ec_group | |
parent | f61363dea7be957e07c13aa6a4d7da7e1f57d914 (diff) |
Add an in-house EC curve for TLS at compile-time
One additional, application-specific curve can be added
at compile time, using the new
configure.py --house-curve=curve.pem,funky311,1.2.3.4,FEFF.
Diffstat (limited to 'src/lib/pubkey/ec_group')
-rw-r--r-- | src/lib/pubkey/ec_group/named.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/pubkey/ec_group/named.cpp b/src/lib/pubkey/ec_group/named.cpp index 6df8a3169..c19b8ed37 100644 --- a/src/lib/pubkey/ec_group/named.cpp +++ b/src/lib/pubkey/ec_group/named.cpp @@ -265,6 +265,11 @@ const char* EC_Group::PEM_for_named_group(const std::string& name) "8f0XjAs61Y8QEm3ozkJDW1PcZ+FA0r+UH/3UWcbWVeECAQE=" "-----END EC PARAMETERS-----"; +#if defined(BOTAN_HOUSE_ECC_CURVE_NAME) + if(name == BOTAN_HOUSE_ECC_CURVE_NAME) + return BOTAN_HOUSE_ECC_CURVE_PEM; +#endif + return nullptr; } |