aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/cadaver/cadaver.SlackBuild12
-rw-r--r--network/cadaver/disable-sslv2.patch16
2 files changed, 24 insertions, 4 deletions
diff --git a/network/cadaver/cadaver.SlackBuild b/network/cadaver/cadaver.SlackBuild
index 2decf724eac7..63617ee68857 100644
--- a/network/cadaver/cadaver.SlackBuild
+++ b/network/cadaver/cadaver.SlackBuild
@@ -45,10 +45,14 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Disable SSLv2 (no longer in openssl)
+# https://projects.archlinux.org/svntogit/community.git/plain/trunk/disable-sslv2.patch?h=packages/cadaver
+patch -p1 < $CWD/disable-sslv2.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
diff --git a/network/cadaver/disable-sslv2.patch b/network/cadaver/disable-sslv2.patch
new file mode 100644
index 000000000000..c7a34ed54570
--- /dev/null
+++ b/network/cadaver/disable-sslv2.patch
@@ -0,0 +1,16 @@
+diff -u -r cadaver-0.23.3/lib/neon/ne_openssl.c cadaver-0.23.3-nossl2/lib/neon/ne_openssl.c
+--- cadaver-0.23.3/lib/neon/ne_openssl.c 2009-09-13 13:26:52.000000000 +0200
++++ cadaver-0.23.3-nossl2/lib/neon/ne_openssl.c 2016-03-03 13:13:14.207713538 +0100
+@@ -564,11 +564,8 @@
+ /* enable workarounds for buggy SSL server implementations */
+ SSL_CTX_set_options(ctx->ctx, SSL_OP_ALL);
+ SSL_CTX_set_verify(ctx->ctx, SSL_VERIFY_PEER, verify_callback);
+- } else if (mode == NE_SSL_CTX_SERVER) {
+- ctx->ctx = SSL_CTX_new(SSLv23_server_method());
+- SSL_CTX_set_session_cache_mode(ctx->ctx, SSL_SESS_CACHE_CLIENT);
+ } else {
+- ctx->ctx = SSL_CTX_new(SSLv2_server_method());
++ ctx->ctx = SSL_CTX_new(SSLv23_server_method());
+ SSL_CTX_set_session_cache_mode(ctx->ctx, SSL_SESS_CACHE_CLIENT);
+ }
+ return ctx;