Skip to content

Commit 66b1ba5

Browse files
WL#14666: Adding deprecation message for TLSv1 and TLSv1.1
1 parent 91f68a4 commit 66b1ba5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xmysqlnd/xmysqlnd_session.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3005,6 +3005,9 @@ void Extract_client_option::set_tls_versions(const std::string& raw_tls_versions
30053005
}
30063006
for (const auto& tls_version_str : tls_versions) {
30073007
const Tls_version tls_version{ parse_tls_version(tls_version_str) };
3008+
if( tls_version == Tls_version::tls_v1_0 || tls_version == Tls_version::tls_v1_1 ) {
3009+
php_error_docref(nullptr, E_WARNING, "TLSv1 and TLSv1.1 are deprecated starting from MySQL 8.0.25 and should not be used.");
3010+
}
30083011
auth.tls_versions.push_back(tls_version);
30093012
}
30103013
}

0 commit comments

Comments
 (0)