mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-10 01:34:58 +03:00
Interop_OpenVPN: remove lists of supported encryption and hash algorithms
They are not required as OvsGetCipher() checks if the cipher is available and fallbacks to the default one in case it's not.
This commit is contained in:
@ -953,7 +953,7 @@ CIPHER *OvsGetCipher(char *name)
|
||||
{
|
||||
CIPHER *c = NULL;
|
||||
|
||||
if (IsEmptyStr(name) == false && IsStrInStrTokenList(OPENVPN_CIPHER_LIST, name, NULL, false))
|
||||
if (IsEmptyStr(name) == false)
|
||||
{
|
||||
c = NewCipher(name);
|
||||
}
|
||||
@ -971,7 +971,7 @@ MD *OvsGetMd(char *name)
|
||||
{
|
||||
MD *m = NULL;
|
||||
|
||||
if (IsEmptyStr(name) == false && IsStrInStrTokenList(OPENVPN_MD_LIST, name, NULL, false))
|
||||
if (IsEmptyStr(name) == false)
|
||||
{
|
||||
m = NewMd(name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user