summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-05-11 14:26:14 +0000
committerBodo Möller <bodo@openssl.org>1999-05-11 14:26:14 +0000
commitfa2b248f233e47bb7d0de6d57f3a312453c5e602 (patch)
treee5dc9767b84cad63b33fb55c0abc4b7cb3b0852c /ssl
parent7af62c3cbb52ba648a906bc61bbcd448457e1e29 (diff)
downloadopenssl-new-fa2b248f233e47bb7d0de6d57f3a312453c5e602.tar.gz
Clarify comment.
Submitted by: Reviewed by: PR:
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl.h10
1 files changed, 6 insertions, 4 deletions
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*/