]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoFix buildsystem to point to bin not main
Arran Cudbard-Bell [Thu, 12 Jul 2018 19:47:32 +0000 (15:47 -0400)] 
Fix buildsystem to point to bin not main

8 years agoMove binaries into src/bin
Arran Cudbard-Bell [Thu, 12 Jul 2018 18:41:30 +0000 (14:41 -0400)] 
Move binaries into src/bin

8 years agoAdd talloc validation to dlists
Arran Cudbard-Bell [Thu, 12 Jul 2018 18:26:24 +0000 (14:26 -0400)] 
Add talloc validation to dlists

8 years agoRename field back to list
Arran Cudbard-Bell [Thu, 12 Jul 2018 17:09:45 +0000 (13:09 -0400)] 
Rename field back to list

8 years agodoxygen
Alan T. DeKok [Thu, 12 Jul 2018 18:20:05 +0000 (14:20 -0400)] 
doxygen

8 years agoremove unused assignment
Alan T. DeKok [Thu, 12 Jul 2018 18:05:28 +0000 (14:05 -0400)] 
remove unused assignment

8 years agobind '?' to inline help
Alan T. DeKok [Thu, 12 Jul 2018 17:41:50 +0000 (13:41 -0400)] 
bind '?' to inline help

8 years agokeep a copy of the entire input buffer
Alan T. DeKok [Thu, 12 Jul 2018 17:28:35 +0000 (13:28 -0400)] 
keep a copy of the entire input buffer

8 years agoback up current_str when we exit a context
Alan T. DeKok [Thu, 12 Jul 2018 17:28:14 +0000 (13:28 -0400)] 
back up current_str when we exit a context

8 years agoprefer local readline to OSX libedit
Alan T. DeKok [Tue, 10 Jul 2018 20:39:44 +0000 (16:39 -0400)] 
prefer local readline to OSX libedit

8 years agocheck for brew version of readline
Alan T. DeKok [Tue, 10 Jul 2018 20:29:35 +0000 (16:29 -0400)] 
check for brew version of readline

because the local OSX libedit doesn't really do what we want

8 years agodoxygen
Alan T. DeKok [Thu, 12 Jul 2018 16:03:24 +0000 (12:03 -0400)] 
doxygen

8 years agodoxygen
Alan T. DeKok [Thu, 12 Jul 2018 16:02:49 +0000 (12:02 -0400)] 
doxygen

8 years agofix up dlist functions.
Alan T. DeKok [Thu, 12 Jul 2018 15:32:27 +0000 (11:32 -0400)] 
fix up dlist functions.

Add a separate `fr_dlist_head_t`, which contains an offset
of the encapsulating structure.

And then fix up the various functions to take a head / ptr
instead of "entry".  That way the caller doesn't have to play
dumb games with `fr_dlist_t *entry = ...` and various casts.

8 years agoAdd verification pointer for dlists
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:49:51 +0000 (18:49 -0400)] 
Add verification pointer for dlists

8 years agoFix dlist entry mangling
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:29:21 +0000 (18:29 -0400)] 
Fix dlist entry mangling

8 years agoMore debugging
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:25:01 +0000 (18:25 -0400)] 
More debugging

8 years agoAllow the entry to be checked
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:11:29 +0000 (18:11 -0400)] 
Allow the entry to be checked

8 years agoRename dlist pointer to list
Arran Cudbard-Bell [Wed, 11 Jul 2018 22:03:13 +0000 (18:03 -0400)] 
Rename dlist pointer to list

8 years agoSwitch state tracking to use the standard dlist implementation
Arran Cudbard-Bell [Wed, 11 Jul 2018 21:56:10 +0000 (17:56 -0400)] 
Switch state tracking to use the standard dlist implementation

8 years agoMove dlist into its own header
Arran Cudbard-Bell [Wed, 11 Jul 2018 21:55:44 +0000 (17:55 -0400)] 
Move dlist into its own header

