mirror of
https://github.com/curl/curl.git
synced 2026-08-03 13:00:29 +03:00
wolfssl: support setting cipher list
This commit is contained in:
parent
5d7a7fcdcb
commit
bbee0d4eee
3 changed files with 126 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ cyassl_connect_step1(struct connectdata *conn,
|
|||
int sockindex)
|
||||
{
|
||||
char error_buffer[CYASSL_MAX_ERROR_SZ];
|
||||
char *ciphers;
|
||||
struct Curl_easy *data = conn->data;
|
||||
struct ssl_connect_data* conssl = &conn->ssl[sockindex];
|
||||
SSL_METHOD* req_method = NULL;
|
||||
|
|
@ -229,6 +230,15 @@ cyassl_connect_step1(struct connectdata *conn,
|
|||
break;
|
||||
}
|
||||
|
||||
ciphers = SSL_CONN_CONFIG(cipher_list);
|
||||
if(ciphers) {
|
||||
if(!SSL_CTX_set_cipher_list(conssl->ctx, ciphers)) {
|
||||
failf(data, "failed setting cipher list: %s", ciphers);
|
||||
return CURLE_SSL_CIPHER;
|
||||
}
|
||||
infof(data, "Cipher selection: %s\n", ciphers);
|
||||
}
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
/* load trusted cacert */
|
||||
if(SSL_CONN_CONFIG(CAfile)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue