about summary refs log tree commit diff stats
path: root/bonus/gmifetch/gmifetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'bonus/gmifetch/gmifetch.c')
-rw-r--r--bonus/gmifetch/gmifetch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bonus/gmifetch/gmifetch.c b/bonus/gmifetch/gmifetch.c
index 85a7416b..94b3b18d 100644
--- a/bonus/gmifetch/gmifetch.c
+++ b/bonus/gmifetch/gmifetch.c
@@ -22,6 +22,7 @@
 #include <openssl/pem.h>
 #include <openssl/ssl.h>
 #include <pwd.h>
+#include <string.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
@@ -148,13 +149,10 @@ static BIO *conn;
 
 static void setup_ssl(void)
 {
-#define FLAGS (SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_COMPRESSION | \
-	SSL_OP_NO_TLSv1_1)
-
 	SSL_library_init();
 	SSL_load_error_strings();
 	ssl_ctx = SSL_CTX_new(TLS_client_method());
-	SSL_CTX_set_options(ssl_ctx, FLAGS);
+	SSL_CTX_set_min_proto_version(ssl_ctx, TLS1_2_VERSION);
 	if (!(conn = BIO_new_ssl_connect(ssl_ctx)))
 		SDIE("Error creating BIO");
 #undef FLAGS
gt; 2006-08-01 13:59:13 +0200 committer arg@10ksloc.org <unknown> 2006-08-01 13:59:13 +0200 centralized/externalized configuration to config.h' href='/acidbong/suckless/dwm/commit/config.arg.h?h=2.9&id=a73a88280681acdab047bd11a9ba77d97d6a0b72'>a73a882 ^
b38905b ^
a73a882 ^

b355755 ^




a73a882 ^




f504aea ^


a73a882 ^

b355755 ^









a73a882 ^

9955ddc ^


a73a882 ^



e21d93b ^




a73a882 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61