]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Tue, 4 Jan 2022 02:14:18 +0000 (20:14 -0600)]
Just use WITH_TLS....
Arran Cudbard-Bell [Tue, 4 Jan 2022 02:10:30 +0000 (20:10 -0600)]
Use the EVP RC4 functions
Arran Cudbard-Bell [Tue, 4 Jan 2022 02:08:55 +0000 (20:08 -0600)]
Ensure openssl user macros are always defined
This causes deprecated functions to trigger fatal errors when building under macos
Alan T. DeKok [Tue, 4 Jan 2022 00:25:15 +0000 (19:25 -0500)]
initialize packet_ctx.end
Alan T. DeKok [Tue, 4 Jan 2022 00:25:07 +0000 (19:25 -0500)]
remove assert
Arran Cudbard-Bell [Mon, 3 Jan 2022 21:56:45 +0000 (15:56 -0600)]
Fix version function calls in dependency.c
Alan T. DeKok [Mon, 3 Jan 2022 21:09:21 +0000 (16:09 -0500)]
don't pass packet_len to fr_radius_decode_pair_value()
which makes its function signature match the other decode functions
Alan T. DeKok [Mon, 3 Jan 2022 21:02:46 +0000 (16:02 -0500)]
clean up the providers on exit
Alan T. DeKok [Mon, 3 Jan 2022 19:20:34 +0000 (14:20 -0500)]
protocol-specific extensions are variable sized
and use a protocol-specific structure, which can't be shared
across multiple protocols
Alan T. DeKok [Tue, 28 Dec 2021 19:22:13 +0000 (14:22 -0500)]
rearrange and remove unused code
Alan T. DeKok [Tue, 28 Dec 2021 19:11:15 +0000 (14:11 -0500)]
headers to help with protocol encoding / decoding
Alan T. DeKok [Tue, 28 Dec 2021 19:07:34 +0000 (14:07 -0500)]
update documentation
Arran Cudbard-Bell [Mon, 3 Jan 2022 21:24:30 +0000 (15:24 -0600)]
Swap ERR_get_error_line_data for ERR_get_error_all
Arran Cudbard-Bell [Mon, 3 Jan 2022 21:23:50 +0000 (15:23 -0600)]
Set OpenSSL API compat macros centrally
Arran Cudbard-Bell [Mon, 3 Jan 2022 21:23:15 +0000 (15:23 -0600)]
Apparently has no effect...
Arran Cudbard-Bell [Mon, 3 Jan 2022 21:22:57 +0000 (15:22 -0600)]
We use OPENSSL_VERSION_NUMBER everywhere else...
Arran Cudbard-Bell [Mon, 3 Jan 2022 20:18:50 +0000 (14:18 -0600)]
Fix calls to PEM_read_bio_DHparams for OpenSSL 3.0.0
Arran Cudbard-Bell [Mon, 3 Jan 2022 19:50:32 +0000 (13:50 -0600)]
more ltb-project key references
Arran Cudbard-Bell [Mon, 3 Jan 2022 19:42:50 +0000 (13:42 -0600)]
New LTB GPG key url
Arran Cudbard-Bell [Mon, 3 Jan 2022 19:34:22 +0000 (13:34 -0600)]
2022
Arran Cudbard-Bell [Thu, 23 Dec 2021 03:26:38 +0000 (21:26 -0600)]
Don't need this in 1.1.1
Arran Cudbard-Bell [Thu, 23 Dec 2021 03:21:08 +0000 (21:21 -0600)]
Stupid hack still needed in 3.0.1
Arran Cudbard-Bell [Thu, 23 Dec 2021 02:30:42 +0000 (20:30 -0600)]
Yes, OpenSSL now wants the size of the buffer passed into EVP_DigestSignFinal
Arran Cudbard-Bell [Thu, 23 Dec 2021 01:46:43 +0000 (19:46 -0600)]
maybe OpenSSL 3.0.1 started caring about the output buffer length?
Arran Cudbard-Bell [Thu, 23 Dec 2021 01:34:42 +0000 (19:34 -0600)]
Revert "CI: Pass in -Wno-error=deprecated-declarations to LIB_ALT build for now"
This reverts commit
78f814cc8f99ca69f74a6886ec327bd067fa7415 .
Terry Burton [Wed, 22 Dec 2021 17:05:21 +0000 (17:05 +0000)]
CI: Pass in -Wno-error=deprecated-declarations to LIB_ALT build for now
Should be reverted once port to OpenSSL 3 API is complete.
Terry Burton [Wed, 22 Dec 2021 13:03:49 +0000 (13:03 +0000)]
CI: Use OpenSSL 3.0.1 in LIBS_ALT build
Alan T. DeKok [Wed, 22 Dec 2021 17:22:08 +0000 (12:22 -0500)]
let's return the correct value
Alan T. DeKok [Wed, 22 Dec 2021 16:06:44 +0000 (11:06 -0500)]
fix decode_tlvs()
so that it doesn't return partial decoding when one of the
internal TLVs fails to decode
Alan T. DeKok [Wed, 22 Dec 2021 15:51:30 +0000 (10:51 -0500)]
if the option is invalid, return a raw option
so that the caller does not have to do this work
Alan T. DeKok [Wed, 22 Dec 2021 15:50:45 +0000 (10:50 -0500)]
unify two functions, so there's less code
and add assertion. We cannot create raw "root" attributes.
Alan T. DeKok [Wed, 22 Dec 2021 14:31:59 +0000 (09:31 -0500)]
typo
Alan T. DeKok [Tue, 21 Dec 2021 21:48:22 +0000 (16:48 -0500)]
da->parent may be NULL here, too.
we have fr_dict_unknown_attr_afrom_da() and fr_dict_unknown_afrom_da()
which are 90% identical. Perhaps some common code would help.
Alan T. DeKok [Tue, 21 Dec 2021 20:07:24 +0000 (15:07 -0500)]
da->parent is NULL at the root
Alan T. DeKok [Tue, 21 Dec 2021 17:38:09 +0000 (12:38 -0500)]
rearrange to show how to assign octets to structural members
code isn't done, but it's a start of rearrangement
Alan T. DeKok [Mon, 20 Dec 2021 14:13:41 +0000 (09:13 -0500)]
add := test
Also if the RHS is octets, then it should be parsed as the correct
data type. Right now this happens on compilation, but it should
also happen at run-time
Alan T. DeKok [Mon, 20 Dec 2021 14:05:02 +0000 (09:05 -0500)]
use new hack function, so that we support T_OP_EQ and T_OP_SET
Alan T. DeKok [Tue, 21 Dec 2021 16:48:07 +0000 (11:48 -0500)]
let's use typed arguments
Alan T. DeKok [Tue, 21 Dec 2021 15:46:28 +0000 (10:46 -0500)]
split out functions as per other protocols
Alan T. DeKok [Tue, 21 Dec 2021 15:17:58 +0000 (10:17 -0500)]
remove "do_raw", which doesn't make sense
Alan T. DeKok [Mon, 20 Dec 2021 13:59:47 +0000 (08:59 -0500)]
add temporary hack function
which will be removed as soon as we have the better function
Alan T. DeKok [Sun, 19 Dec 2021 19:18:00 +0000 (14:18 -0500)]
this function is only used by the xlat code
so rename, it, and move the function prototype to a place which
makes more sense.
Alan T. DeKok [Sun, 19 Dec 2021 19:14:14 +0000 (14:14 -0500)]
decode_pair test point should take fr_dict_attr_t const *parent
which lets us start decoding part way through the dictionary,
instead of always at the top
Alan T. DeKok [Sun, 19 Dec 2021 13:56:15 +0000 (08:56 -0500)]
remove fr_dict_t from struct trampoline functions
Alan T. DeKok [Sun, 19 Dec 2021 13:44:35 +0000 (08:44 -0500)]
clarify error message
Alan T. DeKok [Sun, 19 Dec 2021 13:23:36 +0000 (08:23 -0500)]
minor rearrangements, and update arrays for new operators
Alan T. DeKok [Sun, 19 Dec 2021 13:18:45 +0000 (08:18 -0500)]
encode / decode STRUCT too
the same as TLV, because we don't have packed-structures
in the internal protocol. And the internal protocol doesn't use
protocol-specific encodings. It uses the internal encodings
Alan T. DeKok [Sun, 19 Dec 2021 00:58:32 +0000 (19:58 -0500)]
no need to pass dict_dns to all of the dns functions
Alan T. DeKok [Sun, 19 Dec 2021 00:56:12 +0000 (19:56 -0500)]
no need to pass dict_dhcpv6 to all of the dhcpv6 functions
Alan T. DeKok [Sat, 18 Dec 2021 15:58:10 +0000 (10:58 -0500)]
no need to pass dict_dhcpv4 to all of the dhcpv4 functions
Alan T. DeKok [Sat, 18 Dec 2021 15:45:17 +0000 (10:45 -0500)]
no need to pass dict_radius to all of the radius functions
Alan T. DeKok [Fri, 17 Dec 2021 20:09:34 +0000 (15:09 -0500)]
more operations for ip addresses and prefixes
Terry Burton [Tue, 21 Dec 2021 03:07:47 +0000 (03:07 +0000)]
CI FreeBSD: Run on push/pull; more VM memory; use rsync, not sshfs (#4333)
Arran Cudbard-Bell [Fri, 17 Dec 2021 18:34:09 +0000 (12:34 -0600)]
Fix dlist definition macros to be safer
Alan T. DeKok [Fri, 17 Dec 2021 14:40:18 +0000 (09:40 -0500)]
-Wunused
Alan T. DeKok [Thu, 16 Dec 2021 19:11:25 +0000 (14:11 -0500)]
add right/left-shift operations
Alan T. DeKok [Thu, 16 Dec 2021 18:49:28 +0000 (13:49 -0500)]
add more tokens
they're not parsed yet, but they can be useful
Alan T. DeKok [Wed, 15 Dec 2021 20:47:26 +0000 (15:47 -0500)]
clarify and extend error messages
Alan T. DeKok [Wed, 15 Dec 2021 20:41:33 +0000 (15:41 -0500)]
clean up error messages and compress the code
Alan T. DeKok [Wed, 15 Dec 2021 15:22:39 +0000 (10:22 -0500)]
convert asserts to run-time checks
Alan T. DeKok [Wed, 15 Dec 2021 14:47:52 +0000 (09:47 -0500)]
make fr_edit_list_insert_list_after() work for !el situation
Alan T. DeKok [Wed, 15 Dec 2021 14:39:01 +0000 (09:39 -0500)]
add support for intersection
Alan T. DeKok [Wed, 15 Dec 2021 14:38:34 +0000 (09:38 -0500)]
parse "&=" as an operator for sections
Alan T. DeKok [Tue, 14 Dec 2021 15:54:20 +0000 (10:54 -0500)]
add merge with RHS priority
Alan T. DeKok [Tue, 14 Dec 2021 01:18:01 +0000 (20:18 -0500)]
notes on new editting
not everything _quite_ works, but it's pretty close
Arran Cudbard-Bell [Thu, 16 Dec 2021 18:32:53 +0000 (12:32 -0600)]
Stupid const issue
Arran Cudbard-Bell [Thu, 16 Dec 2021 18:04:02 +0000 (12:04 -0600)]
Allow for persistent TLS session keys
Arran Cudbard-Bell [Wed, 15 Dec 2021 20:41:54 +0000 (14:41 -0600)]
Verify the _whole_ list not just half of it
Terry Burton [Mon, 13 Dec 2021 20:44:24 +0000 (20:44 +0000)]
DEB packaging: python-dev has been dropped in Sid (#4334)
Terry Burton [Mon, 13 Dec 2021 20:43:10 +0000 (20:43 +0000)]
Detect and link libm (#4335)
James Jones [Mon, 13 Dec 2021 20:04:33 +0000 (14:04 -0600)]
Make closefrom return void as per /usr/include/unistd.h (#4336)
Terry Burton [Sun, 12 Dec 2021 22:23:06 +0000 (22:23 +0000)]
Add missing header (#4332)
Alan T. DeKok [Sun, 12 Dec 2021 22:05:03 +0000 (17:05 -0500)]
fix format
Alan T. DeKok [Sun, 12 Dec 2021 20:43:24 +0000 (15:43 -0500)]
add ndebug unused
Alan T. DeKok [Sun, 12 Dec 2021 18:52:50 +0000 (13:52 -0500)]
allow list -= attr
for now, only one attr on the RHS. But we hackily allow
&attr[0] or &attr[*]
Alan T. DeKok [Sun, 12 Dec 2021 17:04:50 +0000 (12:04 -0500)]
RHS can't be an attribute reference
if you need a dynamic attribute reference, just copy the value
box, or use xlat-xlat
Alan T. DeKok [Sun, 12 Dec 2021 14:21:06 +0000 (09:21 -0500)]
add 16-bit "safe" field
which marks up value boxes as being safe for particular uses
Alan T. DeKok [Sun, 12 Dec 2021 15:08:13 +0000 (10:08 -0500)]
allow &list := {} to clear the list
which makes a bit more sense than the previous !*ANY
Alan T. DeKok [Sat, 11 Dec 2021 20:38:19 +0000 (15:38 -0500)]
tests for new functionality
Alan T. DeKok [Sat, 11 Dec 2021 20:15:29 +0000 (15:15 -0500)]
and one more "shut up clang"
it's way to dumb and complaining for it's own good
Alan T. DeKok [Sat, 11 Dec 2021 18:09:20 +0000 (13:09 -0500)]
I said SHUT THE HECK UP
Alan T. DeKok [Sat, 11 Dec 2021 17:28:58 +0000 (12:28 -0500)]
clang: shut up and stop being so stupid
Alan T. DeKok [Sat, 11 Dec 2021 15:46:41 +0000 (10:46 -0500)]
shut up clang analyzer
Alan T. DeKok [Sat, 11 Dec 2021 15:02:58 +0000 (10:02 -0500)]
more "shut up clang analyzer"
Alan T. DeKok [Sat, 11 Dec 2021 14:57:43 +0000 (09:57 -0500)]
allow assignment of strings to structural VPs
which parses the string as VPs in the relevant context, and
creates an in-place list. This is useful for xlat / exec
expansions, but it also allows us to assign members of a
structural pair via strings. Which makes it easier to write
and test the new edit functionality.
Alan T. DeKok [Sat, 11 Dec 2021 14:44:05 +0000 (09:44 -0500)]
update parser to cast RHS as string for structural types
Alan T. DeKok [Sat, 11 Dec 2021 14:08:52 +0000 (09:08 -0500)]
clarify error message
Alan T. DeKok [Sat, 11 Dec 2021 14:01:42 +0000 (09:01 -0500)]
shut up clang analyzer
it doesn't look like there's a way to say "this field is always
non-null"
Alan T. DeKok [Sat, 11 Dec 2021 13:30:58 +0000 (08:30 -0500)]
fr_pair_list_afrom_str() now takes a dict_attr root, not dict
in preparation for allowing structural attributes to be parsed
from strings.
This helps with not only intermediate tests while the new edit
code is being developed, it allows for pairs to be assigned
as the result of xlat / exec expansions. Which gives a fair bit
more generality to the server.
Alan T. DeKok [Sat, 11 Dec 2021 13:12:02 +0000 (08:12 -0500)]
"box" can't be NULL, either
Alan T. DeKok [Sat, 11 Dec 2021 00:09:29 +0000 (19:09 -0500)]
don't manually set VT_DATA everywhere
it should be the default, unless we add a new API to allow
fr_pair_t to contain fr_value_box_list_t
Alan T. DeKok [Fri, 10 Dec 2021 23:54:26 +0000 (18:54 -0500)]
compile regex string, not xlat input
there's no tests for this functionality, and looks like it
probably never worked right in v4. It should probably just be
removed
Alan T. DeKok [Fri, 10 Dec 2021 23:42:44 +0000 (18:42 -0500)]
nothing uses VT_XLAT any more
Alan T. DeKok [Fri, 10 Dec 2021 23:40:04 +0000 (18:40 -0500)]
remove xlat_eval_pair() now that nothing sets VT_XLAT
and update radius_pairmove() to no longer take "do_xlat" flag
Alan T. DeKok [Fri, 10 Dec 2021 22:49:41 +0000 (17:49 -0500)]
relax checks
Alan T. DeKok [Fri, 10 Dec 2021 21:35:06 +0000 (16:35 -0500)]
remove fr_pair_mark_xlat(), as nothing uses it
Alan T. DeKok [Fri, 10 Dec 2021 21:29:28 +0000 (16:29 -0500)]
remove call to fr_pair_mark_xlat()
which only worked for strings which were in `back-quotes` ???
that's a hack left over from v3, and needs to be completely
revisited with maps
Alan T. DeKok [Fri, 10 Dec 2021 21:25:07 +0000 (16:25 -0500)]
remove "op" from fr_pair_make()
which was only called from rlm_passwd and rlm_perl. And those
only used it to append attributes to a list.
Also removed the call to fr_pair_mark_xlat() from fr_pair_make()
Neither module used that functionality
Alan T. DeKok [Fri, 10 Dec 2021 21:13:59 +0000 (16:13 -0500)]
these don't use (and shouldn't use) VT_XLAT
in preparation for simply removing it entirely.
Alan T. DeKok [Fri, 10 Dec 2021 21:09:08 +0000 (16:09 -0500)]
one more fix for fr_map_list_t