$NetBSD: patch-aa,v 1.1 2009/07/30 14:54:39 drochner Exp $

--- SSLeay.xs.orig	2008-07-24 03:03:22.000000000 +0200
+++ SSLeay.xs
@@ -89,6 +89,7 @@ extern "C" {
  */
 #undef _
 
+#define BLOCK osslBLOCK
 #include <openssl/err.h>
 #include <openssl/lhash.h>
 #include <openssl/rand.h>
@@ -1243,6 +1244,14 @@ SSL_CTX_set_options(ctx,op)
      SSL_CTX *      ctx
      long	    op
 
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+
+LHASH_OF(SSL_SESSION) *
+SSL_CTX_sessions(ctx)
+     SSL_CTX *          ctx
+
+#else
+
 LHASH *
 SSL_CTX_sessions(ctx)
      SSL_CTX *          ctx
@@ -1253,6 +1262,8 @@ SSL_CTX_sessions(ctx)
      OUTPUT:
      RETVAL
 
+#endif
+
 unsigned long
 SSL_CTX_sess_number(ctx)
      SSL_CTX *          ctx
@@ -2124,11 +2135,6 @@ int 
 SSL_renegotiate(s)
      SSL *	s
 
-int	
-SSL_SESSION_cmp(a,b)
-     SSL_SESSION *	a
-     SSL_SESSION *	b
-
 void *
 SSL_SESSION_get_ex_data(ss,idx)
      SSL_SESSION *	ss
