Drop support for redundant EC curves

This commit is contained in:
Davide De Rosa 2018-08-23 17:14:12 +02:00
parent 8c3c7b614c
commit 6a71ada1c8
1 changed files with 1 additions and 4 deletions

View File

@ -106,8 +106,6 @@ int TLSBoxVerifyPeer(int ok, X509_STORE_CTX *ctx) {
- (BOOL)startWithError:(NSError *__autoreleasing *)error - (BOOL)startWithError:(NSError *__autoreleasing *)error
{ {
if (!TLSBoxIsOpenSSLLoaded) { if (!TLSBoxIsOpenSSLLoaded) {
// OPENSSL_init_ssl(0, NULL);
TLSBoxIsOpenSSLLoaded = YES; TLSBoxIsOpenSSLLoaded = YES;
} }
@ -126,7 +124,6 @@ int TLSBoxVerifyPeer(int ok, X509_STORE_CTX *ctx) {
else { else {
SSL_CTX_set_verify(self.ctx, SSL_VERIFY_NONE, NULL); SSL_CTX_set_verify(self.ctx, SSL_VERIFY_NONE, NULL);
} }
SSL_CTX_set1_curves_list(self.ctx, "X25519:prime256v1:secp521r1:secp384r1:secp256k1");
self.ssl = SSL_new(self.ctx); self.ssl = SSL_new(self.ctx);