Fix and improve SSL_MODE_SEND_FALLBACK_SCSV documentation.
authorBodo Moeller <bodo@openssl.org>
Tue, 21 Oct 2014 20:41:07 +0000 (22:41 +0200)
committerBodo Moeller <bodo@openssl.org>
Tue, 21 Oct 2014 20:41:07 +0000 (22:41 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
doc/ssl/SSL_CTX_set_mode.pod
ssl/ssl.h

index 0bcf5d2afcde4a211d4b8e24ad8ad2e9fe87384c..2a5aaa555e13ab058d81737f2ac5ec61350a2f87 100644 (file)
@@ -71,12 +71,16 @@ SSL_CTX->freelist_max_len, which defaults to 32.  Using this flag can
 save around 34k per idle SSL connection.
 This flag has no effect on SSL v2 connections, or on DTLS connections.
 
-=item SSL_MODE_FALLBACK_SCSV
+=item SSL_MODE_SEND_FALLBACK_SCSV
 
 Send TLS_FALLBACK_SCSV in the ClientHello.
-To be set by applications that reconnect with a downgraded protocol
+To be set only by applications that reconnect with a downgraded protocol
 version; see draft-ietf-tls-downgrade-scsv-00 for details.
 
+DO NOT ENABLE THIS if your application attempts a normal handshake.
+Only use this in explicit fallback retries, following the guidance
+in draft-ietf-tls-downgrade-scsv-00.
+
 =back
 
 =head1 RETURN VALUES
index 70aff9dcc3b009570f13af6cfc234cd90ed99e68..d7efc5cbc3eb8b5d19b738a7211ced4752b689fa 100644 (file)
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -606,8 +606,13 @@ typedef struct ssl_session_st
  * or just freed (depending on the context's setting for freelist_max_len). */
 #define SSL_MODE_RELEASE_BUFFERS 0x00000010L
 /* Send TLS_FALLBACK_SCSV in the ClientHello.
- * To be set by applications that reconnect with a downgraded protocol
- * version; see draft-ietf-tls-downgrade-scsv-00 for details. */
+ * To be set only by applications that reconnect with a downgraded protocol
+ * version; see draft-ietf-tls-downgrade-scsv-00 for details.
+ *
+ * DO NOT ENABLE THIS if your application attempts a normal handshake.
+ * Only use this in explicit fallback retries, following the guidance
+ * in draft-ietf-tls-downgrade-scsv-00.
+ */
 #define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080L
 
 /* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value,