mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
radsecproxy: update to 1.8.1
Removed upstreamed OpenSSL patch. Added PKG_BUILD_PARALLEL for faster compilation. Cleaned up Makefile slightly. Ran init script through shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
--- a/tlscommon.c
|
||||
+++ b/tlscommon.c
|
||||
@@ -44,8 +44,8 @@ static uint8_t cookie_secret_initialized = 0;
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000
|
||||
static pthread_mutex_t *ssl_locks = NULL;
|
||||
|
||||
-unsigned long ssl_thread_id() {
|
||||
- return (unsigned long)pthread_self();
|
||||
+void ssl_thread_id(CRYPTO_THREADID *id) {
|
||||
+ CRYPTO_THREADID_set_numeric(id, (unsigned long)pthread_self());
|
||||
}
|
||||
|
||||
void ssl_locking_callback(int mode, int type, const char *file, int line) {
|
||||
@@ -69,7 +69,7 @@ void sslinit() {
|
||||
for (i = 0; i < CRYPTO_num_locks(); i++) {
|
||||
pthread_mutex_init(&ssl_locks[i], NULL);
|
||||
}
|
||||
- CRYPTO_set_id_callback(ssl_thread_id);
|
||||
+ CRYPTO_THREADID_set_callback(ssl_thread_id);
|
||||
CRYPTO_set_locking_callback(ssl_locking_callback);
|
||||
SSL_load_error_strings();
|
||||
#else
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/radsecproxy.c
|
||||
+++ b/radsecproxy.c
|
||||
@@ -3385,15 +3385,13 @@ int radsecproxy_main(int argc, char **ar
|
||||
@@ -3005,15 +3005,13 @@ int radsecproxy_main(int argc, char **argv) {
|
||||
options.loglevel = loglevel;
|
||||
else if (options.loglevel)
|
||||
debug_set_level(options.loglevel);
|
||||
|
||||
Reference in New Issue
Block a user