8 years agoTweak debugging
Arran Cudbard-Bell [Wed, 11 Jul 2018 20:39:19 +0000 (16:39 -0400)] 
Tweak debugging

8 years agoAssert if the entry is still in the cleanup list
Arran Cudbard-Bell [Wed, 11 Jul 2018 20:28:12 +0000 (16:28 -0400)] 
Assert if the entry is still in the cleanup list

8 years agoadd preliminary support for partial commands
Alan T. DeKok [Wed, 11 Jul 2018 20:26:41 +0000 (16:26 -0400)] 
add preliminary support for partial commands

8 years agoDon't return early if we have entries to free
Arran Cudbard-Bell [Wed, 11 Jul 2018 20:23:49 +0000 (16:23 -0400)] 
Don't return early if we have entries to free

8 years agoBad things happen when we mask all the signals
Arran Cudbard-Bell [Wed, 11 Jul 2018 20:13:54 +0000 (16:13 -0400)] 
Bad things happen when we mask all the signals

Threads stick around forever if their parent dies ungracefully

8 years agoUnused
Arran Cudbard-Bell [Wed, 11 Jul 2018 19:58:08 +0000 (15:58 -0400)] 
Unused

8 years agoDon't set *priority at the start
Arran Cudbard-Bell [Wed, 11 Jul 2018 19:46:55 +0000 (15:46 -0400)] 
Don't set *priority at the start

8 years agofix count definition
Alan T. DeKok [Wed, 11 Jul 2018 19:42:37 +0000 (15:42 -0400)] 
fix count definition

8 years agoexpand optional and alternation
Alan T. DeKok [Wed, 11 Jul 2018 19:38:36 +0000 (15:38 -0400)] 
expand optional and alternation

8 years agomove expand_syntax to it's own function
Alan T. DeKok [Wed, 11 Jul 2018 15:20:36 +0000 (11:20 -0400)] 
move expand_syntax to it's own function

8 years agoSpelling
Arran Cudbard-Bell [Wed, 11 Jul 2018 19:15:21 +0000 (15:15 -0400)] 
Spelling

8 years agoMissed count definition
Arran Cudbard-Bell [Wed, 11 Jul 2018 17:22:52 +0000 (13:22 -0400)] 
Missed count definition

8 years agoCheck memory and next/prev pointers are still valid
Arran Cudbard-Bell [Wed, 11 Jul 2018 17:21:13 +0000 (13:21 -0400)] 
Check memory and next/prev pointers are still valid

8 years agoVerb order
Arran Cudbard-Bell [Wed, 11 Jul 2018 17:20:33 +0000 (13:20 -0400)] 
Verb order

8 years agouse argv->next for syntax
Alan T. DeKok [Wed, 11 Jul 2018 15:10:17 +0000 (11:10 -0400)] 
use argv->next for syntax

8 years agoexpand alternation and optional syntax, too
Alan T. DeKok [Wed, 11 Jul 2018 15:04:09 +0000 (11:04 -0400)] 
expand alternation and optional syntax, too

For now, only if they're at the end of the input.
we still have to write the "match alternation / optional" types

8 years agomove strdup to command.c
Alan T. DeKok [Wed, 11 Jul 2018 14:26:44 +0000 (10:26 -0400)] 
move strdup to command.c

8 years agoadd tab expansion for commands
Alan T. DeKok [Wed, 11 Jul 2018 14:12:36 +0000 (10:12 -0400)] 
add tab expansion for commands

right now, only for fixed strings, and not for syntax in commands.
But it's a nice step forward.

8 years agopass config to radmin, so it can set readline name
Alan T. DeKok [Wed, 11 Jul 2018 13:43:18 +0000 (09:43 -0400)] 
pass config to radmin, so it can set readline name

8 years agowork on OSX, too
Alan T. DeKok [Wed, 11 Jul 2018 13:07:08 +0000 (09:07 -0400)] 
work on OSX, too

