mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-15 20:03:33 -04:00
BUG/MINOR: ssl/cli: fix unused variable with openssl < 1.0.2
src/ssl_sock.c: In function ‘cli_io_handler_show_cert’:
src/ssl_sock.c:10214:6: warning: unused variable ‘n’ [-Wunused-variable]
int n;
^
Fix this problem in the io handler of the "show ssl cert" function.
This commit is contained in:
parent
1113116b4a
commit
a25a19fdee
1 changed files with 4 additions and 1 deletions
|
|
@ -10211,7 +10211,6 @@ static int cli_io_handler_show_cert(struct appctx *appctx)
|
|||
struct ebmb_node *node;
|
||||
struct stream_interface *si = appctx->owner;
|
||||
struct ckch_store *ckchs;
|
||||
int n;
|
||||
|
||||
if (trash == NULL)
|
||||
return 1;
|
||||
|
|
@ -10224,6 +10223,8 @@ static int cli_io_handler_show_cert(struct appctx *appctx)
|
|||
chunk_appendf(trash, "*%s\n", ckchs->path);
|
||||
#if HA_OPENSSL_VERSION_NUMBER >= 0x1000200fL
|
||||
} else {
|
||||
int n;
|
||||
|
||||
chunk_appendf(trash, "*%s:", ckchs->path);
|
||||
for (n = 0; n < SSL_SOCK_NUM_KEYTYPES; n++) {
|
||||
if (ckchs->ckch[n].cert)
|
||||
|
|
@ -10247,6 +10248,8 @@ static int cli_io_handler_show_cert(struct appctx *appctx)
|
|||
chunk_appendf(trash, "%s\n", ckchs->path);
|
||||
#if HA_OPENSSL_VERSION_NUMBER >= 0x1000200fL
|
||||
} else {
|
||||
int n;
|
||||
|
||||
chunk_appendf(trash, "%s:", ckchs->path);
|
||||
for (n = 0; n < SSL_SOCK_NUM_KEYTYPES; n++) {
|
||||
if (ckchs->ckch[n].cert)
|
||||
|
|
|
|||
Loading…
Reference in a new issue