summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-01-04 21:16:37 +0100
committerTimo Weingärtner <timo@tiwe.de>2013-01-07 14:18:40 +0100
commit8d177fb1f42cb80ffbf678669cd726d40f26f123 (patch)
tree4d283d547e78b7a5e9a7f94fc60f68a1dcdf1c97 /README
parentb976b61bd47d0a404d94e390c429ac5e336b261a (diff)
downloadopenssh-known-hosts-8d177fb1f42cb80ffbf678669cd726d40f26f123.tar.gz
implement hostname filtering
Fixes GH-1.
Diffstat (limited to 'README')
-rw-r--r--README15
1 files changed, 15 insertions, 0 deletions
diff --git a/README b/README
index 54c06ca..1953dd1 100644
--- a/README
+++ b/README
@@ -13,6 +13,21 @@ The rest of the variables is plugin-specific.
For examples see /usr/share/doc/openssh-known-hosts/examples/*.
+Writing a hostname filter:
+==========================
+
+Place a file $source.filter next to your $source in
+/etc/openssh-known-hosts/sources.
+
+Each line shall contain a rule consisting of an action, a space and a pattern.
+The first rule with a matching pattern decides: If the action starts with a,
+o, p or y (for accept, admit, allow, ok, pass, permit, print, yes, ...) the
+hostname will be used, otherwise it is discarded. If a key has no hostnames
+left it is discarded as a whole.
+
+An example filter can be found in
+/usr/share/doc/openssh-known-hosts/examples/curl.filter.
+
Writing a plugin:
=================