… | |
… | |
960 | crypto_ctx *cctx = new crypto_ctx (chg, 0); |
960 | crypto_ctx *cctx = new crypto_ctx (chg, 0); |
961 | |
961 | |
962 | if (!p->hmac_chk (cctx)) |
962 | if (!p->hmac_chk (cctx)) |
963 | { |
963 | { |
964 | slog (L_ERR, _("%s(%s): hmac authentication error on auth response, received invalid packet\n" |
964 | slog (L_ERR, _("%s(%s): hmac authentication error on auth response, received invalid packet\n" |
965 | "could be an attack, or just corruption or an synchronization error"), |
965 | "could be an attack, or just corruption or a synchronization error"), |
966 | conf->nodename, (const char *)rsi); |
966 | conf->nodename, (const char *)rsi); |
967 | break; |
967 | break; |
968 | } |
968 | } |
969 | else |
969 | else |
970 | { |
970 | { |
… | |
… | |
1019 | { |
1019 | { |
1020 | vpndata_packet *p = (vpndata_packet *)pkt; |
1020 | vpndata_packet *p = (vpndata_packet *)pkt; |
1021 | |
1021 | |
1022 | if (!p->hmac_chk (ictx)) |
1022 | if (!p->hmac_chk (ictx)) |
1023 | slog (L_ERR, _("%s(%s): hmac authentication error, received invalid packet\n" |
1023 | slog (L_ERR, _("%s(%s): hmac authentication error, received invalid packet\n" |
1024 | "could be an attack, or just corruption or an synchronization error"), |
1024 | "could be an attack, or just corruption or a synchronization error"), |
1025 | conf->nodename, (const char *)rsi); |
1025 | conf->nodename, (const char *)rsi); |
1026 | else |
1026 | else |
1027 | { |
1027 | { |
1028 | u32 seqno; |
1028 | u32 seqno; |
1029 | tap_packet *d = p->unpack (this, seqno); |
1029 | tap_packet *d = p->unpack (this, seqno); |