]>
Commit | Line | Data |
---|---|---|
2a2b5a0b AG |
1 | commit b8c15860719a3ca182b1e7689df231edc68899f5 |
2 | Author: Adam Gołębiowski <adamg@pld-linux.org> | |
3 | Date: Sun Sep 23 16:11:21 2018 +0200 | |
4 | ||
5 | ptstream.c: fix openssl-1.1 warnings | |
6 | ||
7 | diff --git a/ptstream.c b/ptstream.c | |
8 | index d1c5f44..bf3995f 100644 | |
9 | --- a/ptstream.c | |
10 | +++ b/ptstream.c | |
11 | @@ -208,7 +208,7 @@ int check_cert_names(X509 *cert, char *peer_host) { | |
12 | for (i = 0; i < san_count; i++) { | |
13 | gn = sk_GENERAL_NAME_value(gen_names, i); | |
14 | if (gn->type == GEN_DNS && !(peer_host_is_ipv4 || peer_host_is_ipv6)) { | |
15 | - if (check_cert_valid_host((char*)ASN1_STRING_data(gn->d.ia5), peer_host)) { | |
16 | + if (check_cert_valid_host((char*)ASN1_STRING_get0_data(gn->d.ia5), peer_host)) { | |
17 | return 1; | |
18 | } | |
19 | } else if (gn->type == GEN_IPADD) { | |
20 | @@ -254,7 +254,7 @@ int stream_enable_ssl(PTSTREAM *pts, const char *proxy_arg) { | |
21 | /* Initialise the connection */ | |
22 | SSLeay_add_ssl_algorithms(); | |
23 | if (args_info.enforcetls1_flag) { | |
24 | - meth = TLSv1_client_method(); | |
25 | + meth = TLS_client_method(); | |
26 | } else { | |
27 | meth = SSLv23_client_method(); | |
28 | } |