You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
720 B
21 lines
720 B
Index: neon/src/ne_openssl.c |
|
--- neon/src/ne_openssl.c.orig 2010-01-20 21:40:56.000000000 +0100 |
|
+++ neon/src/ne_openssl.c 2010-04-03 21:05:23.000000000 +0200 |
|
@@ -604,6 +604,17 @@ |
|
ne_free(ctx); |
|
} |
|
|
|
+#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER > 0x10000000L |
|
+/* OpenSSL 1.0 removed SSL_SESSION_cmp for no apparent reason - hoping |
|
+ * it is reasonable to assume that comparing the session IDs is |
|
+ * sufficient. */ |
|
+static int SSL_SESSION_cmp(SSL_SESSION *a, SSL_SESSION *b) |
|
+{ |
|
+ return a->session_id_length == b->session_id_length |
|
+ && memcmp(a->session_id, b->session_id, a->session_id_length) == 0; |
|
+} |
|
+#endif |
|
+ |
|
/* For internal use only. */ |
|
int ne__negotiate_ssl(ne_session *sess) |
|
{
|
|
|