@@ -93,6 +93,7 @@ static TLS_METHOD: SslMethod = SslMethod {
93
93
/// Functions that return `SSL_CIPHER` give static-lifetime pointers.
94
94
pub struct SslCipher {
95
95
pub bits : usize ,
96
+ pub auth : i32 ,
96
97
pub openssl_name : & ' static CStr ,
97
98
pub standard_name : & ' static CStr ,
98
99
pub version : & ' static CStr ,
@@ -139,6 +140,7 @@ impl SslCipher {
139
140
140
141
static TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 : SslCipher = SslCipher {
141
142
rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,
143
+ auth : constants:: NID_AUTH_ECDSA ,
142
144
bits : 128 ,
143
145
openssl_name : c"ECDHE-ECDSA-AES128-GCM-SHA256" ,
144
146
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 {
148
150
149
151
static TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 : SslCipher = SslCipher {
150
152
rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 ,
153
+ auth : constants:: NID_AUTH_ECDSA ,
151
154
bits : 256 ,
152
155
openssl_name : c"ECDHE-ECDSA-AES256-GCM-SHA384" ,
153
156
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 {
157
160
158
161
static TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
159
162
rustls : & provider:: cipher_suite:: TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 ,
163
+ auth : constants:: NID_AUTH_ECDSA ,
160
164
bits : 256 ,
161
165
openssl_name : c"ECDHE-ECDSA-CHACHA20-POLY1305" ,
162
166
standard_name : c"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256" ,
@@ -166,6 +170,7 @@ static TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256: SslCipher = SslCipher {
166
170
167
171
static TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 : SslCipher = SslCipher {
168
172
rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 ,
173
+ auth : constants:: NID_AUTH_RSA ,
169
174
bits : 128 ,
170
175
openssl_name : c"ECDHE-RSA-AES128-GCM-SHA256" ,
171
176
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 {
175
180
176
181
static TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 : SslCipher = SslCipher {
177
182
rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 ,
183
+ auth : constants:: NID_AUTH_RSA ,
178
184
bits : 256 ,
179
185
openssl_name : c"ECDHE-RSA-AES256-GCM-SHA384" ,
180
186
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 {
184
190
185
191
static TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
186
192
rustls : & provider:: cipher_suite:: TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 ,
193
+ auth : constants:: NID_AUTH_RSA ,
187
194
bits : 256 ,
188
195
openssl_name : c"ECDHE-RSA-CHACHA20-POLY1305" ,
189
196
standard_name : c"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256" ,
@@ -193,6 +200,7 @@ static TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256: SslCipher = SslCipher {
193
200
194
201
static TLS13_AES_128_GCM_SHA256 : SslCipher = SslCipher {
195
202
rustls : & provider:: cipher_suite:: TLS13_AES_128_GCM_SHA256 ,
203
+ auth : constants:: NID_AUTH_ANY ,
196
204
bits : 128 ,
197
205
openssl_name : c"TLS_AES_128_GCM_SHA256" ,
198
206
standard_name : c"TLS_AES_128_GCM_SHA256" ,
@@ -202,6 +210,7 @@ static TLS13_AES_128_GCM_SHA256: SslCipher = SslCipher {
202
210
203
211
static TLS13_AES_256_GCM_SHA384 : SslCipher = SslCipher {
204
212
rustls : & provider:: cipher_suite:: TLS13_AES_256_GCM_SHA384 ,
213
+ auth : constants:: NID_AUTH_ANY ,
205
214
bits : 256 ,
206
215
openssl_name : c"TLS_AES_256_GCM_SHA384" ,
207
216
standard_name : c"TLS_AES_256_GCM_SHA384" ,
@@ -211,6 +220,7 @@ static TLS13_AES_256_GCM_SHA384: SslCipher = SslCipher {
211
220
212
221
static TLS13_CHACHA20_POLY1305_SHA256 : SslCipher = SslCipher {
213
222
rustls : & provider:: cipher_suite:: TLS13_CHACHA20_POLY1305_SHA256 ,
223
+ auth : constants:: NID_AUTH_ANY ,
214
224
bits : 256 ,
215
225
openssl_name : c"TLS_CHACHA20_POLY1305_SHA256" ,
216
226
standard_name : c"TLS_CHACHA20_POLY1305_SHA256" ,
0 commit comments