Wykres commitów

1074 Commity (4fa9a211adbcb1ae9329db41c27854af70f39d64)

Autor SHA1 Wiadomość Data
Mike Black W9MDB 0b62193d92 Add new error code for security
https://github.com/Hamlib/Hamlib/issues/813
2022-04-29 17:17:43 -05:00
Mike Black W9MDB 5c0e98fe56 First phase of .hamlib_settings -- currently saves sharekey in current directory when rigctld -A is run
https://github.com/Hamlib/Hamlib/issues/813
https://github.com/Hamlib/Hamlib/issues/985
2022-04-29 16:30:00 -05:00
Mike Black W9MDB 5400d8ed01 Fix send_command to detect FLRig correctly 2022-04-25 12:54:06 -05:00
Mike Black W9MDB fbd7893192 Add cat_string to the raw send command in rigctl for FLRig 2022-04-25 12:42:27 -05:00
Mike Black W9MDB 382282ba20 Fix rigctl option -B 2022-04-25 08:18:06 -05:00
Mike Black W9MDB b55668e2fa Update usage and no arg for -B option 2022-04-25 08:09:51 -05:00
Mike Black W9MDB 6497048f28 Allow rigctlcom to map set_freq on VFOA to VFOB instead
This will allow CW Skimmer to work with some rigs (e.g. IC7300) using FM
mode on VFOA and CW mode on VFOB and split mode transmit on VFOB.
Clicking on CW Skimmer will change VFOB instead of VFOA to allow working
dxpeditions where the fox is staying on frequency
2022-04-24 14:19:20 -05:00
Mike Black W9MDB 863f50f2fb Really move rig_make_md5 to rig.h
https://github.com/Hamlib/Hamlib/issues/813
2022-04-16 06:48:41 -05:00
Mike Black W9MDB 4055810dc8 Remove md5.h from rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/813
2022-04-16 06:40:01 -05:00
Mike Black W9MDB d54b541c0d Merge branch 'master' of https://github.com/Hamlib/Hamlib 2022-04-16 00:03:41 -05:00
Mike Black W9MDB eb6ce19600 Move rig_make_md5 to rig.h
extern HAMLIB_EXPORT(char*) rig_make_md5(char *pass);
2022-04-16 00:00:44 -05:00
Mike Black W9MDB 5c6e92a089 Change make_md5 to rig_make_md5 and export for the DLL build
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 22:44:53 -05:00
Mike Black W9MDB ad2e3bb0ee Move md5.h to src 2022-04-15 17:49:00 -05:00
Mike Black W9MDB cd5f69fb96 Remove make_md5 declaraion from rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 17:41:49 -05:00
Mike Black W9MDB 770aa4e98a Stage 1 rigctld password working using MD5 hash
Need to add Stage 2 which will be encryption using the MD5 hash as the key so the secret key nevers gets trasmitted
Then need to add a "by connection" capability as password is permanent across connections right now.
2022-04-15 13:21:35 -05:00
Mike Black W9MDB 8fbda12ce2 Fix warning in rigctl_parse.c 2022-03-05 16:49:56 -06:00
Mike Black W9MDB 0333cdfca5 astyle files 2022-03-01 11:40:14 -06:00
Mike Black W9MDB 499198bf50 Basic rigctld password working -- still need to add secure method -- plain text right now
https://github.com/Hamlib/Hamlib/issues/813
2022-03-01 11:39:11 -06:00
Mike Black W9MDB c5a5276b15 Adding func_chk.c to test balancing of ENTERFUNC and RETURNFUNC/RETURNFUNC2 statements 2022-02-28 16:35:16 -06:00
Mike Black W9MDB b3d93cc231 Remove testsecurity from tests/Makefile.am
Will implement later
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 13:08:41 -06:00
Mike Black W9MDB 9e2ac43631 Move security/security_test to tests/testsecurity
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 12:54:04 -06:00
Mike Black W9MDB 2c43ee5f0c Fix compilation warning on rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:50:57 -06:00
Mike Black W9MDB 9ae519fc41 Working on password access for rigctld -- not fully implmented yet
Need to check on security audit and cross-platform compilation first
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:28:25 -06:00
Mike Black W9MDB c8d5f8ca07 Fix twiddle_rit in rigctld.c 2022-02-11 16:37:24 -06:00
Mike Black W9MDB a360bd0a07 Add some deprecated copies to ampctl.c 2022-02-11 16:28:03 -06:00
Mike Black W9MDB 43f8a1d680 Remove some debug from rigctl.c 2022-02-09 23:54:51 -06:00
Mike Black W9MDB 3df4571ec4 Allow rigctl w command to time out faster 2022-02-06 08:24:37 -06:00
Mike Black W9MDB 6934536e09 Add some more deprecated port copies 2022-02-06 08:22:53 -06:00
Mike Black W9MDB 6f486e69d6 Add some more copies to port_deprecated structures for rigctl and rigctld 2022-02-05 23:25:02 -06:00
Mike Black W9MDB 8c34ce1a2d astyle source code 2022-02-05 15:27:43 -06:00
Mike Black W9MDB 68e121d82c Change all to remove HAVE_CONFIG dependency and include <hamlib/config.h> by default
This is necessary to keep alignment between the client view of rig->state and the shared libarary view
Including PTHREAD functions in rig->state necessitated this as HAVE_PTHREAD only defined during hamlib compilation.
Clients including hamlib/rig.h did not pick up all the HAVE* config variable that control what gets included
https://github.com/Hamlib/Hamlib/issues/947
2022-02-04 07:41:36 -06:00
Mike Black W9MDB 9aade8de3f Add config.h to include/hamlib so HAVE_PTHREAD is available if needed
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 22:31:42 -06:00
Mike Black W9MDB f08c7d7e36 Change ENTERFUNC RETURNFUNC calls in rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:34:32 -06:00
Mike Black W9MDB 615f102ccc Fix mingw static build
https://github.com/Hamlib/Hamlib/issues/946
2022-01-31 09:12:18 -06:00
Mike Black W9MDB 456ab24f58 Fix mingw32 compilation errors 2022-01-31 08:19:50 -06:00
Mike Black W9MDB 7b4b7ee630 Add a depth count to debug statements to help understand calling sequences
First call into rig functions is level 1
Top level like rigctl, rigctld is level 0
Non-depth calls are internal debug statements -- which can be modified to also show levels but that's a whole lot of statements not really necessary
Normal calls from other clients will be level 1
2022-01-30 23:37:01 -06:00
Mike Black W9MDB 2028d4d1fa Add some more memcpy's to sync hamlib_port_t_deprecated
https://github.com/Hamlib/Hamlib/issues/894
2022-01-26 17:44:03 -06:00
Mike Black W9MDB a277d7ab9b Changes changing hamlib_port_t to pointer are not backwards compatible 2022-01-25 17:41:26 -06:00
Mike Black W9MDB 9e86e62238 Enable async I/O by default
Change hamlib_port_t to a pointer in rig.state
Deprecate static hamlib_port_t structure
New hamlib_port_t structure at end of rig.state
Clients built with older hamlib will use old structure in DLL
Clients built with newer hamlib will use new structure in DLL
So we maintain backwards compatibility until Hamlib 5.0
https://github.com/Hamlib/Hamlib/issues/894
2022-01-25 07:59:47 -06:00
Michael Black 51da62f3fb
Merge pull request #943 from mikaelnousiainen/async-rigctld-icom-bugfixes
Bugfixes for async I/O, rigctld and Icom backend
2022-01-23 11:49:14 -06:00
Mikael Nousiainen 664604f7b6 Make icom_rig_open() fail in case rig_set_powerstat() failure is auto_power_on is requested. Exit rigctld client loop if process is interrupted. 2022-01-23 11:49:16 +02:00
Mike Black W9MDB fba46c7850 Change snprintf to SNPRINTF in rigctl.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-22 22:33:28 -06:00
Mikael Nousiainen 1f428c8d95 Allow icom_rig_open() to succeed even if the rig is powered off. Fix issues with async I/O error code propagation. Allow rigctld daemon to start even if rig is powered off. Add mutex locks around rig_open()/rig_close() calls as multiple client connections could end up calling them concurrently, which could lead to all kinds of issues as the functions are not meant to be thread-safe. This also blocks execution of rigctl commands during rig open/close. 2022-01-22 23:19:07 +02:00
Mikael Nousiainen 5b9feffa78 Fix Icom dual watch set command. Make rotator macro name buffer larger, as the macro names are longer than the space allocated. 2022-01-18 19:02:01 +02:00
Mike Black W9MDB c2cb94e412 Change sprintf to snprint in tests
https://github.com/Hamlib/Hamlib/issues/857
2022-01-11 00:00:44 -06:00
Mike Black W9MDB c3db2b07ae Add rot_get_conf2 function to eventually replace rot_get_conf
This is to avoid potential buffer overflows
https://github.com/Hamlib/Hamlib/issues/924
2022-01-09 11:16:41 -06:00
Mike Black W9MDB bf8bce2d5a Finish memsave.c changes to snprintf
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:20:47 -06:00
Mike Black W9MDB 3548ab8d81 Change sprintf to snprint in memsave.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:18:42 -06:00
Mike Black W9MDB ed1210e974 Change sprintf to snprint in rotctl_parse.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:10:40 -06:00
Mike Black W9MDB d96d616ce5 Change sprint to snprintf in rigctl_parse.c
https://github.com/Hamlib/Hamlib/issues/857
2022-01-08 16:08:24 -06:00