summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-07-27 13:51:27 +0000
committerjoerg <joerg@pkgsrc.org>2008-07-27 13:51:27 +0000
commita01e962e61690890a248fbc0d01f433e3d3438e8 (patch)
tree5f2b93cba12c179398544de1ab463d07e6dbfe9a /net
parent3c4ba4948e0dff7d5d2bc082c26ea35a332f609e (diff)
downloadpkgsrc-a01e962e61690890a248fbc0d01f433e3d3438e8.tar.gz
Deal with OpenSSL const changes as suggested by wiz.
Diffstat (limited to 'net')
-rw-r--r--net/libfetch/files/common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/libfetch/files/common.h b/net/libfetch/files/common.h
index 49890ed29a6..6aef138fdf4 100644
--- a/net/libfetch/files/common.h
+++ b/net/libfetch/files/common.h
@@ -1,4 +1,4 @@
-/* $NetBSD: common.h,v 1.7 2008/04/24 07:55:00 joerg Exp $ */
+/* $NetBSD: common.h,v 1.8 2008/07/27 13:51:27 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* All rights reserved.
@@ -62,7 +62,11 @@ struct fetchconn {
SSL *ssl; /* SSL handle */
SSL_CTX *ssl_ctx; /* SSL context */
X509 *ssl_cert; /* server certificate */
- SSL_METHOD *ssl_meth; /* SSL method */
+# if OPENSSL_VERSION_NUMBER < 0x00909000L
+ SSL_METHOD *ssl_meth; /* SSL method */
+# else
+ const SSL_METHOD *ssl_meth; /* SSL method */
+# endif
#endif
int ref; /* reference count */
};