[PATCH 1/1] rework printing for visual host key upper border

Christian Hesse list at eworm.de
Wed Jan 29 18:32:21 EST 2014


Christian Hesse <mail at eworm.de> on Tue, 2014/01/28 12:22:
> Key types are getting longer and the current implementation of visual
> host key breaks with ED25519, resulting in (note the missing bracket):
> 
> +--[ED25519  256--+
> 
> This reworks the calculation of visual host key upper border. Please be
> aware that this may change the output for other key types as well.

Just to show the differences... This is a before and after comparison:

+--[ DSA 1024]----+
+---[DSA 1024]----+

+--[ RSA 2048]----+
+---[RSA 2048]----+

+--[ECDSA  256]---+
+---[ECDSA 256]---+

+--[ED25519  256--+
+--[ED25519 256]--+
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20140129/65c705e9/attachment.bin>


More information about the openssh-unix-dev mailing list