/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-options.xml

  • Committer: Teddy Hogeborn
  • Date: 2015-03-10 18:52:09 UTC
  • Revision ID: teddy@recompile.se-20150310185209-lxuovbu09zwyk9bx
Automatically determine the number of DH bits in the TLS handshake.

Instead of using a default value of 1024, check the OpenPGP key and
determine an appropriate number of DH bits to use, (using GnuTLS
functions made for this).  Document this new default behavior.

* plugins.d/mandos-client.c (safe_string): New function.
  (init_gnutls_global): If not specified, determine the number of DH
                        bits to use, based on the OpenPGP key.
* plugins.d/mandos-client.xml (OPTIONS): Document this new default of
                                         the --dh-bits option.

Thanks to Andreas Fischer <af@bantuX.org> for reporting this issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  <para id="priority_compat">
50
50
    GnuTLS priority string for the <acronym>TLS</acronym> handshake.
51
51
    The default is <quote><literal
52
 
    >SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP:+SIGN-RSA-SHA224:</literal>
53
 
    <literal>+SIGN-RSA-RMD160</literal></quote>.
 
52
    >SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP:!RSA</literal>
 
53
    <literal>:+SIGN-RSA-SHA224:+SIGN-RSA-RMD160</literal></quote>.
54
54
    See <citerefentry><refentrytitle
55
55
    >gnutls_priority_init</refentrytitle>
56
56
    <manvolnum>3</manvolnum></citerefentry> for the syntax.
57
57
    <emphasis>Warning</emphasis>: changing this may make the
58
58
    <acronym>TLS</acronym> handshake fail, making server-client
59
 
    communication impossible.
 
59
    communication impossible.  Changing this option may also make the
 
60
    network traffic decryptable by an attacker.
60
61
  </para>
61
62
  
62
63
  <para id="priority">
63
64
    GnuTLS priority string for the <acronym>TLS</acronym> handshake.
64
65
    The default is <quote><literal
65
 
    >SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP</literal></quote>.  See
66
 
    <citerefentry><refentrytitle >gnutls_priority_init</refentrytitle>
 
66
    >SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP:!RSA</literal></quote>.
 
67
    See <citerefentry><refentrytitle
 
68
    >gnutls_priority_init</refentrytitle>
67
69
    <manvolnum>3</manvolnum></citerefentry> for the syntax.
68
70
    <emphasis>Warning</emphasis>: changing this may make the
69
71
    <acronym>TLS</acronym> handshake fail, making server-client
70
 
    communication impossible.
 
72
    communication impossible.  Changing this option may also make the
 
73
    network traffic decryptable by an attacker.
71
74
  </para>
72
75
  
73
76
  <para id="servicename">