Commit graph

10 commits

Author SHA1 Message Date
Val Snyder
7ff29b8c37
Bump copyright dates for 2025 2025-02-14 10:24:30 -05:00
Micah Snyder
9cb28e51e6 Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
Micah Snyder
58937087aa Coverity-416448: Improve client certificate error handling 2023-08-08 09:39:37 -07:00
Micah Snyder
eb139c6e7d Extend freshclam client key/cert auth to macOS and Windows
Also:
- Rename to use FRESHCLAM_CLIENT_CERT, FRESHCLAM_CLIENT_KEY instead
  prefixing with "CURL_". Unlike CURL_CA_BUNDLE, these variable names
  are not used by the `curl` program and so do not piggyback on that
  existing functionality.

- Add FRESHCLAM_CLIENT_KEY_PASSWD environment variable to support
  password protected private key PEM files, as described in:
  https://curl.se/libcurl/c/CURLOPT_SSLCERT.html

- Document the new environment variable options in the manpage and in
  the `freshclam --help` message. Also add missing documentation in the
  freshclam and clamsubmit help-messages for CURL_CA_BUNDLE.

- Update the NEWS.md file to credit jedrzej for the new feature.
2023-08-03 19:31:36 -07:00
Micah Snyder
6eebecc303 Bump copyright for 2023 2023-02-12 11:20:22 -08:00
Micah Snyder
15f9979016 Fix certificate load x509 -> PEM result check
It appears the result from the _x509_to_pem() function was accidentally hardcoded to a `0` (success)
2022-10-19 13:13:57 -07:00
mko-x
a21cc6dcd7
Add explicit log level parameter to application logging API
* Added loglevel parameter to logg()

* Fix logg and mprintf internals with new loglevels

* Update all logg calls to set loglevel

* Update all mprintf calls to set loglevel

* Fix hidden logg calls

* Executed clam-format
2022-02-15 15:13:55 -08:00
micasnyd
140c88aa4e Bump copyright for 2022
Includes minor format corrections.
2022-01-09 14:23:25 -07:00
Micah Snyder (micasnyd)
8632035c9c Common: cert util memory free fix
This is a bit of a style thing, as freeing a NULL pointer isn't
dangerous. Still, we hould only try to free the certificate name
if non-NULL, and then set it to NULL so it may not be accidentally
re-used if the code is later modified.
2021-06-04 16:46:13 -07:00
Micah Snyder
c025afd683 Rename "shared" library to "common"
The named "shared" is confusing, especially now that these features are
built as a static library instead of being directly compiled into the
various applications.
2021-04-20 17:31:19 -07:00
Renamed from shared/cert_util.c (Browse further)