mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 01:59:53 +03:00
Allow ECDSA certificates on server side
This commit is contained in:
parent
03859eb515
commit
2853337b81
@ -7777,11 +7777,6 @@ UINT StAddCa(ADMIN *a, RPC_HUB_ADD_CA *t)
|
||||
return ERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if (t->Cert->is_compatible_bit == false)
|
||||
{
|
||||
return ERR_NOT_RSA_1024;
|
||||
}
|
||||
|
||||
CHECK_RIGHT;
|
||||
|
||||
LockHubList(c);
|
||||
@ -9446,11 +9441,6 @@ UINT StSetServerCert(ADMIN *a, RPC_KEY_PAIR *t)
|
||||
return ERR_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if (t->Cert->is_compatible_bit == false)
|
||||
{
|
||||
return ERR_NOT_RSA_1024;
|
||||
}
|
||||
|
||||
if (CheckXandK(t->Cert, t->Key) == false)
|
||||
{
|
||||
return ERR_PROTOCOL_ERROR;
|
||||
|
@ -7109,14 +7109,6 @@ bool CtSetAccount(CLIENT *c, RPC_CLIENT_CREATE_ACCOUNT *a, bool inner)
|
||||
}
|
||||
}
|
||||
|
||||
if (a->ServerCert != NULL && a->ServerCert->is_compatible_bit == false)
|
||||
{
|
||||
// Server certificate is invalid
|
||||
UnlockList(c->AccountList);
|
||||
CiSetError(c, ERR_NOT_RSA_1024);
|
||||
return false;
|
||||
}
|
||||
|
||||
Lock(ret->lock);
|
||||
{
|
||||
|
||||
@ -7236,14 +7228,6 @@ bool CtCreateAccount(CLIENT *c, RPC_CLIENT_CREATE_ACCOUNT *a, bool inner)
|
||||
}
|
||||
}
|
||||
|
||||
if (a->ServerCert != NULL && a->ServerCert->is_compatible_bit == false)
|
||||
{
|
||||
// The server certificate is invalid
|
||||
UnlockList(c->AccountList);
|
||||
CiSetError(c, ERR_NOT_RSA_1024);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Add a new account
|
||||
new_account = ZeroMalloc(sizeof(ACCOUNT));
|
||||
new_account->lock = NewLock();
|
||||
@ -8536,12 +8520,6 @@ bool CtAddCa(CLIENT *c, RPC_CERT *cert)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (cert->x->is_compatible_bit == false)
|
||||
{
|
||||
CiSetError(c, ERR_NOT_RSA_1024);
|
||||
return false;
|
||||
}
|
||||
|
||||
AddCa(c->Cedar, cert->x);
|
||||
|
||||
CiSaveConfigurationFile(c);
|
||||
|
Loading…
Reference in New Issue
Block a user