<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl"
	href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
	"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY VERSION "1.0">
<!ENTITY COMMANDNAME "password-request">
]>

<refentry>
  <refentryinfo>
    <title>&COMMANDNAME;</title>
    <!-- NWalsh's docbook scripts use this to generate the footer: -->
    <productname>&COMMANDNAME;</productname>
    <productnumber>&VERSION;</productnumber>
    <authorgroup>
      <author>
	<firstname>Björn</firstname>
	<surname>Påhlsson</surname>
	<address>
	  <email>belorn@fukt.bsnet.se</email>
	</address>
      </author>
      <author>
	<firstname>Teddy</firstname>
	<surname>Hogeborn</surname>
	<address>
	  <email>teddy@fukt.bsnet.se</email>
	</address>
      </author>
    </authorgroup>
    <copyright>
      <year>2008</year>
      <holder>Teddy Hogeborn &amp; Björn Påhlsson</holder>
    </copyright>
    <legalnotice>
      <para>
	This manual page 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 of the License, or (at your option) any
	later version.
      </para>

      <para>
	This manual page 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.
      </para>

      <para>
	You should have received a copy of the GNU General Public
	License along with this program; If not, see
	<ulink url="http://www.gnu.org/licenses/"/>.
      </para>
    </legalnotice>
  </refentryinfo>

  <refmeta>
    <refentrytitle>&COMMANDNAME;</refentrytitle>
    <manvolnum>8mandos</manvolnum>
  </refmeta>
  
  <refnamediv>
    <refname><command>&COMMANDNAME;</command></refname>
    <refpurpose>
      Client for mandos
    </refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <cmdsynopsis>
      <command>&COMMANDNAME;</command>
      <arg choice='opt'>--connect<arg choice='plain'>IP</arg></arg>
      <arg choice='opt'>--keydir<arg choice='plain'>KEYDIR</arg></arg>
      <arg choice='opt'>--interface<arg choice='plain'>INTERFACE</arg></arg>
      <arg choice='opt'>--pubkey<arg choice='plain'>PUBKEY</arg></arg>
      <arg choice='opt'>--seckey<arg choice='plain'>SECKEY</arg></arg>
      <arg choice='opt'>--priority<arg choice='plain'>PRIORITY</arg></arg>
      <arg choice='opt'>--dh-bits<arg choice='plain'>BITS</arg></arg>      
      <arg choice='opt'>--debug</arg>
    </cmdsynopsis>
    <cmdsynopsis>
      <command>&COMMANDNAME;</command>
      <arg choice='plain'>--help</arg>
    </cmdsynopsis>
    <cmdsynopsis>
      <command>&COMMANDNAME;</command>
      <arg choice='plain'>--usage</arg>
    </cmdsynopsis>
    <cmdsynopsis>
      <command>&COMMANDNAME;</command>
      <arg choice='plain'>--version</arg>
    </cmdsynopsis>    
  </refsynopsisdiv>

  <refsect1 id="description">
    <title>DESCRIPTION</title>
    <para>
      <command>&COMMANDNAME;</command> is a mandos plugin that works
      like a client program that through avahi detects mandos servers,
      sets up a gnutls connect and request a encrypted password. Any
      passwords given is automaticly decrypted and passed to
      cryptsetup.
    </para>

    <variablelist>
      <varlistentry>
	<term><literal>-c</literal>, <literal>--connect=<replaceable>
	IP</replaceable></literal></term>
	<listitem>
	  <para>
	    Connect directly to a sepcified mandos server
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-d</literal>, <literal>--keydir=<replaceable>
	KEYDIR</replaceable></literal></term>
	<listitem>
	  <para>
	    Directory where the openpgp keyring is
	  </para>
	</listitem>
      </varlistentry>      

      <varlistentry>
	<term><literal>-i</literal>, <literal>--interface=
	<replaceable>INTERFACE</replaceable></literal></term>
	<listitem>
	  <para>
	    Interface that Avahi will conntect through
	  </para>
	</listitem>
      </varlistentry>      

      <varlistentry>
	<term><literal>-p</literal>, <literal>--pubkey=<replaceable>
	PUBKEY</replaceable></literal></term>
	<listitem>
	  <para>
	    Public openpgp key for gnutls authentication
	  </para>
	</listitem>
      </varlistentry>      

      <varlistentry>
	<term><literal>-s</literal>, <literal>--seckey=<replaceable>
	SECKEY</replaceable></literal></term>
	<listitem>
	  <para>
	    Secret openpgp key for gnutls authentication
	  </para>
	</listitem>
      </varlistentry>            
      
      <varlistentry>
	<term><literal>--priority=<replaceable>PRIORITY</replaceable>
	</literal></term>
	<listitem>
	  <para>
	    GNUTLS priority
	  </para>
	</listitem>
      </varlistentry>            

      <varlistentry>
	<term><literal>--dh-bits=<replaceable>BITS</replaceable>
	</literal></term>
	<listitem>
	  <para>
	    dh-bits to use in gnutls communication
	  </para>
	</listitem>
      </varlistentry>      
      
      <varlistentry>
	<term><literal>--debug</literal></term>
	<listitem>
	  <para>
	    Debug mode
	  </para>
	</listitem>
      </varlistentry>
      
      <varlistentry>
	<term><literal>-?</literal>, <literal>--help</literal></term>
	<listitem>
	  <para>
	    Gives a help message
	  </para>
	</listitem>
      </varlistentry>
      
      <varlistentry>
	<term><literal>--usage</literal></term>
	<listitem>
	  <para>
	    Gives a short usage message
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-V</literal>, <literal>--version</literal></term>
	<listitem>
	  <para>
	    Prints the program version
	  </para>
	</listitem>
      </varlistentry>            
    </variablelist>
  </refsect1>
</refentry>
