]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed an unintentional change in the options calculated key size.
authorAdriaan de Jong <dejong@fox-it.com>
Thu, 14 Jul 2011 18:50:29 +0000 (20:50 +0200)
committerDavid Sommerseth <davids@redhat.com>
Sat, 22 Oct 2011 16:00:34 +0000 (18:00 +0200)
It is now in bits again.

Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
options.c

index 39854399083c068b83b0d415485f22404d4f57e1..39e7a5719cc2af391b3e56e808cec159b25c4ac5 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2812,7 +2812,7 @@ options_string (const struct options *o,
 
        buf_printf (&out, ",cipher %s", cipher_kt_name (kt.cipher));
        buf_printf (&out, ",auth %s", md_kt_name (kt.digest));
-       buf_printf (&out, ",keysize %d", kt.cipher_length);
+       buf_printf (&out, ",keysize %d", kt.cipher_length * 8);
        if (o->shared_secret_file)
          buf_printf (&out, ",secret");
        if (!o->replay)