openbsd-ports/www/pound/patches/patch-pound_h

31 lines
1.2 KiB
Plaintext

$OpenBSD: patch-pound_h,v 1.1 2010/10/04 08:47:22 sthen Exp $
fix for openssl 1.0
http://www.apsis.ch/pound/pound_list/archive/2010/2010-02/1266065082000
--- pound.h.orig Tue Feb 2 11:49:02 2010
+++ pound.h Sun Oct 3 23:27:58 2010
@@ -322,6 +322,10 @@ typedef struct _tn {
/* maximal session key size */
#define KEY_SIZE 127
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+DECLARE_LHASH_OF(TABNODE);
+#endif
+
/* service definition */
typedef struct _service {
char name[KEY_SIZE + 1]; /* symbolic name */
@@ -337,7 +341,11 @@ typedef struct _service {
int sess_ttl; /* session time-to-live */
regex_t sess_start; /* pattern to identify the session data */
regex_t sess_pat; /* pattern to match the session data */
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+ LHASH_OF(TABNODE) *sessions; /* currently active sessions */
+#else
LHASH *sessions; /* currently active sessions */
+#endif
int dynscale; /* true if the back-ends should be dynamically rescaled */
int disabled; /* true if the service is disabled */
struct _service *next;