mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 07:44:57 +03:00
remove unused functions (identified by cppcheck)
[src/Cedar/Account.c:854]: (style) The function 'AddGroupTraffic' is never used. [src/Mayaqua/Secure.c:1455]: (style) The function 'AddSecObjToEnumCache' is never used. [src/Mayaqua/Network.c:18445]: (style) The function 'AddSockList' is never used. [src/Cedar/Account.c:870]: (style) The function 'AddUserTraffic' is never used. [src/Cedar/Server.c:1045]: (style) The function 'AdjoinEnumLogFile' is never used. [src/Cedar/Admin.c:13780]: (style) The function 'AdminConnect' is never used. [src/Mayaqua/Encrypt.c:855]: (style) The function 'BigNumToStr' is never used. [src/Mayaqua/Str.c:2113]: (style) The function 'Bit128ToStr' is never used. [src/Mayaqua/Encrypt.c:898]: (style) The function 'BufToBigNum' is never used. [src/Mayaqua/Internat.c:1874]: (style) The function 'CalcStrToUtf8' is never used. [src/Cedar/Hub.c:6689]: (style) The function 'CalcTrafficDiff' is never used. [src/Mayaqua/Internat.c:1819]: (style) The function 'CalcUtf8ToStr' is never used. [src/Mayaqua/Network.c:6495]: (style) The function 'CanGetTcpProcessId' is never used. [src/Cedar/WinUi.c:7226]: (style) The function 'CbInsertStrA' is never used. [src/Cedar/Client.c:3035]: (style) The function 'CcEnumObjectInSecure' is never used. [src/Cedar/Client.c:2826]: (style) The function 'CcGetCommonProxySetting' is never used. [src/Cedar/Client.c:2857]: (style) The function 'CcSetCommonProxySetting' is never used. [src/Cedar/Cedar.c:575]: (style) The function 'CedarLog' is never used. [src/Cedar/WinUi.c:9841]: (style) The function 'Center2' is never used. [src/Mayaqua/Encrypt.c:814]: (style) The function 'CertTest' is never used. [src/Mayaqua/Encrypt.c:809]: (style) The function 'CertTest2' is never used. [src/Mayaqua/Encrypt.c:819]: (style) The function 'CertTest_' is never used. [src/Mayaqua/Cfg.c:1705]: (style) The function 'CfgIsFolder' is never used.
This commit is contained in:
committed by
Moataz Elmasry
parent
56c4582da8
commit
79c06146a4
@ -805,21 +805,6 @@ UINT RsaPublicSize(K *k)
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Stupid test
|
||||
void CertTest2()
|
||||
{
|
||||
}
|
||||
|
||||
// Yagi test
|
||||
void CertTest()
|
||||
{
|
||||
}
|
||||
|
||||
// Test function related to certificate
|
||||
void CertTest_()
|
||||
{
|
||||
}
|
||||
|
||||
// Hash a pointer to a 32-bit
|
||||
UINT HashPtrToUINT(void *p)
|
||||
{
|
||||
@ -851,33 +836,6 @@ NAME *CopyName(NAME *n)
|
||||
n->Country, n->State, n->Local);
|
||||
}
|
||||
|
||||
// Convert a BIGNUM to a string
|
||||
char *BigNumToStr(BIGNUM *bn)
|
||||
{
|
||||
BIO *bio;
|
||||
BUF *b;
|
||||
char *ret;
|
||||
// Validate arguments
|
||||
if (bn == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bio = NewBio();
|
||||
|
||||
BN_print(bio, bn);
|
||||
|
||||
b = BioToBuf(bio);
|
||||
|
||||
FreeBio(bio);
|
||||
|
||||
ret = ZeroMalloc(b->Size + 1);
|
||||
Copy(ret, b->Buf, b->Size);
|
||||
FreeBuf(b);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Convert the binary to the BIGNUM
|
||||
BIGNUM *BinToBigNum(void *data, UINT size)
|
||||
{
|
||||
@ -894,17 +852,6 @@ BIGNUM *BinToBigNum(void *data, UINT size)
|
||||
return bn;
|
||||
}
|
||||
|
||||
// Convert the buffer to a BIGNUM
|
||||
BIGNUM *BufToBigNum(BUF *b)
|
||||
{
|
||||
if (b == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return BinToBigNum(b->Buf, b->Size);
|
||||
}
|
||||
|
||||
// Convert a BIGNUM to a buffer
|
||||
BUF *BigNumToBuf(const BIGNUM *bn)
|
||||
{
|
||||
|
Reference in New Issue
Block a user