George Baltz N3GB
96bc67d993
Fix FD leak in AESStringCrypt.c
...
Found by `gcc -fanalyzer`, which then spent the next 20+ minutes trying to
analyze md5.c, at which point I gave up.
2025-08-05 11:33:00 -04:00
George Baltz N3GB
1c36377480
Still more cppcheck tweaks
2025-07-29 13:10:28 -04:00
Nate Bargmann
79f8b1cde8
Merge HitHub PR #1811
2025-07-22 22:11:06 -05:00
Daniele Forsi IU5HKX
0267068220
Fix ambiguity between system includes and Hamlib includes
2025-07-22 23:33:57 +02:00
George Baltz N3GB
47dae3879d
Fix compiler errors with strict C23 standards
...
Fix missing/misplaced '#include "config.h"' statements. Fixes missing
function prototypes, unknown type definitions, etc. Allows configuration
of GCC with CFLAGS="-std=c23" instead of using default -std=gnu23.
Don't know about CLANG, MSVC, MinGW, etc, but using
gwb@stitch:~> gcc --version
gcc (SUSE Linux) 15.1.1 20250714
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Hamlib can compile in strict C23 mode, or previous standard levels.
2025-07-22 11:07:33 -04:00
Daniele Forsi IU5HKX
976bfb4276
Remove the executable bit from data files
2025-07-06 19:45:43 +02:00
George Baltz N3GB
cccee9b791
Still more cppcheck complaints dealt with.
2025-05-29 05:41:39 -04:00
Daniele Forsi IU5HKX
23a54a7bdf
Remove unneeded dependency
2025-05-08 23:51:47 +02:00
Mike Black W9MDB
e267c62764
astyle files
2023-12-16 11:37:58 -06:00
Mike Black W9MDB
18c88c9f38
Fix clang warnings
...
https://github.com/Hamlib/Hamlib/issues/1450
2023-12-12 22:49:25 -06:00
Mike Black W9MDB
534fe449a2
Fix more cppcheck items
2023-10-13 17:36:29 -05:00
j-gallardo
4dfe98b0fe
Update password.c
...
I had problems compiling with declaration inside 'for' loops.
2023-06-17 08:51:53 +02:00
Mike Black W9MDB
6e6d192c91
Fix mingw compile warning
2023-05-07 17:13:21 -05:00
Daniele Forsi IU5HKX
f7fe2912ec
Remove unused includes of errno.h
2022-12-09 12:32:54 +01:00
Mike Black W9MDB
6f967a68d5
Make pthread.h a default include and remove config.h from being included in rig.h
...
https://github.com/Hamlib/Hamlib/milestone/14
2022-08-23 17:20:03 -05:00
Mike Black W9MDB
a83eb3bf42
astyle files for 4.5 release
2022-07-27 17:16:17 -05:00
Mike Black W9MDB
627ec83652
Change malloc to calloc
2022-07-27 10:26:08 -05:00
Daniele Forsi IU5HKX
7a132e2703
Remove unused includes
...
Removes includes of stdio.h stdlib.h string.h unistd.h
2022-07-24 17:08:57 +02:00
Mike Black W9MDB
6f9d057162
astyle files getting ready for release
2022-05-13 16:50:13 -05:00
Mike Black W9MDB
2f638a10bf
Fix compile warning in password.c for mingw64
2022-05-13 16:48:21 -05:00
Mike Black W9MDB
81d0c3c768
Remove sys/time.h include from rig.h -- not needed
...
Remove redundant semicolon from rig_debug macro and fix rig_debug's without a semicolon
Some more work on settings and password control -- still in work
https://github.com/Hamlib/Hamlib/issues/813
https://github.com/Hamlib/Hamlib/issues/985
2022-05-13 16:41:59 -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
3e7dcc85ab
Add md5.h to security/Makefile.am
2022-04-15 23:15:56 -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
b085b353e5
Move md5.h declaration
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 17:56:18 -05:00
Mike Black W9MDB
ad2e3bb0ee
Move md5.h to src
2022-04-15 17:49:00 -05:00
Mike Black W9MDB
bf9125d3db
Add make_md5 to md5.h
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 17:23:26 -05:00
Mike Black W9MDB
b138108789
Add include files to security/Makefile.am
2022-04-15 17:18:29 -05:00
Mike Black W9MDB
d38a0a8f5f
Clean up security/Makefile.am
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 16:46:39 -05:00
Mike Black W9MDB
b485b2f593
Remove security_test from Makefile.am
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 16:33:22 -05:00
Mike Black W9MDB
c68233e9d5
Change random call to rand for portability
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 16:20:15 -05:00
Mike Black W9MDB
8f1178c552
Fix password.c compilation on mingw
...
https://github.com/Hamlib/Hamlib/issues/813
2022-04-15 16:17:09 -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
7aa29b9f51
Remove iconv dependency in password.c
2022-03-06 08:40:45 -06:00
Mike Black W9MDB
fdec51eee0
Fix security build for mingw
2022-03-06 07:42:26 -06:00
Mike Black W9MDB
0333cdfca5
astyle files
2022-03-01 11:40:14 -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
f51e778b1b
Add .h files to security/Makefile.am
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 12:32:17 -06:00
Mike Black W9MDB
be8547f5d6
Add CFLAGS to security/Makefile.am
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 12:22:48 -06:00
Mike Black W9MDB
80630326a0
Remove security_test from security/Makefile.am -- need to move it to the tests directory
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 12:11:10 -06:00
Mike Black W9MDB
b0aa034acc
Add gmtime_r to security_test.c
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-28 11:18:20 -06:00
Mike Black W9MDB
27000c27fb
Fix make distcheck
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 18:03:54 -06:00
Mike Black W9MDB
c519dbd78a
Fix github compilation missing aes.h
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:40:53 -06:00
Mike Black W9MDB
b7503986ea
Fix compilation on mingw for gmtime_r
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:34:49 -06:00
Mike Black W9MDB
9ba2b4502c
Fix compilation of security libary on mingw
...
https://github.com/Hamlib/Hamlib/issues/813
2022-02-24 17:28:55 -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