You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
net, openssl: support setting the minimum supported SSL/TLS version
This commit brings minimum supported TLS version setting to Nim, which
replaces the exact version system used by `net.newContext`. For more
information consult the changelog entry associated with this change.
Copy file name to clipboardExpand all lines: changelog.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,20 @@
108
108
users from the use of weak and insecure ciphers while still provides
109
109
adequate compatiblity with the majority of the Internet.
110
110
111
+
-`net.newContext` drops support for setting the _exact_ version of SSL/TLS.
112
+
This has been replaced by the ability to set the _minimum_ supported version.
113
+
114
+
The **default** minimum supported version is now `protTLS`. Details about
115
+
this constant can be found below.
116
+
117
+
-`net.SslProtVersion` now specify the minimum version to use with `newContext`.
118
+
`protSSLv2`, `protSSLv3` and `protSSLv23` has now been deprecated in favor of
119
+
explicit TLS versions.
120
+
121
+
A new constant `protTLS` is provided, which tracks the latest recommended TLS
122
+
version with reasonable security and compatibility with the Internet. This
123
+
constant is the replacement for the old `protSSLv23`.
124
+
111
125
## Language changes
112
126
- In the newruntime it is now allowed to assign discriminator field without restrictions as long as case object doesn't have custom destructor. Discriminator value doesn't have to be a constant either. If you have custom destructor for case object and you do want to freely assign discriminator fields, it is recommended to refactor object into 2 objects like this:
0 commit comments