Go to file
David Benjamin f34a009834 Don't set s->state and s->server before the side is known.
If SSL_clear is called before SSL_set_{connect,accept}_state (as SSL_new does
internally), s->state will get set prematurely. Likewise, s->server is set
based on the method's ssl_accept hook, but client SSL's may be initialized from
a generic SSL_METHOD too.

Since we can't easily get rid of the generic SSL_METHODs, defer s->state and
s->server initialization until the side is known.

Change-Id: I0972e17083df22a3c09f6f087011b54c699a22e7
Reviewed-on: https://boringssl-review.googlesource.com/2439
Reviewed-by: Adam Langley <agl@google.com>
2014-12-02 19:34:49 +00:00
crypto Fix bio_test.c build on Windows. 2014-12-01 19:06:59 +00:00
doc Inital import. 2014-06-20 13:17:32 -07:00
include/openssl Don't set s->state and s->server before the side is known. 2014-12-02 19:34:49 +00:00
ssl Don't set s->state and s->server before the side is known. 2014-12-02 19:34:49 +00:00
tool Get bssl tool building on Windows. 2014-10-31 22:02:01 +00:00
util Update constant-time operations. 2014-11-10 13:48:30 -08:00
.clang-format Inital import. 2014-06-20 13:17:32 -07:00
.gitignore Inital import. 2014-06-20 13:17:32 -07:00
BUILDING Build with yasm on Win64 as well. 2014-10-31 22:02:45 +00:00
CMakeLists.txt Make build work on OS X with older cmake versions. 2014-11-18 23:08:20 +00:00
codereview.settings Add a codereview.settings file. 2014-11-18 22:21:33 +00:00