aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-11-01 17:42:58 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-11-01 17:42:58 +0200
commitb3289e646c030b3465f6895789459cd4437a1707 (patch)
tree1620ee27a1785ca241e1e1cbee9b696ef7e6b5c9
parent38be1d755a1b92c7d118f6aa57daa4156d9ae663 (diff)
downloadvmod-basicauth-b3289e646c030b3465f6895789459cd4437a1707.tar.gz
vmod-basicauth-b3289e646c030b3465f6895789459cd4437a1707.tar.bz2
Add missing copyright headers
-rw-r--r--NEWS14
-rw-r--r--README2
-rw-r--r--src/vmod-basicauth.34
-rw-r--r--tests/Makefile.am16
-rw-r--r--tests/test00.vtc16
-rw-r--r--tests/test01.vtc16
-rw-r--r--tests/test02.vtc16
7 files changed, 81 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index b4e3bb7..ca57666 100644
--- a/NEWS
+++ b/NEWS
@@ -18,20 +18,34 @@ Varnish install location is used by default.
Version 1.1, 2013-07-09
Implement SHA1 passwords.
Version 1.0, 2013-07-07
Initial release.
+Copyright information:
+
+Copyright (C) 2013-2014 Sergey Poznyakoff
+
+ Permission is granted to anyone to make or distribute verbatim copies
+ of this document as received, in any medium, provided that the
+ copyright notice and this permission notice are preserved,
+ thus giving the recipient permission to redistribute in turn.
+
+ Permission is granted to distribute modified versions
+ of this document, or of portions of it,
+ under the above conditions, provided also that they
+ carry prominent notices stating who last changed them.
+
Local variables:
mode: outline
paragraph-separate: "[ ]*$"
eval: (add-hook 'write-file-hooks 'time-stamp)
time-stamp-start: "changes. "
time-stamp-format: "%:y-%02m-%02d"
time-stamp-end: "\n"
end:
diff --git a/README b/README
index 729896f..2193d4e 100644
--- a/README
+++ b/README
@@ -42,25 +42,25 @@ Finally, do the following command as root:
The manual page vmod_basicauth(3) will be available after successful
install. To read it without installing the module, run
'man src/vmod_basicauth.3'.
* Bug reporting
Send bug reports and suggestions to <gray@gnu.org>
* Copyright information:
-Copyright (C) 2013 Sergey Poznyakoff
+Copyright (C) 2013-2014 Sergey Poznyakoff
Permission is granted to anyone to make or distribute verbatim copies
of this document as received, in any medium, provided that the
copyright notice and this permission notice are preserved,
thus giving the recipient permission to redistribute in turn.
Permission is granted to distribute modified versions
of this document, or of portions of it,
under the above conditions, provided also that they
carry prominent notices stating who last changed them.
Local Variables:
diff --git a/src/vmod-basicauth.3 b/src/vmod-basicauth.3
index 78efea1..91236f3 100644
--- a/src/vmod-basicauth.3
+++ b/src/vmod-basicauth.3
@@ -4,25 +4,25 @@
.\" 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
.\" the Free Software Foundation; either version 3, or (at your option)
.\" any later version.
.\"
.\" Vmod-basicauth is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" 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 1 "July 8, 2013" "VMOD-BASICAUTH" "User Reference"
+.TH VMOD-BASICAUTH 1 "November 1, 2014" "VMOD-BASICAUTH" "User Reference"
.SH NAME
vmod-basicauth \- Basic HTTP authentication
.SH SYNOPSIS
.B import basicauth;
.BI "BOOL basicauth.match(STRING " passfile ", STRING " authstr );
.SH DESCRIPTION
The
.B vmod-basicauth
module implements basic HTTP authentication against the password file
created using the
.BR htpasswd (1)
@@ -54,25 +54,25 @@ if (!basicauth.match("/var/www/.htpasswd", req.http.Authorization)) {
. ds package vmod-basicauth
. ds version 1.2
. so download.inc
\}
.SH "SEE ALSO"
.BR vcl (7),
.BR varnishd (1).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
Report bugs to <gray@gnu.org>.
.SH COPYRIGHT
-Copyright \(co 2013 Sergey Poznyakoff
+Copyright \(co 2013-2014 Sergey Poznyakoff
.br
.na
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
.br
.ad
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.\" Local variables:
.\" eval: (add-hook 'write-file-hooks 'time-stamp)
.\" time-stamp-start: ".TH [A-Z_][A-Z0-9_.-]* [0-9] \""
.\" time-stamp-format: "%:B %:d, %:y"
.\" time-stamp-end: "\""
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4c32621..700c8c6 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,12 +1,28 @@
+# This file is part of vmod-basicauth
+# Copyright (C) 2013-2014 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
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Vmod-basicauth is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with vmod-basicauth. If not, see <http://www.gnu.org/licenses/>.
+
VMOD_TESTS = \
test00.vtc\
test01.vtc\
test02.vtc\
test03.vtc
EXTRA_DIST=$(VMOD_TESTS) htpasswd
check:
cd $(abs_srcdir); \
for t in $(VMOD_TESTS); do \
$(VARNISHSRC)/bin/varnishtest/varnishtest \
diff --git a/tests/test00.vtc b/tests/test00.vtc
index 7876677..17b4ead 100644
--- a/tests/test00.vtc
+++ b/tests/test00.vtc
@@ -1,12 +1,28 @@
+# This file is part of vmod-basicauth
+# Copyright (C) 2013-2014 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
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Vmod-basicauth is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with vmod-basicauth. If not, see <http://www.gnu.org/licenses/>.
+
varnishtest "Test basic HTTP authentication: PLAIN"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import basicauth from "${vmod_topbuild}/src/.libs/libvmod_basicauth.so";
sub vcl_deliver {
set resp.http.result = basicauth.match("${vmod_topsrc}/tests/htpasswd", "Basic bWV0aG9kLXBsYWluOmd1ZXNzbWUtcGxhaW4=");
}
diff --git a/tests/test01.vtc b/tests/test01.vtc
index f419271..21c00d7 100644
--- a/tests/test01.vtc
+++ b/tests/test01.vtc
@@ -1,12 +1,28 @@
+# This file is part of vmod-basicauth
+# Copyright (C) 2013-2014 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
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Vmod-basicauth is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with vmod-basicauth. If not, see <http://www.gnu.org/licenses/>.
+
varnishtest "Test basic HTTP authentication: CRYPT"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import basicauth from "${vmod_topbuild}/src/.libs/libvmod_basicauth.so";
sub vcl_deliver {
set resp.http.result = basicauth.match("${vmod_topsrc}/tests/htpasswd", "Basic bWV0aG9kLWNyeXB0Omd1ZXNzbWUtY3J5cHQ=");
}
diff --git a/tests/test02.vtc b/tests/test02.vtc
index a6759bd..d7ede9f 100644
--- a/tests/test02.vtc
+++ b/tests/test02.vtc
@@ -1,12 +1,28 @@
+# This file is part of vmod-basicauth
+# Copyright (C) 2013-2014 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
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Vmod-basicauth is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with vmod-basicauth. If not, see <http://www.gnu.org/licenses/>.
+
varnishtest "Test basic HTTP authentication: APR MD5"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import basicauth from "${vmod_topbuild}/src/.libs/libvmod_basicauth.so";
sub vcl_deliver {
set resp.http.result = basicauth.match("${vmod_topsrc}/tests/htpasswd", "Basic bWV0aG9kLW1kNTpndWVzc21lLW1kNQ==");
}

Return to:

Send suggestions and report system problems to the System administrator.