Skip to content

Commit

Permalink
managesieve-login: Use enum managesieve_proxy_state for proxy_state
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and stephanbosch committed Mar 16, 2017
1 parent 023f391 commit 5144d5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 8 additions & 1 deletion src/managesieve-login/client.h
Expand Up @@ -10,6 +10,13 @@
/* maximum length for managesieve command line. */
#define MAX_MANAGESIEVE_LINE 8192

enum managesieve_proxy_state {
MSIEVE_PROXY_STATE_NONE,
MSIEVE_PROXY_STATE_TLS_START,
MSIEVE_PROXY_STATE_TLS_READY,
MSIEVE_PROXY_STATE_XCLIENT,
MSIEVE_PROXY_STATE_AUTH,
};
struct managesieve_command;

struct managesieve_client {
Expand All @@ -18,7 +25,7 @@ struct managesieve_client {
const struct managesieve_login_settings *set;
struct managesieve_parser *parser;

unsigned int proxy_state;
enum managesieve_proxy_state proxy_state;

const char *cmd_name;
struct managesieve_command *cmd;
Expand Down
8 changes: 0 additions & 8 deletions src/managesieve-login/managesieve-proxy.c
Expand Up @@ -20,14 +20,6 @@
#include "managesieve-proxy.h"
#include "managesieve-parser.h"

enum {
MSIEVE_PROXY_STATE_NONE,
MSIEVE_PROXY_STATE_TLS_START,
MSIEVE_PROXY_STATE_TLS_READY,
MSIEVE_PROXY_STATE_XCLIENT,
MSIEVE_PROXY_STATE_AUTH,
};

typedef enum {
MANAGESIEVE_RESPONSE_NONE,
MANAGESIEVE_RESPONSE_OK,
Expand Down

0 comments on commit 5144d5b

Please sign in to comment.