mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
REORG: ssl: move SETCERT enum to ssl_sock.h
Move the SETCERT enum at the right place to cleanup ssl_sock.c.
This commit is contained in:
parent
79d31ec0d4
commit
ad3c37b760
2 changed files with 8 additions and 7 deletions
|
|
@ -91,6 +91,14 @@ struct sh_ssl_sess_hdr {
|
|||
unsigned char key_data[SSL_MAX_SSL_SESSION_ID_LENGTH];
|
||||
};
|
||||
|
||||
/* states of the CLI IO handler for 'set ssl cert' */
|
||||
enum {
|
||||
SETCERT_ST_INIT = 0,
|
||||
SETCERT_ST_GEN,
|
||||
SETCERT_ST_INSERT,
|
||||
SETCERT_ST_FIN,
|
||||
};
|
||||
|
||||
/* This is used to preload the certifcate, private key
|
||||
* and Cert Chain of a file passed in via the crt
|
||||
* argument
|
||||
|
|
|
|||
|
|
@ -11161,13 +11161,6 @@ struct {
|
|||
[CERT_TYPE_MAX] = { NULL, CERT_TYPE_MAX, NULL },
|
||||
};
|
||||
|
||||
/* states of the CLI IO handler for 'set ssl cert' */
|
||||
enum {
|
||||
SETCERT_ST_INIT = 0,
|
||||
SETCERT_ST_GEN,
|
||||
SETCERT_ST_INSERT,
|
||||
SETCERT_ST_FIN,
|
||||
};
|
||||
|
||||
/* release function of the `show ssl cert' command */
|
||||
static void cli_release_show_cert(struct appctx *appctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue