]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: acme: acme_gen_tmp_x509() signedness and unused variables
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 6 Nov 2025 11:06:57 +0000 (12:06 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 6 Nov 2025 11:08:04 +0000 (12:08 +0100)
commit0524af034f0f62e7d69224c2f13e7f01b93d8740
treeeed1a7bf0f0c66afb161a12d47d285e98d0c41e9
parenta15d4f5b19003677075efa8b4874ae273c6fca80
BUILD: acme: acme_gen_tmp_x509() signedness and unused variables

Fix compilation issues in acme_gen_tmp_x509().

src/acme.c:2665:66: warning: pointer targets in passing argument 4 of ‘X509_NAME_add_entry_by_txt’ differ in signedness [-Wpointer-sign]
 2665 |         if (X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, "expired",
      |                                                                  ^~~~~~~~~
      |                                                                  |
      |                                                                  char *
In file included from /usr/include/openssl/ssl.h:32,
                 from include/haproxy/openssl-compat.h:19,
                 from include/haproxy/acme-t.h:6,
                 from src/acme.c:16:
/usr/include/openssl/x509.h:1074:53: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
 1074 |                                const unsigned char *bytes, int len, int loc,
      |                                ~~~~~~~~~~~~~~~~~~~~~^~~~~
src/acme.c:2630:23: warning: unused variable ‘i’ [-Wunused-variable]
 2630 |         unsigned int  i;
      |                       ^
src/acme.c:2629:23: warning: unused variable ‘ctx’ [-Wunused-variable]
 2629 |         X509V3_CTX    ctx;
      |                       ^~~
src/acme.c