mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge PR #659: resolve cosmetic coverity issues
This commit is contained in:
commit
0d966755d7
@ -240,7 +240,7 @@ UINT EcConnect(char *host, UINT port, char *password, RPC **rpc)
|
||||
|
||||
// Receive the random number
|
||||
Zero(rand, sizeof(rand));
|
||||
RecvAll(s, rand, sizeof(rand), false);
|
||||
(void)RecvAll(s, rand, sizeof(rand), false);
|
||||
SecurePassword(response, password_hash, rand);
|
||||
|
||||
// Send a response
|
||||
@ -324,7 +324,6 @@ DECLARE_SC("GetDevice", RPC_ADD_DEVICE, EcGetDevice, InRpcAddDevice, OutRpcAddDe
|
||||
DECLARE_SC_EX("EnumDevice", RPC_ENUM_DEVICE, EcEnumDevice, InRpcEnumDevice, OutRpcEnumDevice, FreeRpcEnumDevice)
|
||||
DECLARE_SC("SetPassword", RPC_SET_PASSWORD, EcSetPassword, InRpcSetPassword, OutRpcSetPassword)
|
||||
DECLARE_SC_EX("EnumAllDevice", RPC_ENUM_DEVICE, EcEnumAllDevice, InRpcEnumDevice, OutRpcEnumDevice, FreeRpcEnumDevice)
|
||||
DECLARE_SC("AddLicenseKey", RPC_TEST, EcAddLicenseKey, InRpcTest, OutRpcTest)
|
||||
DECLARE_SC("DelLicenseKey", RPC_TEST, EcDelLicenseKey, InRpcTest, OutRpcTest)
|
||||
DECLARE_SC_EX("EnumLicenseKey", RPC_ENUM_LICENSE_KEY, EcEnumLicenseKey, InRpcEnumLicenseKey, OutRpcEnumLicenseKey, FreeRpcEnumLicenseKey)
|
||||
DECLARE_SC("GetLicenseStatus", RPC_EL_LICENSE_STATUS, EcGetLicenseStatus, InRpcElLicenseStatus, OutRpcElLicenseStatus)
|
||||
@ -381,11 +380,6 @@ UINT EtGetBridgeSupport(EL *a, RPC_BRIDGE_SUPPORT *t)
|
||||
return ERR_NO_ERROR;
|
||||
}
|
||||
|
||||
// Update the status by checking the all licenses
|
||||
void ElCheckLicense(EL_LICENSE_STATUS *st, LICENSE *e)
|
||||
{
|
||||
}
|
||||
|
||||
// Save by analyzing the status of the current license
|
||||
void ElParseCurrentLicenseStatus(LICENSE_SYSTEM *s, EL_LICENSE_STATUS *st)
|
||||
{
|
||||
@ -755,7 +749,7 @@ void ElListenerProc(THREAD *thread, void *param)
|
||||
// Receive a response
|
||||
SecurePassword(pass1, e->HashedPassword, rand);
|
||||
Zero(pass2, sizeof(pass2));
|
||||
RecvAll(s, pass2, sizeof(pass2), false);
|
||||
(void)RecvAll(s, pass2, sizeof(pass2), false);
|
||||
|
||||
if (Cmp(pass1, pass2, SHA1_SIZE) != 0)
|
||||
{
|
||||
|
@ -225,7 +225,6 @@ void ElStartListener(EL *e);
|
||||
void ElStopListener(EL *e);
|
||||
void ElListenerProc(THREAD *thread, void *param);
|
||||
PACK *ElRpcServer(RPC *r, char *name, PACK *p);
|
||||
void ElCheckLicense(EL_LICENSE_STATUS *st, LICENSE *e);
|
||||
void ElParseCurrentLicenseStatus(LICENSE_SYSTEM *s, EL_LICENSE_STATUS *st);
|
||||
bool ElIsBetaExpired();
|
||||
|
||||
@ -251,7 +250,6 @@ UINT EcGetDevice(RPC *r, RPC_ADD_DEVICE *t);
|
||||
UINT EcEnumDevice(RPC *r, RPC_ENUM_DEVICE *t);
|
||||
UINT EcEnumAllDevice(RPC *r, RPC_ENUM_DEVICE *t);
|
||||
UINT EcSetPassword(RPC *r, RPC_SET_PASSWORD *t);
|
||||
UINT EcAddLicenseKey(RPC *r, RPC_TEST *t);
|
||||
UINT EcDelLicenseKey(RPC *r, RPC_TEST *t);
|
||||
UINT EcEnumLicenseKey(RPC *r, RPC_ENUM_LICENSE_KEY *t);
|
||||
UINT EcGetLicenseStatus(RPC *r, RPC_EL_LICENSE_STATUS *t);
|
||||
|
Loading…
Reference in New Issue
Block a user