]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Wed, 11 Nov 2020 15:48:40 +0000 (10:48 -0500)]
update to use structures
Alan T. DeKok [Wed, 11 Nov 2020 13:35:48 +0000 (08:35 -0500)]
remove map_cast_from_hex() as it is no longer used
Alan T. DeKok [Wed, 11 Nov 2020 13:35:00 +0000 (08:35 -0500)]
make map_afrom_attr_str() a wrapper around map_afrom_sbuff()
Alan T. DeKok [Wed, 11 Nov 2020 13:13:58 +0000 (08:13 -0500)]
remove unnecessary code
Arran Cudbard-Bell [Wed, 11 Nov 2020 01:58:47 +0000 (19:58 -0600)]
Change function signatures so that module methods can signal the interpreter directly
Arran Cudbard-Bell [Wed, 11 Nov 2020 04:44:43 +0000 (22:44 -0600)]
Restore line that shouldn't have been deleted
Arran Cudbard-Bell [Wed, 11 Nov 2020 01:50:31 +0000 (19:50 -0600)]
Let caller decide what it wants
James Jones [Tue, 10 Nov 2020 23:29:11 +0000 (17:29 -0600)]
Correct fr_dbuff_in() for floats and doubles (#3735)
Appropriate tests are added.
Arran Cudbard-Bell [Tue, 10 Nov 2020 21:43:05 +0000 (15:43 -0600)]
Don't run the normal CI workflow on the coverity_scan branch
Arran Cudbard-Bell [Tue, 10 Nov 2020 21:16:18 +0000 (15:16 -0600)]
Correct branch name
Arran Cudbard-Bell [Tue, 10 Nov 2020 21:07:24 +0000 (15:07 -0600)]
Formatting
Terry Burton [Tue, 10 Nov 2020 21:05:36 +0000 (21:05 +0000)]
Add coverity scan Action on push to coverity-scan branch (#3734)
Arran Cudbard-Bell [Tue, 10 Nov 2020 20:56:04 +0000 (14:56 -0600)]
Fix more magic numbers
Arran Cudbard-Bell [Tue, 10 Nov 2020 20:32:53 +0000 (14:32 -0600)]
Fix dbuff verb order to be the same as sbuff
Fix old calls to dbuff API
Arran Cudbard-Bell [Tue, 10 Nov 2020 18:59:44 +0000 (12:59 -0600)]
Formatting
James Jones [Tue, 10 Nov 2020 19:51:23 +0000 (13:51 -0600)]
Change internal encoding to use markers in anticipation of extensible dbuffs (#3632)
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
James Jones [Tue, 10 Nov 2020 19:45:30 +0000 (13:45 -0600)]
Convert EAP-AKA encoding to use dbuff (#3526)
* Convert EAP-AKA encoding to use dbuff
* Correct comment to reflect VALUE_PAIR -> fr_value_t
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
James Jones [Tue, 10 Nov 2020 19:31:42 +0000 (13:31 -0600)]
Add fr_dbuff_uint64v_out(), and float/double options for fr_dbuff_out() (#3732)
Unlike fr_dbuff_uint64v_in(), one must pass a length between 1 and 8
inclusive to specify the number of bytes to read, as well as a dbuff
or marker and a pointer to a uint64_t. Bytes read are interpreted as
an unsigned integer in network order, converted to host order, and
stored in the pointed-at uint64_t.
Arran Cudbard-Bell [Tue, 10 Nov 2020 19:30:16 +0000 (13:30 -0600)]
Install libjson-c4 for 20.0.4
Arran Cudbard-Bell [Tue, 10 Nov 2020 19:27:07 +0000 (13:27 -0600)]
Disable 20.04 until we have a source for all deps, and have package caching
Alan T. DeKok [Tue, 10 Nov 2020 19:18:27 +0000 (14:18 -0500)]
slen is signed
and it helps to return the map to the caller...
Alan T. DeKok [Tue, 10 Nov 2020 18:46:32 +0000 (13:46 -0500)]
make map_afrom_fields() static.
It's only ever called from map_afrom_attr_str()
Alan T. DeKok [Tue, 10 Nov 2020 18:45:22 +0000 (13:45 -0500)]
add map_afrom_sbuff()
Alan T. DeKok [Tue, 10 Nov 2020 13:33:23 +0000 (08:33 -0500)]
don't colourise when we send to non-terminals
even if the configuration file says "colourise = yes"
Arran Cudbard-Bell [Tue, 10 Nov 2020 18:55:27 +0000 (12:55 -0600)]
Last few doxygen fixes
Arran Cudbard-Bell [Tue, 10 Nov 2020 16:41:42 +0000 (10:41 -0600)]
Reformat dependencies
Arran Cudbard-Bell [Tue, 10 Nov 2020 16:36:44 +0000 (10:36 -0600)]
Delete .travis.yml
Arran Cudbard-Bell [Tue, 10 Nov 2020 16:36:09 +0000 (10:36 -0600)]
Change the build badge to GitHub actions
Terry Burton [Tue, 23 Jun 2020 19:00:22 +0000 (20:00 +0100)]
Add GitHub Actions CI workflow
Terry Burton [Tue, 10 Nov 2020 14:56:33 +0000 (14:56 +0000)]
s/travis/ci/g ... ish (#3728)
James Jones [Tue, 10 Nov 2020 14:56:17 +0000 (08:56 -0600)]
Add initial version of sbuff.doc (#3647)
* Add initial version of sbuff.doc
* Fixups and clarifications
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
James Jones [Tue, 10 Nov 2020 14:54:39 +0000 (08:54 -0600)]
Add tests to exercise fr_dbuff_out() with marker as source (#3730)
We also include the correction that the added tests turned up.
Arran Cudbard-Bell [Tue, 10 Nov 2020 14:53:55 +0000 (08:53 -0600)]
Try and quiet documentation warnings
Arran Cudbard-Bell [Tue, 10 Nov 2020 03:19:53 +0000 (21:19 -0600)]
Lots of doxygen fixes
Arran Cudbard-Bell [Mon, 9 Nov 2020 17:57:05 +0000 (11:57 -0600)]
Formatting
Arran Cudbard-Bell [Mon, 9 Nov 2020 17:20:23 +0000 (11:20 -0600)]
sbuff: Have bstrncpy_until take fr_sbuff_unescape_rules_t
Arran Cudbard-Bell [Mon, 9 Nov 2020 17:05:24 +0000 (11:05 -0600)]
dbuff: Structure documentation
Arran Cudbard-Bell [Mon, 9 Nov 2020 16:22:08 +0000 (10:22 -0600)]
dbuff: Fixup failing test, probably broke when fr_memcpy_out stopped advancing output dbuff
Arran Cudbard-Bell [Mon, 9 Nov 2020 16:24:35 +0000 (10:24 -0600)]
dbuff: Fix fr_dbuff_out to and associated functions to work with markers
Arran Cudbard-Bell [Mon, 9 Nov 2020 16:22:41 +0000 (10:22 -0600)]
dbuff: Have "move" functions extend the input and output buffers
Arran Cudbard-Bell [Mon, 9 Nov 2020 15:20:53 +0000 (09:20 -0600)]
dbuff: Doxygen
Arran Cudbard-Bell [Mon, 9 Nov 2020 15:17:53 +0000 (09:17 -0600)]
dbuff: Fix SIZE_MAX to work correctly with memcpy_in
Arran Cudbard-Bell [Mon, 9 Nov 2020 15:14:17 +0000 (09:14 -0600)]
dbuff: Use safecpy in more places
Arran Cudbard-Bell [Mon, 9 Nov 2020 15:12:24 +0000 (09:12 -0600)]
dbuff: Add extra integer types for fr_dbuff_set
Arran Cudbard-Bell [Mon, 9 Nov 2020 14:55:00 +0000 (08:55 -0600)]
A simpler fix...
Alan T. DeKok [Mon, 9 Nov 2020 13:49:26 +0000 (08:49 -0500)]
don't run icmp on Linux. it requires root or setcap
Alan T. DeKok [Mon, 9 Nov 2020 13:43:40 +0000 (08:43 -0500)]
document setcap for Linux
Alan T. DeKok [Mon, 9 Nov 2020 13:16:43 +0000 (08:16 -0500)]
don't clear cursor if we didn't initialize it
Nick Porter [Mon, 9 Nov 2020 11:08:47 +0000 (11:08 +0000)]
Amend fr_pair_list_tainted to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 11:02:57 +0000 (11:02 +0000)]
Amend fr_pair_list_verify to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 10:44:20 +0000 (10:44 +0000)]
Amend fr_pair_list_copy_by_ancestor to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 10:41:56 +0000 (10:41 +0000)]
Amend fr_pair_list_copy_by_da() to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 10:31:24 +0000 (10:31 +0000)]
Amend fr_pair_list_copy() to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 10:03:40 +0000 (10:03 +0000)]
Amend _pair_list_sort_merge() to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 09:57:37 +0000 (09:57 +0000)]
Amend _pair_list_sort_split() to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 09:51:15 +0000 (09:51 +0000)]
Amend fr_pair_list_cmp() to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 09:42:55 +0000 (09:42 +0000)]
Amend fr_pair_find_by_child_num() to take fr_pair_list_t *
Nick Porter [Mon, 9 Nov 2020 09:32:45 +0000 (09:32 +0000)]
Amend fr_pair_find_by_num() to take fr_pair_list_t *
Nick Porter [Fri, 6 Nov 2020 19:35:46 +0000 (19:35 +0000)]
Amend fr_pair_find_by_da() to take fr_pair_list *
Nick Porter [Mon, 9 Nov 2020 13:19:14 +0000 (13:19 +0000)]
Replace fr_pair_t ** with fr_pair_list_t * in pair_legacy.c functions (#3726)
Arran Cudbard-Bell [Sun, 8 Nov 2020 15:27:43 +0000 (09:27 -0600)]
More dbuff doxygen content
Arran Cudbard-Bell [Sun, 8 Nov 2020 14:55:03 +0000 (08:55 -0600)]
More minor length fixes in fr_radius_ascend_secret
Alan T. DeKok [Sun, 8 Nov 2020 12:47:16 +0000 (07:47 -0500)]
update Oracle for changes as per commit
42229e776
Arran Cudbard-Bell [Sun, 8 Nov 2020 02:54:26 +0000 (20:54 -0600)]
Calculate fr_radius_ascend_secret() as per previous commit
The original code was fine, and avoided extra memcpys and intermediary buffers. There was just an issue writing to the wrong buffer.
Arran Cudbard-Bell [Sat, 7 Nov 2020 19:24:26 +0000 (13:24 -0600)]
Better name...
Alan T. DeKok [Sun, 8 Nov 2020 01:42:36 +0000 (20:42 -0500)]
fix fr_radius_ascend_secret(), and add tests
if the input data is smaller than the digest, pad it with zeros.
Copy digest to work_dbuff, not dbuff
use MD5_DIGEST_LENGTH or sizeof(array) in more places.
Arran Cudbard-Bell [Sat, 7 Nov 2020 19:13:33 +0000 (13:13 -0600)]
Fix fr_dbuff_uint64v_in to work with markers
Arran Cudbard-Bell [Sat, 7 Nov 2020 18:28:43 +0000 (12:28 -0600)]
Remove wrapper
Arran Cudbard-Bell [Sat, 7 Nov 2020 18:04:00 +0000 (12:04 -0600)]
Reduce direct buffer access
Arran Cudbard-Bell [Sat, 7 Nov 2020 17:52:41 +0000 (11:52 -0600)]
Fix strange fr_radius_ascend_secret use of dbuffs
Arran Cudbard-Bell [Sat, 7 Nov 2020 05:14:02 +0000 (23:14 -0600)]
dbuff: Fixup *in* functions to work on markers
Alan T. DeKok [Fri, 6 Nov 2020 21:23:50 +0000 (16:23 -0500)]
encode message-type
and add decode test
Alan T. DeKok [Fri, 6 Nov 2020 20:54:21 +0000 (15:54 -0500)]
no need to print trailing junk at the end of a packet
Arran Cudbard-Bell [Fri, 6 Nov 2020 20:51:03 +0000 (14:51 -0600)]
Remove dbuff_marker macros
Arran Cudbard-Bell [Fri, 6 Nov 2020 19:44:25 +0000 (13:44 -0600)]
Fix bad calls to fr_dbuff_remaining
Alan T. DeKok [Fri, 6 Nov 2020 19:31:05 +0000 (14:31 -0500)]
fix encoder and add test packet
* dhcp opcode is uint8, not uint32
* NEVER leave fields unset. Instead, initialize them to zero
* put hwtype and hwlen into header, instead of inside chaddr
* when copying data into fixed-width fields, fill in the rest with 0
Alan T. DeKok [Fri, 6 Nov 2020 19:30:04 +0000 (14:30 -0500)]
add test point for encode-proto
Alan T. DeKok [Fri, 6 Nov 2020 19:29:10 +0000 (14:29 -0500)]
use main "print hex" routine instead of a local one
Alan T. DeKok [Fri, 6 Nov 2020 18:50:30 +0000 (13:50 -0500)]
remove extraneous "3" which breaks DHCPv4
Alan T. DeKok [Fri, 6 Nov 2020 18:24:18 +0000 (13:24 -0500)]
clean up the output of hex printing the packet
Alan T. DeKok [Fri, 6 Nov 2020 18:24:03 +0000 (13:24 -0500)]
don't do PROTO printing in non-debug mode
Alan T. DeKok [Fri, 6 Nov 2020 18:12:22 +0000 (13:12 -0500)]
stop decoding fields at padding
Arran Cudbard-Bell [Fri, 6 Nov 2020 19:19:00 +0000 (13:19 -0600)]
Pass bytes in as hex
Arran Cudbard-Bell [Fri, 6 Nov 2020 19:16:03 +0000 (13:16 -0600)]
Operate directly on the dbuff
Arran Cudbard-Bell [Fri, 6 Nov 2020 17:58:08 +0000 (11:58 -0600)]
Addresses already inverted here
Arran Cudbard-Bell [Fri, 6 Nov 2020 17:52:23 +0000 (11:52 -0600)]
Swap src/dst before we call udp_send
Arran Cudbard-Bell [Fri, 6 Nov 2020 17:39:18 +0000 (11:39 -0600)]
Try using tmpl_cursor_init in map_to_request
Alan T. DeKok [Fri, 6 Nov 2020 17:39:48 +0000 (12:39 -0500)]
whitespace
Alan T. DeKok [Fri, 6 Nov 2020 17:39:29 +0000 (12:39 -0500)]
use memcpy, as IPs are stored internally in network byte order
Arran Cudbard-Bell [Fri, 6 Nov 2020 17:34:47 +0000 (11:34 -0600)]
Allow swapping out the fr_pair_list_t based on whether USE_DOUBLE_LIST is defined
Nick Porter [Fri, 6 Nov 2020 17:28:40 +0000 (17:28 +0000)]
v4: Swap all uses of pair_cursor.c to cursor.c (#3724)
* Add filter function for fr_cursor_filter_next() to match da
pair_matches_da() can be used with fr_cursor_filter_next() to return the
next pair in the list pointed to by the cursor with the matching da.
Use case:
fr_cursor_filter_next(&cursor, pair_matches_da, da)
where da is fr_dict_attr_t *
* Replace fr_pair_cursor_ with fr_cursor_ in map.c
* Replace fr_pair_cursor_ with fr_cursor_ in pair.c
* Replace fr_pair_cursor_ with fr_cursor_ in radsniff.c
* Remove un-used includes of pair_cursor.h
* Remove pair_cursor.c from make file.
* Remove un-used vp_cursor_t definition
* Remove pair_cursor.c
* Update filter function eval_eq to take const parameters
Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
Alan T. DeKok [Fri, 6 Nov 2020 17:01:13 +0000 (12:01 -0500)]
fix this, too for "const"
Arran Cudbard-Bell [Fri, 6 Nov 2020 16:56:48 +0000 (10:56 -0600)]
Fixup udp_send to just take packet->socket
Arran Cudbard-Bell [Fri, 6 Nov 2020 16:32:59 +0000 (10:32 -0600)]
Simplify udp_recv so that all data is written to an fr_socket_t
Arran Cudbard-Bell [Fri, 6 Nov 2020 16:01:28 +0000 (10:01 -0600)]
There's a type for that...
Arran Cudbard-Bell [Fri, 6 Nov 2020 16:01:13 +0000 (10:01 -0600)]
Formatting.
Alan T. DeKok [Fri, 6 Nov 2020 16:00:17 +0000 (11:00 -0500)]
add "SELECT true" as fail-over for on/off queries
If there are no rows to update, then the on/off queries will
return "no rows updated". The server will then fail over to the
next query, which says "that's fine"
Alan T. DeKok [Fri, 6 Nov 2020 14:38:12 +0000 (09:38 -0500)]
fr_cursor_eval_t should take "const"
evaluation functions should be idempotent
Alan T. DeKok [Fri, 6 Nov 2020 12:52:11 +0000 (07:52 -0500)]
print out packet before encrypting
Jorge Pereira [Fri, 6 Nov 2020 12:51:20 +0000 (09:51 -0300)]
:gear: tacacs: Fix typo (#3723)
* :gear: tacacs: Better formatting
* :gear: tacacs: Fix typo