bin/sign: Allow domain to be set in the hosts file.
[ssh-ca] / bin / sign
index ecd139e..fbdadc6 100755 (executable)
--- a/bin/sign
+++ b/bin/sign
@@ -36,6 +36,10 @@ while read line <&3; do
 
   ## Read the host line.
   set -- $line
+  case "$1" in
+    @domain) domain=$2 ;;
+    @*) echo >&2 "$0: unknown directive \`$1'"; exit 1 ;;
+  esac
   host=$1
   names=""
   nicks=""