]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl_ckch: Use corresponding enum for commit_cacrlfile_ctx.cafile_type
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 07:17:09 +0000 (09:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 07:21:47 +0000 (09:21 +0200)
There is an enum to determine the entry entry type when changes are
committed on a CA/CRL entry. So use it in the service context instead of an
integer.

This patch may help to fix issue #1731.

src/ssl_ckch.c

index ccd02ffcd4bddc97a8b987d7b7d92d33cc755148..899eaa626b3e7147056c1d16915ec53f72812e8b 100644 (file)
@@ -126,7 +126,7 @@ struct commit_cacrlfile_ctx {
        struct cafile_entry *new_crlfile_entry;
        struct ckch_inst_link *next_ckchi_link;
        struct ckch_inst *next_ckchi;
-       int cafile_type; /* either CA or CRL, depending on the current command */
+       enum cafile_type cafile_type; /* either CA or CRL, depending on the current command */
        char *err;
        enum {
                CACRL_ST_INIT = 0,