blob: ab5442a8d992da037dc154391f5962166a82a3e0 (
plain)
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
|
--- freeradius-server-3.0.13.orig/src/main/tls.c
+++ freeradius-server-3.0.13/src/main/tls.c
@@ -2131,7 +2131,7 @@
}
if (lookup == 0) {
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && OPENSSL_VERSION_NUMBER < 0x20000000L
ext_list = X509_get0_extensions(client_cert);
#else
X509_CINF *client_inf;
@@ -2903,6 +2903,7 @@
SSL_CTX_set_verify_depth(ctx, conf->verify_depth);
}
+#if OPENSSL_VERSION_NUMBER < 0x20000000L
/* Load randomness */
if (conf->random_file) {
if (!(RAND_load_file(conf->random_file, 1024*10))) {
@@ -2910,6 +2911,7 @@
return NULL;
}
}
+#endif
/*
* Set the cipher list if we were told to
|