Compare commits

..

No commits in common. "702ed1ec72a8e6932ba35f4992b2b77eb5a84daa" and "2b13f59f6a2db5ccacc4205a379c2cb53cc47e16" have entirely different histories.

View file

@ -4715,7 +4715,6 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
{
if (n <= sizeof(authresp))
{
memset(authresp, 0, sizeof(authresp));
memcpy(authresp, b, n);
authrespn = n;
LOG(4, s, t, " Proxy Auth Response\n");
@ -8620,10 +8619,6 @@ static void unhide_value(uint8_t *value, size_t len, uint16_t type, uint8_t *vec
size_t d = 0;
uint16_t m = htons(type);
// remember first block
uint8_t firstcipher[16];
memcpy(firstcipher, value, 16);
// Compute initial pad
MD5_Init(&ctx);
MD5_Update(&ctx, (unsigned char *) &m, 2);
@ -8641,7 +8636,7 @@ static void unhide_value(uint8_t *value, size_t len, uint16_t type, uint8_t *vec
{
MD5_Init(&ctx);
MD5_Update(&ctx, config->l2tp_secret, strlen(config->l2tp_secret));
MD5_Update(&ctx, firstcipher, sizeof(digest));
MD5_Update(&ctx, last, sizeof(digest));
MD5_Final(digest, &ctx);
d = 0;