Skip to content

Commit

Permalink
Enforce Message-Authenticator for Access-* packets
Browse files Browse the repository at this point in the history
  • Loading branch information
jrisc committed Oct 8, 2024
1 parent 042c6c5 commit e95b290
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/krad/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,8 @@ krad_packet_decode_request(krb5_context ctx, const char *secret,
retval = verify_msgauth(secret, *reqpkt, pkt_auth(*reqpkt));
if (retval)
return retval;
} else if (requires_msgauth(secret, pkt_code_get(*reqpkt))) {
return ENODATA;
}

if (cb != NULL) {
Expand Down Expand Up @@ -619,6 +621,8 @@ krad_packet_decode_response(krb5_context ctx, const char *secret,
retval = verify_msgauth(secret, rsp, pkt_auth(req));
if (retval != 0)
continue;
} else if (requires_msgauth(secret, pkt_code_get(rsp))) {
continue;
}

break;
Expand Down

0 comments on commit e95b290

Please sign in to comment.