aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS7
-rw-r--r--README4
-rw-r--r--configure.ac6
-rw-r--r--src/vmod-basicauth.38
-rw-r--r--src/vmod_basicauth.c6
5 files changed, 18 insertions, 13 deletions
diff --git a/NEWS b/NEWS
index 139c25f..47b773d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,8 +1,13 @@
-Vmod-basicauth NEWS -- history of user-visible changes. 2020-04-09
+Vmod-basicauth NEWS -- history of user-visible changes. 2022-06-25
See the end of file for copying conditions.
Please send Vmod-basicauth bug reports to <gray@gnu.org>
+Version 2.0, 2022-06-25
+
+* Support for Varnish 7.1
+
+
Version 1.9, 2020-04-09
* Support for Varnish versions 6.0.0 - 6.4.0
diff --git a/README b/README
index 5e8f2d7..2bec183 100644
--- a/README
+++ b/README
@@ -7,7 +7,7 @@ This module implements basic HTTP authentication against the password file
created with the htpasswd(1) utility. The following password hashes are
supported: Apache MD5, crypt(3), SHA1, and plaintext.
-The module has been tested with Varnish versions 6.0.0 to 6.4.0.
+The module has been tested with Varnish versions 6.0.0 to 7.1.0.
* Example
@@ -64,7 +64,7 @@ Send bug reports and suggestions to <gray@gnu.org>
* Copyright information:
-Copyright (C) 2013-2018 Sergey Poznyakoff
+Copyright (C) 2013-2022 Sergey Poznyakoff
Permission is granted to anyone to make or distribute verbatim copies
of this document as received, in any medium, provided that the
diff --git a/configure.ac b/configure.ac
index 4572f8d..bda9ac1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
# This file is part of vmod-basicauth -*- autoconf -*-
-# Copyright (C) 2013-2020 Sergey Poznyakoff
+# Copyright (C) 2013-2022 Sergey Poznyakoff
#
# Vmod-basicauth is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with vmod-basicauth. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ(2.69)
-AC_INIT([vmod-basicauth], 1.9, [gray@gnu.org])
+AC_INIT([vmod-basicauth], 2.0, [gray@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(src/vmod_basicauth.vcc)
@@ -42,7 +42,7 @@ AC_PROG_MAKE_SET
AC_HEADER_STDC
AC_CHECK_HEADERS([sys/stdlib.h crypt.h])
-AM_VARNISHAPI([6.0.0],[6.4.0])
+AM_VARNISHAPI([6.0.0],[7.1.0])
AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR],
[Varnish API major version number])
AC_DEFINE_UNQUOTED([VARNISHAPI_MINOR],[$VARNISHAPI_MINOR],
diff --git a/src/vmod-basicauth.3 b/src/vmod-basicauth.3
index ca9d71c..c6c6136 100644
--- a/src/vmod-basicauth.3
+++ b/src/vmod-basicauth.3
@@ -1,5 +1,5 @@
.\" This file is part of Vmod-basicauth -*- nroff -*-
-.\" Copyright (C) 2013-2020 Sergey Poznyakoff
+.\" Copyright (C) 2013-2022 Sergey Poznyakoff
.\"
.\" Vmod-basicauth is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
@@ -13,7 +13,7 @@
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with vmod-basicauth. If not, see <http://www.gnu.org/licenses/>.
-.TH VMOD-BASICAUTH 3 "April 9, 2020" "VMOD-BASICAUTH" "User Reference"
+.TH VMOD-BASICAUTH 3 "June 25, 2022" "VMOD-BASICAUTH" "User Reference"
.SH NAME
vmod-basicauth \- Basic HTTP authentication
.SH SYNOPSIS
@@ -62,7 +62,7 @@ sub vcl_synth {
.\" for man-based doc pages.
.if "\V[MANCGI]"WEBDOC" \{\
. ds package vmod-basicauth
-. ds version 1.9
+. ds version 2.0
. so download.inc
\}
.SH "SEE ALSO"
@@ -73,7 +73,7 @@ Sergey Poznyakoff
.SH "BUG REPORTS"
Report bugs to <gray@gnu.org>.
.SH COPYRIGHT
-Copyright \(co 2013-2020 Sergey Poznyakoff
+Copyright \(co 2013-2022 Sergey Poznyakoff
.br
.na
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
diff --git a/src/vmod_basicauth.c b/src/vmod_basicauth.c
index 6e748b9..24be829 100644
--- a/src/vmod_basicauth.c
+++ b/src/vmod_basicauth.c
@@ -1,5 +1,5 @@
/* This file is part of vmod-basicauth
- Copyright (C) 2013-2014 Sergey Poznyakoff
+ Copyright (C) 2013-2022 Sergey Poznyakoff
Vmod-basicauth is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -88,7 +88,7 @@ struct priv_data {
struct crypt_data cdat;
};
-#if VARNISHAPI_MINOR >= 6
+#if (VARNISHAPI_MAJOR == 6 && VARNISHAPI_MINOR >= 6) || VARNISHAPI_MAJOR > 6
static void
fini_priv_data(VRT_CTX, void *ptr)
{
@@ -109,7 +109,7 @@ get_priv_data(struct vmod_priv *priv)
struct priv_data *p = malloc(sizeof(*p));
p->cdat.initialized = 0;
priv->priv = p;
-#if VARNISHAPI_MINOR >= 6
+#if (VARNISHAPI_MAJOR == 6 && VARNISHAPI_MINOR >= 6) || VARNISHAPI_MAJOR > 6
priv->methods = free_priv_data_methods;
#else
priv->free = free;

Return to:

Send suggestions and report system problems to the System administrator.