Philipp Schafft
898d38768c
Cleanup: Replaced final bit of MD5 code with something nice
...
This replaces the MD5 related code with something that is much nicer:
The new code consists of util_crypt_hash() that can be used to hash
a password and util_crypt_check() which is used to check the password
taking into account options and salts.
2023-02-21 14:31:25 +00:00
Philipp Schafft
f1c32d7bf4
Cleanup: Replaced the MD5 code with librhash
...
This cleanup removes our own implementation of MD5.
librhash is a hard dependency of libigloo which we also hard
depend on. So it is safe to assume it is always there.
More cleanup should be done once support for more algos for
htpasswd has been implemented.
2023-02-21 14:31:25 +00:00
Philipp Schafft
9b758ca65c
Cleanup: Inlined strlen() into get_hash() as it is the only way get_hash() is ever called
2023-02-21 14:31:25 +00:00
Philipp Schafft
c7c4a63b66
Update: Added tests for MD5 handling code
2023-02-21 14:31:25 +00:00
Philipp Schafft
f741bd131d
Update: Added librhash as dependency
2023-02-21 14:31:25 +00:00
Philipp Schafft
206c66d4b2
Update: Workaround for unsafe select(2)
...
When select(2) is used we only support as many file handles as
there is space in fd_set. The limit is given in FD_SETSIZE.
Once we use filehandles with an value >= FD_SETSIZE we might
end up corrupting memory. Therefore we try to avoid those calls
by rejecting handles >= FD_SETSIZE very early.
This patch should keep most problems away. However it does not
actually ensure we don't corrupt memory. That check has been skipped
for performance reasons. Keeping in mind that the use of select(2)
is already deprecated.
2023-02-21 14:31:10 +00:00
Philipp Schafft
bf6da896de
Feature: Added instance UUID
2023-02-12 18:22:23 +00:00
Philipp Schafft
64df027bee
Update: Require libigloo >= 0.9.2 to enforce security updates
2023-02-12 18:22:08 +00:00
Philipp Schafft
79d16e9b21
Cleanup: Corrected code style
2023-01-30 10:16:18 +00:00
Philipp Schafft
d1e35f6457
Fix: Fixed building on windows
2023-01-30 10:16:09 +00:00
Philipp Schafft
3c7b79c60f
Fix: Corrected version of required libigloo in help text
2023-01-28 22:18:11 +00:00
Philipp Schafft
87a5179e0d
Feature: Emit new format-metadata-changed event on metadata change
2023-01-28 22:18:04 +00:00
Philipp Schafft
264bba614b
Update: Renamed Mountpoint list to Sources list
2023-01-28 22:17:56 +00:00
Stephan Jauernick
342caaff05
Update: Added rhash-dev to alpine
2023-01-28 22:17:05 +00:00
Philipp Schafft
d2bbe1a4da
Fix: Typo
2022-11-08 16:24:22 +00:00
Philipp Schafft
79bb5e9583
Fix: Typo
2022-11-08 16:24:18 +00:00
Philipp Schafft
97b83a0e87
Merge branch 'update-dashboard' into devel
2022-09-24 10:31:03 +00:00
Philipp Schafft
a571256c79
Update: Report an noisy environment if there is one
2022-09-24 10:30:39 +00:00
Philipp Schafft
236acc1223
Feature: Report the actual status of chroot/chuid on the dashboard
2022-09-24 10:30:31 +00:00
Philipp Schafft
7c5d01a1a2
Update: Record result from chroot/chuid
2022-09-24 10:30:28 +00:00
Philipp Schafft
5ef8b13a4a
Update: Inform about chroot()/chuid on dashboard
2022-09-24 10:30:26 +00:00
Philipp Schafft
8508588997
Feature: Allow lists and wildcard matches for event triggers
2022-09-24 09:59:34 +00:00
Philipp Schafft
b2167151bb
Merge branch 'update-events' into devel
2022-09-17 17:59:30 +00:00
Philipp Schafft
18b61eadec
Update: Workaround OpenSSL locking up by calling _exit() not exit()
2022-09-17 17:59:14 +00:00
Philipp Schafft
68694c4f6e
Cleanup: Removed now unused macro event_emit_clientevent()
2022-09-17 17:59:12 +00:00
Philipp Schafft
629af17897
Feature: Pass source to source-(dis)connect events
2022-09-17 17:59:09 +00:00
Philipp Schafft
835ff67c71
Update: Renamed source-mediatype -> source-media-type
2022-09-17 17:59:07 +00:00
Philipp Schafft
1f036d7707
Feature: Record dumpfile filename in events
2022-09-17 17:40:46 +00:00
Philipp Schafft
f6ca537283
Feature: Added way to switch between legacy and new style mode
2022-09-17 17:40:46 +00:00
Philipp Schafft
5015b2f200
Fix: Corrected key name
2022-09-17 17:40:46 +00:00
Philipp Schafft
57ba8c2297
Feature: Added uniform way to include event data in log and URL event backend
2022-09-17 17:40:46 +00:00
Philipp Schafft
7d889b7294
Feature: Added support to query the name of a event extra key
2022-09-17 17:40:46 +00:00
Philipp Schafft
2db94a2a81
Update: Save whether client data is available
2022-09-17 17:40:46 +00:00
Philipp Schafft
6f29ca2996
Feature: Added source media type to events if known
2022-09-17 17:40:46 +00:00
Philipp Schafft
0df67e7971
Update: Avoid re-assigning source and client pointers
2022-09-17 17:40:46 +00:00
Philipp Schafft
c9f2a6a65c
Update: Allow source objects to be passed to event_emit_va() and use the mount as URI
2022-09-17 17:40:46 +00:00
Philipp Schafft
b3c508c1a9
Feature: Added event on source flags change
2022-09-17 17:40:46 +00:00
Philipp Schafft
b0bd9ef865
Cleanup: Corrected names EVENT_EXTRA_* -> EVENT_EXTRA_KEY_*
2022-09-17 17:40:46 +00:00
Philipp Schafft
4547264a8d
Feature: Allow adding any keys to events using the new function event_emit_va()
2022-09-17 17:40:46 +00:00
Philipp Schafft
aab5e5d2b3
Update: Reimplemented extra information stored in events in a nicer way
2022-09-17 17:40:46 +00:00
Philipp Schafft
a76aa28201
Merge branch 'update-dumpfiles' into devel
2022-09-17 17:40:35 +00:00
Philipp Schafft
08683207cc
Update: Improved opening/closing of dumpfiles
2022-09-17 17:36:52 +00:00
Philipp Schafft
d13eb3a7b9
Feature: Added new dumpfile-* events
2022-09-17 17:36:52 +00:00
Philipp Schafft
e736bc3933
Fix: Clear the contenttype on source clear as the pointer might no longer be valid
2022-09-17 17:36:44 +00:00
Philipp Schafft
1ead3bea27
Merge branch 'feature-string-renderer' into devel
2022-09-17 17:18:49 +00:00
Philipp Schafft
79af8d13e2
Fix: Corrected logic to delete NULL-values
2022-09-17 17:17:34 +00:00
Philipp Schafft
c2f25a9108
Feature: Added support for %H-style format to string renderer
2022-09-17 17:17:28 +00:00
Philipp Schafft
c4edf52ef8
Feature: Added a very basic module to build strings from individual parts
2022-09-17 17:17:24 +00:00
Philipp Schafft
167f626dcd
Update: Corrected years of copyright
2022-09-17 17:16:57 +00:00
Philipp Schafft
9de911168c
Cleanup: Moved string related functions out of util.[ch] into new util_string.[ch]
2022-09-17 17:16:45 +00:00