mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-10 01:34:58 +03:00
src/Cedar/IPsec_PPP: remove dead code, unused fuction
found by coverity, cppcheck [src/Cedar/IPsec_PPP.c:2655]: (style) The function 'MsChapV2Client_GenerateChallenge' is never used.
This commit is contained in:
@ -2312,10 +2312,6 @@ PPP_LCP *ParseLCP(USHORT protocol, void *data, UINT size)
|
||||
c->OptionList = NewListFast(NULL);
|
||||
|
||||
// Code
|
||||
if (size < 1)
|
||||
{
|
||||
goto LABEL_ERROR;
|
||||
}
|
||||
c->Code = buf[0];
|
||||
buf++;
|
||||
size--;
|
||||
@ -2655,18 +2651,6 @@ void MsChapV2Server_GenerateChallenge(UCHAR *dst)
|
||||
Rand(dst, 16);
|
||||
}
|
||||
|
||||
// Generate the MS-CHAPv2 client-side challenge
|
||||
void MsChapV2Client_GenerateChallenge(UCHAR *dst)
|
||||
{
|
||||
// Validate arguments
|
||||
if (dst == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Rand(dst, 16);
|
||||
}
|
||||
|
||||
// Generate a 8 bytes challenge
|
||||
void MsChapV2_GenerateChallenge8(UCHAR *dst, UCHAR *client_challenge, UCHAR *server_challenge, char *username)
|
||||
{
|
||||
|
Reference in New Issue
Block a user