]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: ssl: move SETCERT enum to ssl_sock.h
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 25 Mar 2020 19:20:26 +0000 (20:20 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 31 Mar 2020 10:32:17 +0000 (12:32 +0200)
Move the SETCERT enum at the right place to cleanup ssl_sock.c.

include/types/ssl_sock.h
src/ssl_sock.c

index add74544d168e5863ade1d5acf9087412944aa23..e5d676db89b97e379b8a3849d7e0f212dbf7927e 100644 (file)
@@ -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
index 1207e9c71093250af942bb7de171628b41336c3f..f21c4b9d38cc041ec880c9ce31be7d844fd2f305 100644 (file)
@@ -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)