File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ int MapOpenSSLErrorSSL() {
181
181
case SSL_R_TLSV1_ALERT_RECORD_OVERFLOW:
182
182
case SSL_R_TLSV1_ALERT_USER_CANCELLED:
183
183
return ERR_SSL_PROTOCOL_ERROR;
184
+ case SSL_R_TLSV1_ALERT_INAPPROPRIATE_FALLBACK:
185
+ return ERR_SSL_INAPPROPRIATE_FALLBACK;
184
186
default :
185
187
LOG (WARNING) << " Unmapped error reason: " << ERR_GET_REASON (error_code);
186
188
return ERR_FAILED;
@@ -754,6 +756,13 @@ bool SSLClientSocketOpenSSL::Init() {
754
756
// handshake at which point the appropriate error is bubbled up to the client.
755
757
LOG_IF (WARNING, rv != 1 ) << " SSL_set_cipher_list('" << command << " ') "
756
758
" returned " << rv;
759
+ if (ssl_config_.version_fallback ) {
760
+ #ifdef SSL_MODE_SEND_FALLBACK_SCSV
761
+ SSL_set_mode (ssl_, SSL_MODE_SEND_FALLBACK_SCSV);
762
+ #else
763
+ SSL_enable_fallback_scsv (ssl_);
764
+ #endif
765
+ }
757
766
758
767
// TLS channel ids.
759
768
if (IsChannelIDEnabled (ssl_config_, server_bound_cert_service_)) {
You can’t perform that action at this time.
0 commit comments