aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-08 07:34:10 -0500
committerJack Lloyd <[email protected]>2018-02-13 07:48:56 -0500
commit2a9e0a9cd5aacdb74cb12e0faaa9f8f5342549c7 (patch)
tree6c20361c4febfc82fd5c14ada03aff41e1d57d48 /src
parentaf6b860d327e523503da694a7dca9316b6501e34 (diff)
Remove house curve support
Diffstat (limited to 'src')
-rw-r--r--src/build-data/buildh.in4
-rw-r--r--src/lib/asn1/oids.cpp10
-rw-r--r--src/lib/pubkey/ec_group/ec_named.cpp3
-rw-r--r--src/lib/tls/tls_algos.cpp5
-rw-r--r--src/lib/tls/tls_algos.h4
-rwxr-xr-xsrc/scripts/oids.py8
6 files changed, 0 insertions, 34 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in
index 9333cfb8a..8ddf85b2b 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -87,10 +87,6 @@
*/
%{local_config}
-%{for house_ecc_curve_defines}
-#define BOTAN_HOUSE_ECC_CURVE_%{i}
-%{endfor}
-
/*
* Things you can edit (but probably shouldn't)
*/
diff --git a/src/lib/asn1/oids.cpp b/src/lib/asn1/oids.cpp
index b9ba1f858..59ce08b35 100644
--- a/src/lib/asn1/oids.cpp
+++ b/src/lib/asn1/oids.cpp
@@ -44,11 +44,6 @@ class OID_Map
{
const std::string oid_str = oid.as_string();
-#if defined(BOTAN_HOUSE_ECC_CURVE_NAME)
- if(oid_str == BOTAN_HOUSE_ECC_CURVE_OID)
- return BOTAN_HOUSE_ECC_CURVE_NAME;
-#endif
-
lock_guard_type<mutex_type> lock(m_mutex);
auto i = m_oid2str.find(oid_str);
@@ -60,11 +55,6 @@ class OID_Map
OID lookup(const std::string& str)
{
-#if defined(BOTAN_HOUSE_ECC_CURVE_NAME)
- if(str == BOTAN_HOUSE_ECC_CURVE_NAME)
- return OID(BOTAN_HOUSE_ECC_CURVE_OID);
-#endif
-
lock_guard_type<mutex_type> lock(m_mutex);
auto i = m_str2oid.find(str);
if(i != m_str2oid.end())
diff --git a/src/lib/pubkey/ec_group/ec_named.cpp b/src/lib/pubkey/ec_group/ec_named.cpp
index cfab1fafd..ba91b5eaa 100644
--- a/src/lib/pubkey/ec_group/ec_named.cpp
+++ b/src/lib/pubkey/ec_group/ec_named.cpp
@@ -283,9 +283,6 @@ const std::set<std::string>& EC_Group::known_named_groups()
"gost_256A",
"frp256v1",
"sm2p256v1"
-#if defined(BOTAN_HOUSE_ECC_CURVE_NAME)
- ,BOTAN_HOUSE_ECC_CURVE_NAME
-#endif
};
return named_groups;
}
diff --git a/src/lib/tls/tls_algos.cpp b/src/lib/tls/tls_algos.cpp
index ce32963b7..db75bf14e 100644
--- a/src/lib/tls/tls_algos.cpp
+++ b/src/lib/tls/tls_algos.cpp
@@ -182,11 +182,6 @@ std::string group_param_to_string(Group_Params group)
case Group_Params::FFDHE_8192:
return "ffdhe/ietf/8192";
-#if defined(BOTAN_HOUSE_ECC_CURVE_NAME)
- case BOTAN_HOUSE_ECC_CURVE_TLS_ID:
- return BOTAN_HOUSE_ECC_CURVE_NAME;
-#endif
-
default:
return "";
}
diff --git a/src/lib/tls/tls_algos.h b/src/lib/tls/tls_algos.h
index 9ad1a7a85..e0b2dabc2 100644
--- a/src/lib/tls/tls_algos.h
+++ b/src/lib/tls/tls_algos.h
@@ -134,10 +134,6 @@ enum class Group_Params : uint16_t {
FFDHE_4096 = 258,
FFDHE_6144 = 259,
FFDHE_8192 = 260,
-
-#if defined(BOTAN_HOUSE_ECC_CURVE_NAME)
- HOUSE_CURVE = BOTAN_HOUSE_ECC_CURVE_TLS_ID,
-#endif
};
std::string group_param_to_string(Group_Params group);
diff --git a/src/scripts/oids.py b/src/scripts/oids.py
index 61a31a6f6..8b9d8ba3e 100755
--- a/src/scripts/oids.py
+++ b/src/scripts/oids.py
@@ -107,10 +107,6 @@ std::string lookup(const OID& oid)
const std::string oid_str = oid.as_string();
%s
-#if defined(BOTAN_HOUSE_ECC_CURVE_NAME)
- if(oid_str == BOTAN_HOUSE_ECC_CURVE_OID) return BOTAN_HOUSE_ECC_CURVE_NAME;
-#endif
-
return std::string();
}
@@ -118,10 +114,6 @@ OID lookup(const std::string& name)
{
%s
-#if defined(BOTAN_HOUSE_ECC_CURVE_NAME)
- if(name == BOTAN_HOUSE_ECC_CURVE_NAME) return OID(BOTAN_HOUSE_ECC_CURVE_OID);
-#endif
-
return OID();
}