Diff

Differences From Artifact [019f917847]:

To Artifact [3f4b3346c0]:


16
17
18
19
20
21
22






16
17
18
19
20
21
22
23
24
25
26
27
28







+
+
+
+
+
+

# OpenSSL version
::tcltest::testConstraint OpenSSL [string match "OpenSSL*" [::tls::version]]

# Legacy OpenSSL v1.1.1 vs new v3.x
scan [lindex [split [::tls::version]] 1] %f version
::tcltest::testConstraint new_api [expr {$version >= 3.0}]
::tcltest::testConstraint old_api [expr {$version < 3.0}]

# Load legacy provider
if {$version >= 3.0} {
    tls::provider legacy
}