@@ -93,6 +93,7 @@ static TLS_METHOD: SslMethod = SslMethod {
9393/// Functions that return `SSL_CIPHER` give static-lifetime pointers.
9494pub struct SslCipher {
9595 pub bits : usize ,
96+ pub auth : i32 ,
9697 pub openssl_name : & ' static CStr ,
9798 pub standard_name : & ' static CStr ,
9899 pub version : & ' static CStr ,
@@ -139,6 +140,7 @@ impl SslCipher {
139140
140141static TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 : SslCipher = SslCipher {
141142 rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,
143+ auth : constants:: NID_AUTH_ECDSA ,
142144 bits : 128 ,
143145 openssl_name : c"ECDHE-ECDSA-AES128-GCM-SHA256" ,
144146 standard_name : c"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" ,
@@ -148,6 +150,7 @@ static TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: SslCipher = SslCipher {
148150
149151static TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 : SslCipher = SslCipher {
150152 rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 ,
153+ auth : constants:: NID_AUTH_ECDSA ,
151154 bits : 256 ,
152155 openssl_name : c"ECDHE-ECDSA-AES256-GCM-SHA384" ,
153156 standard_name : c"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" ,
@@ -157,6 +160,7 @@ static TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: SslCipher = SslCipher {
157160
158161static TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
159162 rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 ,
163+ auth : constants:: NID_AUTH_ECDSA ,
160164 bits : 256 ,
161165 openssl_name : c"ECDHE-ECDSA-CHACHA20-POLY1305" ,
162166 standard_name : c"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256" ,
@@ -166,6 +170,7 @@ static TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256: SslCipher = SslCipher {
166170
167171static TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 : SslCipher = SslCipher {
168172 rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ,
173+ auth : constants:: NID_AUTH_RSA ,
169174 bits : 128 ,
170175 openssl_name : c"ECDHE-RSA-AES128-GCM-SHA256" ,
171176 standard_name : c"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" ,
@@ -175,6 +180,7 @@ static TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: SslCipher = SslCipher {
175180
176181static TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 : SslCipher = SslCipher {
177182 rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,
183+ auth : constants:: NID_AUTH_RSA ,
178184 bits : 256 ,
179185 openssl_name : c"ECDHE-RSA-AES256-GCM-SHA384" ,
180186 standard_name : c"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" ,
@@ -184,6 +190,7 @@ static TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: SslCipher = SslCipher {
184190
185191static TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
186192 rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 ,
193+ auth : constants:: NID_AUTH_RSA ,
187194 bits : 256 ,
188195 openssl_name : c"ECDHE-RSA-CHACHA20-POLY1305" ,
189196 standard_name : c"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256" ,
@@ -193,6 +200,7 @@ static TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256: SslCipher = SslCipher {
193200
194201static TLS13_AES_128_GCM_SHA256 : SslCipher = SslCipher {
195202 rustls : & provider:: cipher_suite:: TLS13_AES_128_GCM_SHA256 ,
203+ auth : constants:: NID_AUTH_ANY ,
196204 bits : 128 ,
197205 openssl_name : c"TLS_AES_128_GCM_SHA256" ,
198206 standard_name : c"TLS_AES_128_GCM_SHA256" ,
@@ -202,6 +210,7 @@ static TLS13_AES_128_GCM_SHA256: SslCipher = SslCipher {
202210
203211static TLS13_AES_256_GCM_SHA384 : SslCipher = SslCipher {
204212 rustls : & provider:: cipher_suite:: TLS13_AES_256_GCM_SHA384 ,
213+ auth : constants:: NID_AUTH_ANY ,
205214 bits : 256 ,
206215 openssl_name : c"TLS_AES_256_GCM_SHA384" ,
207216 standard_name : c"TLS_AES_256_GCM_SHA384" ,
@@ -211,6 +220,7 @@ static TLS13_AES_256_GCM_SHA384: SslCipher = SslCipher {
211220
212221static TLS13_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
213222 rustls : & provider:: cipher_suite:: TLS13_CHACHA20_POLY1305_SHA256 ,
223+ auth : constants:: NID_AUTH_ANY ,
214224 bits : 256 ,
215225 openssl_name : c"TLS_CHACHA20_POLY1305_SHA256" ,
216226 standard_name : c"TLS_CHACHA20_POLY1305_SHA256" ,
0 commit comments