ucspi-ssl
0.13.03
ucspi-ssl
Loading...
Searching...
No Matches
ucspi-ssl-0.13.03
src
ssl_ciphers.c
Go to the documentation of this file.
1
#include "
ucspissl.h
"
2
3
int
ssl_ciphers
(SSL_CTX *
ctx
,
const
char
*
ciphers
) {
4
int
r = 0;
// no cipher selected
5
6
if
(!
ciphers
)
return
-1;
7
8
/* TLS <= 1.2 SSL_CTX_set_cipher_list()
9
TLS = 1.3 SSL_CTX_set_ciphersuites() [only OpenSSL here]
10
11
see: https://community.openvpn.net/openvpn/ticket/1159
12
*/
13
r = SSL_CTX_set_ciphersuites(
ctx
,
ciphers
);
14
15
return
r;
16
}
17
ssl_ciphers
int ssl_ciphers(SSL_CTX *ctx, const char *ciphers)
Definition:
ssl_ciphers.c:3
ciphers
const char * ciphers
Definition:
sslclient.c:111
ctx
SSL_CTX * ctx
Definition:
sslclient.c:105
ucspissl.h
Header file to be used with sqmail; previously called ssl.h. (name clash)
Generated on Mon Sep 23 2024 11:30:08 for ucspi-ssl by
1.9.6