summaryrefslogtreecommitdiffstats
path: root/ssl/ssl.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-09 10:37:53 -0400
committerNick Mathewson <nickm@torproject.org>2013-10-09 10:37:53 -0400
commit2583270191a8b27eed303c03ece1da97b9b69fd3 (patch)
tree6987ad492978faccdf7ede2a16fbda62de7ec7a2 /ssl/ssl.h
parent3da721dac9382c48812c8eba455528fd59af2eef (diff)
Control sending time with SSL_SEND_{CLIENT,SERVER}RANDOM_MODE
(I'd rather use an option, but it appears that the options field is full.) Now, we send the time in the gmt_unix_time field if the appropriate one of these mode options is set, but randomize the field if the flag is not set.
Diffstat (limited to 'ssl/ssl.h')
-rw-r--r--ssl/ssl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/ssl.h b/ssl/ssl.h
index 593579ed36..ae852bf011 100644
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -641,6 +641,12 @@ struct ssl_session_st
* TLS only.) "Released" buffers are put onto a free-list in the context
* or just freed (depending on the context's setting for freelist_max_len). */
#define SSL_MODE_RELEASE_BUFFERS 0x00000010L
+/* Send the current time in the Random fields of the ClientHello and
+ * ServerHello records for compatibility with hypothetical implementations
+ * that require it.
+ */
+#define SSL_MODE_SEND_CLIENTHELLO_TIME 0x00000020L
+#define SSL_MODE_SEND_SERVERHELLO_TIME 0x00000040L
/* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value,
* they cannot be used to clear bits. */