1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 09:39:52 +03:00

Encrypt.c: add warning for when EVP_get_cipherbyname() fails

This commit is contained in:
Davide Beatrici 2018-08-12 01:09:10 +02:00
parent 3e733eac6f
commit 9bac21b52e

View File

@ -513,6 +513,7 @@ CIPHER *NewCipher(char *name)
c->Cipher = EVP_get_cipherbyname(c->Name);
if (c->Cipher == NULL)
{
Debug("NewCipher(): Cipher %s not found by EVP_get_cipherbyname().\n", c->Name);
FreeCipher(c);
return NULL;
}