8 years agoNeeds to be signed
Arran Cudbard-Bell [Wed, 11 Jul 2018 01:45:24 +0000 (21:45 -0400)] 
Needs to be signed

8 years agoFix travis
Arran Cudbard-Bell [Wed, 11 Jul 2018 01:39:16 +0000 (21:39 -0400)] 
Fix travis

8 years agoFix certificate attribute extraction
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:29:05 +0000 (19:29 -0400)] 
Fix certificate attribute extraction

8 years ago..and another one
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:22:54 +0000 (19:22 -0400)] 
..and another one

8 years agoCleanup code structure
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:08:54 +0000 (19:08 -0400)] 
Cleanup code structure

8 years agotypo
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:04:32 +0000 (19:04 -0400)] 
typo

8 years agoMissing args
Arran Cudbard-Bell [Tue, 10 Jul 2018 23:03:42 +0000 (19:03 -0400)] 
Missing args

8 years agoPrint more info about failing permissions checks
Arran Cudbard-Bell [Tue, 10 Jul 2018 21:39:37 +0000 (17:39 -0400)] 
Print more info about failing permissions checks

8 years agoDon't have UID anymore
Arran Cudbard-Bell [Tue, 10 Jul 2018 21:22:48 +0000 (17:22 -0400)] 
Don't have UID anymore

8 years agoStupid OpenSSL grr
Arran Cudbard-Bell [Tue, 10 Jul 2018 21:18:20 +0000 (17:18 -0400)] 
Stupid OpenSSL grr

8 years agoonly print command hierarchy if we're debugging
Alan T. DeKok [Tue, 10 Jul 2018 20:56:45 +0000 (16:56 -0400)] 
only print command hierarchy if we're debugging

8 years agomove "want_more" out of conduit type, and to explicit parameter
Alan T. DeKok [Tue, 10 Jul 2018 17:39:52 +0000 (13:39 -0400)] 
move "want_more" out of conduit type, and to explicit parameter

so that we don't conflate the data and signalling paths.

8 years agomove conduit header to uint16 origin, uint16 conduit
Alan T. DeKok [Tue, 10 Jul 2018 17:35:18 +0000 (13:35 -0400)] 
move conduit header to uint16 origin, uint16 conduit

so that we can distinguish different sources / destinations
of data

8 years agoascii-doc it a bit more
Alan T. DeKok [Tue, 10 Jul 2018 17:34:52 +0000 (13:34 -0400)] 
ascii-doc it a bit more

8 years agoset output to be line buffered
Alan T. DeKok [Tue, 10 Jul 2018 16:30:55 +0000 (12:30 -0400)] 
set output to be line buffered

so that it gets sent over as quickly as possible

8 years agoPrint certificate attributes as they're added
Arran Cudbard-Bell [Tue, 10 Jul 2018 20:50:58 +0000 (16:50 -0400)] 
Print certificate attributes as they're added

8 years agoRename some macros and move uid/gid parsing into callbacks
Arran Cudbard-Bell [Tue, 10 Jul 2018 20:26:19 +0000 (16:26 -0400)] 
Rename some macros and move uid/gid parsing into callbacks

8 years agoRevert "fopencookie API"
Alan T. DeKok [Tue, 10 Jul 2018 15:54:35 +0000 (11:54 -0400)] 
Revert "fopencookie API"

This reverts commit a8f1a8bdab50f99b2eb48c6531b63e5fb5ab517b.

nope

8 years agofopencookie API
Alan T. DeKok [Tue, 10 Jul 2018 15:32:10 +0000 (11:32 -0400)] 
fopencookie API

8 years agodoxygen
Alan T. DeKok [Tue, 10 Jul 2018 15:31:15 +0000 (11:31 -0400)] 
doxygen

8 years agodon't need stdout && stderr for the main listen socket
Alan T. DeKok [Tue, 10 Jul 2018 15:06:41 +0000 (11:06 -0400)] 
don't need stdout && stderr for the main listen socket

