mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 21:37:18 +01:00
commit
116bf0f8df
11
famtool.cpp
11
famtool.cpp
|
@ -56,11 +56,7 @@ static std::shared_ptr<Verifier> LoadCertificate (const std::string& filename)
|
||||||
if (family) family[0] = 0;
|
if (family) family[0] = 0;
|
||||||
}
|
}
|
||||||
auto pkey = X509_get_pubkey (cert);
|
auto pkey = X509_get_pubkey (cert);
|
||||||
int keyType = EVP_PKEY_type(pkey->type);
|
|
||||||
switch (keyType)
|
|
||||||
{
|
|
||||||
case EVP_PKEY_EC:
|
|
||||||
{
|
|
||||||
EC_KEY * ecKey = EVP_PKEY_get1_EC_KEY (pkey);
|
EC_KEY * ecKey = EVP_PKEY_get1_EC_KEY (pkey);
|
||||||
if (ecKey)
|
if (ecKey)
|
||||||
{
|
{
|
||||||
|
@ -82,11 +78,6 @@ static std::shared_ptr<Verifier> LoadCertificate (const std::string& filename)
|
||||||
}
|
}
|
||||||
EC_KEY_free (ecKey);
|
EC_KEY_free (ecKey);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
EVP_PKEY_free (pkey);
|
EVP_PKEY_free (pkey);
|
||||||
}
|
}
|
||||||
SSL_free (ssl);
|
SSL_free (ssl);
|
||||||
|
|
2
i2pd
2
i2pd
|
@ -1 +1 @@
|
||||||
Subproject commit 0b560fdd27da1a6a8582a013b4d975a3c07e46d0
|
Subproject commit df304fb38b07790dc42bb8f73262fa8a3b7111d0
|
Loading…
Reference in a new issue