X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fssl.h;h=1eeb03db83624d9409666aec51d611f7605188ec;hp=e8d74413446fa195119e47aa7dcc47b016eb7b5f;hb=fa2b248f233e47bb7d0de6d57f3a312453c5e602;hpb=ff71222024503178ecc38bdc4b53ef420614a948 diff --git a/ssl/ssl.h b/ssl/ssl.h index e8d7441344..1eeb03db83 100644 --- a/ssl/ssl.h +++ b/ssl/ssl.h @@ -514,10 +514,12 @@ struct ssl_st int in_handshake; int (*handshake_func)(); - /* Imagine that here's a boolean member "init" - * that is switched as soon as handshake_func becomes - * != 0 for the first time (which is why we don't actually - * need it). + /* Imagine that here's a boolean member "init" that is + * switched as soon as SSL_set_{accept/connect}_state + * is called for the first time, so that "state" and + * "handshake_func" are properly initialized. But as + * handshake_func is == 0 until then, we use this + * test instead of an "init" member. */ int server; /* are we the server side? - mostly used by SSL_clear*/