Migrate TLS 1.2 and below state machines to the new style.

Bug: 128
Change-Id: Ief3779b1c43dd34a154a0f1d2f94d0da756bc07a
Reviewed-on: https://boringssl-review.googlesource.com/19144
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/ssl/ssl_session.cc b/ssl/ssl_session.cc
index 6bacc80..07329d0 100644
--- a/ssl/ssl_session.cc
+++ b/ssl/ssl_session.cc
@@ -1066,7 +1066,7 @@
   /* SSL_set_session may only be called before the handshake has started. */
   if (ssl->s3->initial_handshake_complete ||
       ssl->s3->hs == NULL ||
-      ssl->s3->hs->state != SSL_ST_INIT) {
+      ssl->s3->hs->state != 0) {
     abort();
   }