diff options
author | Jack Lloyd <[email protected]> | 2016-11-04 13:49:42 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-04 13:49:42 -0400 |
commit | 5dd1da28a40e7f2d2897a5258f008fba6481a5c7 (patch) | |
tree | 2268bc1b05add5a8cee09f362a3580e24b0f92d1 /src/lib/pubkey | |
parent | df3eef3a9faa16cb91a330a4b48c7829d8cb845d (diff) | |
parent | 946ac84930edecd917d4b99896ad4448e629b1f0 (diff) |
Merge GH #710 Allow custom EC curve to be specified at build time
Diffstat (limited to 'src/lib/pubkey')
-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; } |