Redefine old state values
authorMatt Caswell <matt@openssl.org>
Thu, 10 Sep 2015 08:11:41 +0000 (09:11 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 30 Oct 2015 08:38:18 +0000 (08:38 +0000)
commitc64359db8af1bf759f4496a01c93bac658decc7e
treefdb40f911aa60bf46a51ec167c2c690394bc72ff
parent49ae742398aecd81551d59f421e4116a5b8a4ea9
Redefine old state values

ssl.h and ssl3.h have a number of defines for the various states in the old
state machine code. Since this is public API it is not desirable to just
remove them. Instead redefine them to the closest equivalent state in the
new state machine code. If an application calls SSL_state then the return
value can still be compared against these old values if necessary. However
not all values have an equivalent state in the new code, so these are just
redefined to a dummy value.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
include/openssl/ssl.h
include/openssl/ssl3.h
ssl/statem.c