diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2017-02-06 15:33:28 -0600 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-02-23 19:40:26 +0100 |
commit | ddf972583439346cbaa99031fe8d3116018ba711 (patch) | |
tree | 8d7031403c6134608b92ebbea28191a9ceedf214 | |
parent | 6e3dac1995eb6e34ed2649aca78b5aa88b1cbfeb (diff) |
Prepare for WORK_MORE_C
Add the new enum value and case statements as appropriate.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2279)
-rw-r--r-- | ssl/statem/statem.c | 3 | ||||
-rw-r--r-- | ssl/statem/statem.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ssl/statem/statem.c b/ssl/statem/statem.c index bd7d89a461..a1c5a21522 100644 --- a/ssl/statem/statem.c +++ b/ssl/statem/statem.c @@ -564,6 +564,7 @@ static SUB_STATE_RETURN read_state_machine(SSL *s) case WORK_ERROR: case WORK_MORE_A: case WORK_MORE_B: + case WORK_MORE_C: return SUB_STATE_ERROR; case WORK_FINISHED_CONTINUE: @@ -706,6 +707,7 @@ static SUB_STATE_RETURN write_state_machine(SSL *s) case WORK_ERROR: case WORK_MORE_A: case WORK_MORE_B: + case WORK_MORE_C: return SUB_STATE_ERROR; case WORK_FINISHED_CONTINUE: @@ -745,6 +747,7 @@ static SUB_STATE_RETURN write_state_machine(SSL *s) case WORK_ERROR: case WORK_MORE_A: case WORK_MORE_B: + case WORK_MORE_C: return SUB_STATE_ERROR; case WORK_FINISHED_CONTINUE: diff --git a/ssl/statem/statem.h b/ssl/statem/statem.h index 021d2d06ce..906f2ec5bc 100644 --- a/ssl/statem/statem.h +++ b/ssl/statem/statem.h @@ -27,7 +27,9 @@ typedef enum { /* We're working on phase A */ WORK_MORE_A, /* We're working on phase B */ - WORK_MORE_B + WORK_MORE_B, + /* We're working on phase C */ + WORK_MORE_C } WORK_STATE; /* Write transition return codes */ |