8 years agoarguments for fopencookie are a bit different
Alan T. DeKok [Tue, 10 Jul 2018 15:04:01 +0000 (11:04 -0400)] 
arguments for fopencookie are a bit different

8 years agoadd and check for read_only commands
Alan T. DeKok [Tue, 10 Jul 2018 15:01:29 +0000 (11:01 -0400)] 
add and check for read_only commands

8 years agohacks to get radmin sockets working.
Alan T. DeKok [Tue, 10 Jul 2018 14:43:24 +0000 (10:43 -0400)] 
hacks to get radmin sockets working.

The main thread just calls fr_radmin_run() directly.  Likely
not optimal, but it works for now.

8 years agoexpose "info init" and do more cleanups
Alan T. DeKok [Tue, 10 Jul 2018 14:34:39 +0000 (10:34 -0400)] 
expose "info init" and do more cleanups

8 years agojust mangle the command in-place
Alan T. DeKok [Tue, 10 Jul 2018 14:26:57 +0000 (10:26 -0400)] 
just mangle the command in-place

8 years agoflush fp's after running the command
Alan T. DeKok [Tue, 10 Jul 2018 14:22:30 +0000 (10:22 -0400)] 
flush fp's after running the command

so that the output goes somewhere immediately

8 years agoadd fr_radmin_run() which runs a particular radmin command
Alan T. DeKok [Tue, 10 Jul 2018 13:56:24 +0000 (09:56 -0400)] 
add fr_radmin_run() which runs a particular radmin command

It should probably take fr_cmd_info_t pointer, so that it doesn't
allocate that every time.

8 years agoprovisions for showing the name of the command
Alan T. DeKok [Tue, 10 Jul 2018 12:55:58 +0000 (08:55 -0400)] 
provisions for showing the name of the command

when listing them all, and their help text

8 years agoMove syslog facility parsing into a callback
Arran Cudbard-Bell [Mon, 9 Jul 2018 23:51:00 +0000 (19:51 -0400)] 
Move syslog facility parsing into a callback

8 years agoadded simple tests for alternation and optional things
Alan T. DeKok [Mon, 9 Jul 2018 19:48:03 +0000 (15:48 -0400)] 
added simple tests for alternation and optional things

8 years agoclarify tab_expand
Alan T. DeKok [Mon, 9 Jul 2018 19:43:16 +0000 (15:43 -0400)] 
clarify tab_expand

8 years agosearch for the command in info->cmd
Alan T. DeKok [Mon, 9 Jul 2018 19:27:51 +0000 (15:27 -0400)] 
search for the command in info->cmd

and assume that we don't need to call fr_command_find() again

8 years agosimple checks for (sort of) thread safety
Alan T. DeKok [Mon, 9 Jul 2018 17:24:27 +0000 (13:24 -0400)] 
simple checks for (sort of) thread safety

Only if people execute commands before the server has started running.

8 years agoswap around registration hooks
Alan T. DeKok [Mon, 9 Jul 2018 17:15:44 +0000 (13:15 -0400)] 
swap around registration hooks

so that they're in command.c, and radmin.c can swap it to
whatever it wants

8 years agooops
Alan T. DeKok [Mon, 9 Jul 2018 16:04:55 +0000 (12:04 -0400)] 
oops

8 years agolook at argv[1] not 0
Alan T. DeKok [Mon, 9 Jul 2018 15:48:00 +0000 (11:48 -0400)] 
look at argv[1] not 0

8 years agofix "help all"
Alan T. DeKok [Mon, 9 Jul 2018 15:43:59 +0000 (11:43 -0400)] 
fix "help all"

8 years agoallocate and fill in value boxes if required
Alan T. DeKok [Mon, 9 Jul 2018 15:39:25 +0000 (11:39 -0400)] 
allocate and fill in value boxes if required

