mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-16 20:15:49 +00:00
BUG/MINOR: ssl/cli: fix build for openssl < 1.0.2
Commit d4f946c
("MINOR: ssl/cli: 'show ssl cert' give information on the
certificates") introduced a build issue with openssl version < 1.0.2
because it uses the certificate bundles.
This commit is contained in:
parent
d4f946c469
commit
ba22e901b3
@ -10200,6 +10200,7 @@ static int cli_io_handler_show_cert(struct appctx *appctx)
|
||||
chunk_appendf(trash, "# transaction\n");
|
||||
if (!ckchs->multi) {
|
||||
chunk_appendf(trash, "*%s\n", ckchs->path);
|
||||
#if HA_OPENSSL_VERSION_NUMBER >= 0x1000200fL
|
||||
} else {
|
||||
chunk_appendf(trash, "*%s:", ckchs->path);
|
||||
for (n = 0; n < SSL_SOCK_NUM_KEYTYPES; n++) {
|
||||
@ -10207,6 +10208,7 @@ static int cli_io_handler_show_cert(struct appctx *appctx)
|
||||
chunk_appendf(trash, " %s.%s\n", ckchs->path, SSL_SOCK_KEYTYPE_NAMES[n]);
|
||||
}
|
||||
chunk_appendf(trash, "\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -10221,6 +10223,7 @@ static int cli_io_handler_show_cert(struct appctx *appctx)
|
||||
ckchs = ebmb_entry(node, struct ckch_store, node);
|
||||
if (!ckchs->multi) {
|
||||
chunk_appendf(trash, "%s\n", ckchs->path);
|
||||
#if HA_OPENSSL_VERSION_NUMBER >= 0x1000200fL
|
||||
} else {
|
||||
chunk_appendf(trash, "%s:", ckchs->path);
|
||||
for (n = 0; n < SSL_SOCK_NUM_KEYTYPES; n++) {
|
||||
@ -10228,6 +10231,7 @@ static int cli_io_handler_show_cert(struct appctx *appctx)
|
||||
chunk_appendf(trash, " %s.%s", ckchs->path, SSL_SOCK_KEYTYPE_NAMES[n]);
|
||||
}
|
||||
chunk_appendf(trash, "\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
node = ebmb_next(node);
|
||||
|
Loading…
Reference in New Issue
Block a user