mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 09:29:52 +03:00
Encrypt.c: add warning for when EVP_get_cipherbyname() fails
This commit is contained in:
parent
3e733eac6f
commit
9bac21b52e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user