mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +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);
|
c->Cipher = EVP_get_cipherbyname(c->Name);
|
||||||
if (c->Cipher == NULL)
|
if (c->Cipher == NULL)
|
||||||
{
|
{
|
||||||
|
Debug("NewCipher(): Cipher %s not found by EVP_get_cipherbyname().\n", c->Name);
|
||||||
FreeCipher(c);
|
FreeCipher(c);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user