diff options
| author | jsing <> | 2026-06-14 14:30:52 +0000 |
|---|---|---|
| committer | jsing <> | 2026-06-14 14:30:52 +0000 |
| commit | 10f1c5f3b1878fc0729a303d0b2257d43206b087 (patch) | |
| tree | e712f358159f84a14bf7f77f5e49fb96e4a654b2 /src/lib | |
| parent | 299a1344c51031d924e952fa2df617b31de379db (diff) | |
| download | openbsd-10f1c5f3b1878fc0729a303d0b2257d43206b087.tar.gz openbsd-10f1c5f3b1878fc0729a303d0b2257d43206b087.tar.bz2 openbsd-10f1c5f3b1878fc0729a303d0b2257d43206b087.zip | |
Mop up SSL_CTX_set_options(3).
SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS is now a no-op, tidy up
SSL_OP_LEGACY_SERVER_CONNECT and reflect the current state of SSL_OP_ALL
Delete the entire "SECURE RENEGOTIATION" section that contained ancient
ramblings.
ok beck@ tb@
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/libssl/man/SSL_CTX_set_options.3 | 94 |
1 files changed, 5 insertions, 89 deletions
diff --git a/src/lib/libssl/man/SSL_CTX_set_options.3 b/src/lib/libssl/man/SSL_CTX_set_options.3 index 5e81c978bd..ec8900f0f3 100644 --- a/src/lib/libssl/man/SSL_CTX_set_options.3 +++ b/src/lib/libssl/man/SSL_CTX_set_options.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: SSL_CTX_set_options.3,v 1.17 2025/06/08 22:52:00 schwarze Exp $ | 1 | .\" $OpenBSD: SSL_CTX_set_options.3,v 1.18 2026/06/14 14:30:52 jsing Exp $ |
| 2 | .\" full merge up to: OpenSSL 7946ab33 Dec 6 17:56:41 2015 +0100 | 2 | .\" full merge up to: OpenSSL 7946ab33 Dec 6 17:56:41 2015 +0100 |
| 3 | .\" selective merge up to: OpenSSL edb79c3a Mar 29 10:07:14 2017 +1000 | 3 | .\" selective merge up to: OpenSSL edb79c3a Mar 29 10:07:14 2017 +1000 |
| 4 | .\" | 4 | .\" |
| @@ -52,7 +52,7 @@ | |||
| 52 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 52 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 53 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 53 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 54 | .\" | 54 | .\" |
| 55 | .Dd $Mdocdate: June 8 2025 $ | 55 | .Dd $Mdocdate: June 14 2026 $ |
| 56 | .Dt SSL_CTX_SET_OPTIONS 3 | 56 | .Dt SSL_CTX_SET_OPTIONS 3 |
| 57 | .Os | 57 | .Os |
| 58 | .Sh NAME | 58 | .Sh NAME |
| @@ -151,14 +151,8 @@ The following | |||
| 151 | .Em bug workaround | 151 | .Em bug workaround |
| 152 | options are available: | 152 | options are available: |
| 153 | .Bl -tag -width Ds | 153 | .Bl -tag -width Ds |
| 154 | .It Dv SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS | ||
| 155 | Disables a countermeasure against a TLS 1.0 protocol vulnerability | ||
| 156 | affecting CBC ciphers, which cannot be handled by some broken SSL | ||
| 157 | implementations. | ||
| 158 | This option has no effect for connections using other ciphers. | ||
| 159 | .It Dv SSL_OP_ALL | 154 | .It Dv SSL_OP_ALL |
| 160 | This is currently an alias for | 155 | This currently does nothing. |
| 161 | .Dv SSL_OP_LEGACY_SERVER_CONNECT . | ||
| 162 | .El | 156 | .El |
| 163 | .Pp | 157 | .Pp |
| 164 | It is usually safe to use | 158 | It is usually safe to use |
| @@ -179,9 +173,7 @@ When set, the server will choose following its own preferences. | |||
| 179 | Turn on Cookie Exchange as described in RFC 4347 Section 4.2.1. | 173 | Turn on Cookie Exchange as described in RFC 4347 Section 4.2.1. |
| 180 | Only affects DTLS connections. | 174 | Only affects DTLS connections. |
| 181 | .It Dv SSL_OP_LEGACY_SERVER_CONNECT | 175 | .It Dv SSL_OP_LEGACY_SERVER_CONNECT |
| 182 | Allow legacy insecure renegotiation between OpenSSL and unpatched servers | 176 | Allow connections to legacy servers that do not support secure renegotiation. |
| 183 | .Em only : | ||
| 184 | this option is currently set by default. | ||
| 185 | See the | 177 | See the |
| 186 | .Sx SECURE RENEGOTIATION | 178 | .Sx SECURE RENEGOTIATION |
| 187 | section for more details. | 179 | section for more details. |
| @@ -229,6 +221,7 @@ instead. | |||
| 229 | The following options used to be supported at some point in the past | 221 | The following options used to be supported at some point in the past |
| 230 | and no longer have any effect: | 222 | and no longer have any effect: |
| 231 | .Dv SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION , | 223 | .Dv SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION , |
| 224 | .Dv SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS , | ||
| 232 | .Dv SSL_OP_EPHEMERAL_RSA , | 225 | .Dv SSL_OP_EPHEMERAL_RSA , |
| 233 | .Dv SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER , | 226 | .Dv SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER , |
| 234 | .Dv SSL_OP_MICROSOFT_SESS_ID_BUG , | 227 | .Dv SSL_OP_MICROSOFT_SESS_ID_BUG , |
| @@ -250,83 +243,6 @@ and no longer have any effect: | |||
| 250 | .Dv SSL_OP_TLS_D5_BUG , | 243 | .Dv SSL_OP_TLS_D5_BUG , |
| 251 | .Dv SSL_OP_TLS_ROLLBACK_BUG , | 244 | .Dv SSL_OP_TLS_ROLLBACK_BUG , |
| 252 | .Dv SSL_OP_TLSEXT_PADDING . | 245 | .Dv SSL_OP_TLSEXT_PADDING . |
| 253 | .Sh SECURE RENEGOTIATION | ||
| 254 | OpenSSL 0.9.8m and later always attempts to use secure renegotiation as | ||
| 255 | described in RFC 5746. | ||
| 256 | This counters the prefix attack described in CVE-2009-3555 and elsewhere. | ||
| 257 | .Pp | ||
| 258 | This attack has far-reaching consequences which application writers should be | ||
| 259 | aware of. | ||
| 260 | In the description below an implementation supporting secure renegotiation is | ||
| 261 | referred to as | ||
| 262 | .Dq patched . | ||
| 263 | A server not supporting secure | ||
| 264 | renegotiation is referred to as | ||
| 265 | .Dq unpatched . | ||
| 266 | .Pp | ||
| 267 | The following sections describe the operations permitted by OpenSSL's secure | ||
| 268 | renegotiation implementation. | ||
| 269 | .Ss Patched client and server | ||
| 270 | Connections and renegotiation are always permitted by OpenSSL implementations. | ||
| 271 | .Ss Unpatched client and patched OpenSSL server | ||
| 272 | The initial connection succeeds but client renegotiation is denied by the | ||
| 273 | server with a | ||
| 274 | .Em no_renegotiation | ||
| 275 | warning alert. | ||
| 276 | .Pp | ||
| 277 | If the patched OpenSSL server attempts to renegotiate, a fatal | ||
| 278 | .Em handshake_failure | ||
| 279 | alert is sent. | ||
| 280 | This is because the server code may be unaware of the unpatched nature of the | ||
| 281 | client. | ||
| 282 | .Pp | ||
| 283 | Note that a bug in OpenSSL clients earlier than 0.9.8m (all of which | ||
| 284 | are unpatched) will result in the connection hanging if it receives a | ||
| 285 | .Em no_renegotiation | ||
| 286 | alert. | ||
| 287 | OpenSSL versions 0.9.8m and later will regard a | ||
| 288 | .Em no_renegotiation | ||
| 289 | alert as fatal and respond with a fatal | ||
| 290 | .Em handshake_failure | ||
| 291 | alert. | ||
| 292 | This is because the OpenSSL API currently has no provision to indicate to an | ||
| 293 | application that a renegotiation attempt was refused. | ||
| 294 | .Ss Patched OpenSSL client and unpatched server | ||
| 295 | If the option | ||
| 296 | .Dv SSL_OP_LEGACY_SERVER_CONNECT | ||
| 297 | is set then initial connections and renegotiation between patched OpenSSL | ||
| 298 | clients and unpatched servers succeeds. | ||
| 299 | If neither option is set then initial connections to unpatched servers will | ||
| 300 | fail. | ||
| 301 | .Pp | ||
| 302 | The option | ||
| 303 | .Dv SSL_OP_LEGACY_SERVER_CONNECT | ||
| 304 | is currently set by default even though it has security implications: | ||
| 305 | otherwise it would be impossible to connect to unpatched servers (i.e., all of | ||
| 306 | them initially) and this is clearly not acceptable. | ||
| 307 | Renegotiation is permitted because this does not add any additional security | ||
| 308 | issues: during an attack clients do not see any renegotiations anyway. | ||
| 309 | .Pp | ||
| 310 | As more servers become patched, the option | ||
| 311 | .Dv SSL_OP_LEGACY_SERVER_CONNECT | ||
| 312 | will | ||
| 313 | .Em not | ||
| 314 | be set by default in a future version of OpenSSL. | ||
| 315 | .Pp | ||
| 316 | OpenSSL client applications wishing to ensure they can connect to unpatched | ||
| 317 | servers should always | ||
| 318 | .Em set | ||
| 319 | .Dv SSL_OP_LEGACY_SERVER_CONNECT . | ||
| 320 | .Pp | ||
| 321 | OpenSSL client applications that want to ensure they can | ||
| 322 | .Em not | ||
| 323 | connect to unpatched servers (and thus avoid any security issues) should always | ||
| 324 | .Em clear | ||
| 325 | .Dv SSL_OP_LEGACY_SERVER_CONNECT | ||
| 326 | using | ||
| 327 | .Fn SSL_CTX_clear_options | ||
| 328 | or | ||
| 329 | .Fn SSL_clear_options . | ||
| 330 | .Sh RETURN VALUES | 246 | .Sh RETURN VALUES |
| 331 | .Fn SSL_CTX_set_options | 247 | .Fn SSL_CTX_set_options |
| 332 | and | 248 | and |
