@@ -94,6 +94,7 @@ static TLS_METHOD: SslMethod = SslMethod {
9494pub struct SslCipher {
9595 pub bits : usize ,
9696 pub auth : i32 ,
97+ pub kx : i32 ,
9798 pub openssl_name : & ' static CStr ,
9899 pub standard_name : & ' static CStr ,
99100 pub version : & ' static CStr ,
@@ -141,6 +142,7 @@ impl SslCipher {
141142static TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 : SslCipher = SslCipher {
142143 rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,
143144 auth : constants:: NID_AUTH_ECDSA ,
145+ kx : constants:: NID_KX_ECDHE ,
144146 bits : 128 ,
145147 openssl_name : c"ECDHE-ECDSA-AES128-GCM-SHA256" ,
146148 standard_name : c"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" ,
@@ -151,6 +153,7 @@ static TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: SslCipher = SslCipher {
151153static TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 : SslCipher = SslCipher {
152154 rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 ,
153155 auth : constants:: NID_AUTH_ECDSA ,
156+ kx : constants:: NID_KX_ECDHE ,
154157 bits : 256 ,
155158 openssl_name : c"ECDHE-ECDSA-AES256-GCM-SHA384" ,
156159 standard_name : c"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" ,
@@ -161,6 +164,7 @@ static TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: SslCipher = SslCipher {
161164static TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
162165 rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 ,
163166 auth : constants:: NID_AUTH_ECDSA ,
167+ kx : constants:: NID_KX_ECDHE ,
164168 bits : 256 ,
165169 openssl_name : c"ECDHE-ECDSA-CHACHA20-POLY1305" ,
166170 standard_name : c"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256" ,
@@ -171,6 +175,7 @@ static TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256: SslCipher = SslCipher {
171175static TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 : SslCipher = SslCipher {
172176 rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ,
173177 auth : constants:: NID_AUTH_RSA ,
178+ kx : constants:: NID_KX_ECDHE ,
174179 bits : 128 ,
175180 openssl_name : c"ECDHE-RSA-AES128-GCM-SHA256" ,
176181 standard_name : c"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" ,
@@ -181,6 +186,7 @@ static TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: SslCipher = SslCipher {
181186static TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 : SslCipher = SslCipher {
182187 rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,
183188 auth : constants:: NID_AUTH_RSA ,
189+ kx : constants:: NID_KX_ECDHE ,
184190 bits : 256 ,
185191 openssl_name : c"ECDHE-RSA-AES256-GCM-SHA384" ,
186192 standard_name : c"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" ,
@@ -191,6 +197,7 @@ static TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: SslCipher = SslCipher {
191197static TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
192198 rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 ,
193199 auth : constants:: NID_AUTH_RSA ,
200+ kx : constants:: NID_KX_ECDHE ,
194201 bits : 256 ,
195202 openssl_name : c"ECDHE-RSA-CHACHA20-POLY1305" ,
196203 standard_name : c"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256" ,
@@ -201,6 +208,7 @@ static TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256: SslCipher = SslCipher {
201208static TLS13_AES_128_GCM_SHA256 : SslCipher = SslCipher {
202209 rustls : & provider:: cipher_suite:: TLS13_AES_128_GCM_SHA256 ,
203210 auth : constants:: NID_AUTH_ANY ,
211+ kx : constants:: NID_KX_ANY ,
204212 bits : 128 ,
205213 openssl_name : c"TLS_AES_128_GCM_SHA256" ,
206214 standard_name : c"TLS_AES_128_GCM_SHA256" ,
@@ -211,6 +219,7 @@ static TLS13_AES_128_GCM_SHA256: SslCipher = SslCipher {
211219static TLS13_AES_256_GCM_SHA384 : SslCipher = SslCipher {
212220 rustls : & provider:: cipher_suite:: TLS13_AES_256_GCM_SHA384 ,
213221 auth : constants:: NID_AUTH_ANY ,
222+ kx : constants:: NID_KX_ANY ,
214223 bits : 256 ,
215224 openssl_name : c"TLS_AES_256_GCM_SHA384" ,
216225 standard_name : c"TLS_AES_256_GCM_SHA384" ,
@@ -221,6 +230,7 @@ static TLS13_AES_256_GCM_SHA384: SslCipher = SslCipher {
221230static TLS13_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
222231 rustls : & provider:: cipher_suite:: TLS13_CHACHA20_POLY1305_SHA256 ,
223232 auth : constants:: NID_AUTH_ANY ,
233+ kx : constants:: NID_KX_ANY ,
224234 bits : 256 ,
225235 openssl_name : c"TLS_CHACHA20_POLY1305_SHA256" ,
226236 standard_name : c"TLS_CHACHA20_POLY1305_SHA256" ,
0 commit comments