]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
add function to turn unlang ok / fail to reply packet code
authorAlan T. DeKok <aland@freeradius.org>
Fri, 29 May 2020 16:31:39 +0000 (12:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 29 May 2020 16:49:31 +0000 (12:49 -0400)
commit4dd341496b70b14fe8ab8c69bd3b152066ee7538
tree4852af73bd930f98121da168cc9f2b2ea2ea0a89
parent91780d1612fa18021c15fccb31041708e32fec04
add function to turn unlang ok / fail to reply packet code

in reality, this function just gets asked ok / fail as a bool, and
returns the appropriate packet code.

This is for use only by unit_test_module.  That program runs
unlang, and then needs to set the correct reply packet type.
This reply packet type depends both on the request packet type,
and on the unlang status ok / fail.

In order to make unit_test_module protocol agnostic, we export
a function in the RADIUS library to help it out.
src/protocols/radius/base.c
src/protocols/radius/radius.h