8 years agoclear out value boxes in preparation for filling them in
Alan T. DeKok [Mon, 9 Jul 2018 15:20:26 +0000 (11:20 -0400)] 
clear out value boxes in preparation for filling them in

8 years agomove radmin to it's own header file
Alan T. DeKok [Mon, 9 Jul 2018 13:26:03 +0000 (09:26 -0400)] 
move radmin to it's own header file

8 years agodon't coninue on error, goto next
Alan T. DeKok [Mon, 9 Jul 2018 12:57:28 +0000 (08:57 -0400)] 
don't coninue on error, goto next

8 years agoreset argc to context after running command
Alan T. DeKok [Mon, 9 Jul 2018 12:36:49 +0000 (08:36 -0400)] 
reset argc to context after running command

8 years agoadded more commands and more help
Alan T. DeKok [Sun, 8 Jul 2018 23:50:38 +0000 (19:50 -0400)] 
added more commands and more help

so that the poor admin knows what to do

8 years agoadd more help text and commands
Alan T. DeKok [Sun, 8 Jul 2018 19:21:39 +0000 (15:21 -0400)] 
add more help text and commands

8 years agoallow help for commands with callbacks
Alan T. DeKok [Sun, 8 Jul 2018 19:21:05 +0000 (15:21 -0400)] 
allow help for commands with callbacks

which just prints the syntax for now

8 years agoprint out only one layer of help at a time
Alan T. DeKok [Sun, 8 Jul 2018 13:23:28 +0000 (09:23 -0400)] 
print out only one layer of help at a time

8 years agomake "info" global in preparation for context-specific help
Alan T. DeKok [Sat, 7 Jul 2018 12:10:36 +0000 (08:10 -0400)] 
make "info" global in preparation for context-specific help

8 years agouse standard macro
Alan T. DeKok [Fri, 6 Jul 2018 23:26:18 +0000 (19:26 -0400)] 
use standard macro

8 years agoFix off by one issue in cursor code
Arran Cudbard-Bell [Fri, 6 Jul 2018 20:22:38 +0000 (16:22 -0400)] 
Fix off by one issue in cursor code

8 years agoimplement show / set module status
Alan T. DeKok [Fri, 6 Jul 2018 19:43:37 +0000 (15:43 -0400)] 
implement show / set module status

8 years agoclean up function
Alan T. DeKok [Fri, 6 Jul 2018 19:07:11 +0000 (15:07 -0400)] 
clean up function

8 years agoremove unused variable
Alan T. DeKok [Fri, 6 Jul 2018 19:00:10 +0000 (15:00 -0400)] 
remove unused variable

8 years agostupid hooks to get it building and linking
Alan T. DeKok [Fri, 6 Jul 2018 18:40:28 +0000 (14:40 -0400)] 
stupid hooks to get it building and linking

8 years agoRevert "add stub functions"
Alan T. DeKok [Fri, 6 Jul 2018 18:31:36 +0000 (14:31 -0400)] 
Revert "add stub functions"

This reverts commit 1016e2847e68767ea2e6cf101a2957bf9f3faf62.

nope x2

8 years agoRevert "add local prototypes"
Alan T. DeKok [Fri, 6 Jul 2018 18:31:26 +0000 (14:31 -0400)] 
Revert "add local prototypes"

This reverts commit a4b06ed1f4ba3857bb6ff51b9da3f87b7912541c.

nope

8 years agoadd local prototypes
Alan T. DeKok [Fri, 6 Jul 2018 18:10:21 +0000 (14:10 -0400)] 
add local prototypes

8 years agoprint syntax if it exists, otherwise name.
Alan T. DeKok [Fri, 6 Jul 2018 17:53:12 +0000 (13:53 -0400)] 
print syntax if it exists, otherwise name.

8 years agoadd stub functions
Alan T. DeKok [Fri, 6 Jul 2018 17:45:32 +0000 (13:45 -0400)] 
add stub functions