1616
1717package zio .http
1818
19+ import scala .annotation .unroll
20+
1921import zio .Config
2022import zio .Config .Secret
2123
@@ -36,6 +38,7 @@ final case class SSLConfig(
3638 provider : Provider ,
3739 clientAuth : Option [ClientAuth ] = None ,
3840 includeClientCert : Boolean = false ,
41+ @ unroll
3942 protocols : Seq [String ] = Seq (" TLSv1.3" , " TLSv1.2" ),
4043)
4144
@@ -69,6 +72,7 @@ object SSLConfig {
6972 clientAuth : Option [ClientAuth ] = None ,
7073 trustCertCollectionPath : Option [String ] = None ,
7174 includeClientCert : Boolean = false ,
75+ @ unroll
7276 protocols : Seq [String ] = Seq (" TLSv1.3" , " TLSv1.2" ),
7377 ): SSLConfig =
7478 new SSLConfig (
@@ -93,6 +97,7 @@ object SSLConfig {
9397 clientAuth : Option [ClientAuth ] = None ,
9498 trustCertCollectionPath : Option [String ] = None ,
9599 includeClientCert : Boolean = false ,
100+ @ unroll
96101 protocols : Seq [String ] = Seq (" TLSv1.3" , " TLSv1.2" ),
97102 ): SSLConfig =
98103 new SSLConfig (
@@ -112,6 +117,7 @@ object SSLConfig {
112117 trustManagerKeyStore : Option [Data .TrustManagerKeyStore ] = None ,
113118 clientAuth : Option [ClientAuth ] = None ,
114119 includeClientCert : Boolean = false ,
120+ @ unroll
115121 protocols : Seq [String ] = Seq (" TLSv1.3" , " TLSv1.2" ),
116122 ): SSLConfig =
117123 new SSLConfig (
@@ -138,6 +144,7 @@ object SSLConfig {
138144 trustManagerKeyStore : Option [Data .TrustManagerKeyStore ] = None ,
139145 clientAuth : Option [ClientAuth ] = None ,
140146 includeClientCert : Boolean = false ,
147+ @ unroll
141148 protocols : Seq [String ] = Seq (" TLSv1.3" , " TLSv1.2" ),
142149 ): SSLConfig = {
143150 fromJavaxNetSsl(
@@ -159,6 +166,7 @@ object SSLConfig {
159166 behaviour : HttpBehaviour = HttpBehaviour .Redirect ,
160167 clientAuth : Option [ClientAuth ] = None ,
161168 includeClientCert : Boolean = false ,
169+ @ unroll
162170 protocols : Seq [String ] = Seq (" TLSv1.3" , " TLSv1.2" ),
163171 ): SSLConfig =
164172 new SSLConfig (
0 commit comments