crypto: drop support for GnuTLS < 3.3

This commit is contained in:
Adrien Béraud committed 2016-09-06 17:18:16 -04:00
1 parent 48735aad94
commit 76fd216386
5 files changed
+5 -49

No files matched your search

+1 -11
View File
@@ -50,12 +50,6 @@ SecureDht::SecureDht(int s, int s6, SecureDht::Config conf)
if (s < 0 && s6 < 0)
return;
#if GNUTLS_VERSION_NUMBER < 0x030300
int rc = gnutls_global_init();
if (rc != GNUTLS_E_SUCCESS)
throw DhtException(std::string("Error initializing GnuTLS: ")+gnutls_strerror(rc));
#endif
for (const auto& type : DEFAULT_TYPES)
registerType(type);
@@ -81,11 +75,7 @@ SecureDht::SecureDht(int s, int s6, SecureDht::Config conf)
}
SecureDht::~SecureDht()
{
#if GNUTLS_VERSION_NUMBER < 0x030300
gnutls_global_deinit();
#endif
}
{}
ValueType
SecureDht::secureType(ValueType&& type)