void-packages/srcpkgs/sitecopy/patches/fix-sslv2.patch
Jürgen Buchmüller bdd22329f5 New packages: sitecopy-0.16.6
Closes #4067
2016-05-12 09:58:25 +02:00

20 lines
941 B
Diff

--- lib/neon/ne_openssl.c 2008-02-06 12:27:38.000000000 +0100
+++ lib/neon/ne_openssl.c 2016-05-11 23:11:29.244939342 +0200
@@ -550,7 +550,7 @@
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;
@@ -688,7 +688,7 @@
if (ctx->sess) {
SSL_SESSION *newsess = SSL_get0_session(ssl);
/* Replace the session if it has changed. */
- if (newsess != ctx->sess || SSL_SESSION_cmp(ctx->sess, newsess)) {
+ if (newsess != ctx->sess || memcmp(ctx->sess, newsess, sizeof(*newsess))) {
SSL_SESSION_free(ctx->sess);
ctx->sess = SSL_get1_session(ssl); /* bumping the refcount */
}