Repository navigation
Conversation
20525c5 to
ddd1f9e
Compare
bukka
left a comment
There was a problem hiding this comment.
I think it makes sense. It could break potentially someone but I think everyone would expect to have those option inherited so it seems more like a bug fix to me.
I got just NIT's
| --SKIPIF-- | ||
| <?php | ||
| if (!function_exists("proc_open")) die("skip no proc_open"); | ||
| if (!defined("OPENSSL_VERSION_NUMBER") || OPENSSL_VERSION_NUMBER < 0x10101000) die("skip OpenSSL 1.1.1+ required"); |
There was a problem hiding this comment.
1.1.1 is minimum so no need to check this.
| /* SSL_set_SSL_CTX() in the SNI callback switches the handshake to the per-host | ||
| * context, so the cipher list, ALPN selection callback, DH parameters and | ||
| * security level are taken from that context instead of the base one. Apply | ||
| * the base context policy to the per-host context. */ |
There was a problem hiding this comment.
We don't use that long comment - reduce to one line or so.
There was a problem hiding this comment.
well I prefer to usually reduce them but they sometime slip in - in this case it's too much explaining though.
|
|
||
| return SUCCESS; | ||
| } | ||
| /* }}} */ |
There was a problem hiding this comment.
The {{{ and }}} are not used for new functions so please remove it.
The SNI callback switches the handshake to the per-host SSL_CTX, from which OpenSSL takes the cipher list, ALPN callback, DH params and security level. Apply the ciphers, alpn_protocols, dh_param and security_level options to the per-host contexts too. Fixes phpGH-25088 Signed-off-by: Roman Ondráček <mail@romanondracek.cz>
Signed-off-by: Roman Ondráček <mail@romanondracek.cz>
ddd1f9e to
e7c84f8
Compare
bukka
left a comment
There was a problem hiding this comment.
Just one nit, otherwise it looks good.
| } | ||
| /* }}} */ | ||
|
|
||
| static zend_result php_openssl_set_cipher_list(php_stream *stream, SSL_CTX *ctx) /* {{{ */ |
There was a problem hiding this comment.
NIT: this has got still the {{{ and }}}
Signed-off-by: Roman Ondráček <mail@romanondracek.cz>
The SNI callback switches the handshake to the per-host SSL_CTX, from which OpenSSL takes the cipher list, ALPN callback, DH params and security level. Apply the ciphers, alpn_protocols, dh_param and security_level options to the per-host contexts too.
Fixes GH-25088