[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ECC
[Thread Prev] | [Thread Next]
- Subject: Re: ECC
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sat, 15 Feb 2014 11:27:08 +0100
- To: libssh@xxxxxxxxxx
On Friday 14 February 2014 16:41:42 you wrote: > For what it's worth, the attached patch should at fix the missing > option (and remove some duplication in the key option code). Thanks for your patch. I have some comments. @@ -42,6 +42,7 @@ enum ssh_bind_options_e { SSH_BIND_OPTIONS_HOSTKEY, SSH_BIND_OPTIONS_DSAKEY, SSH_BIND_OPTIONS_RSAKEY, + SSH_BIND_OPTIONS_ECDSAKEY, SSH_BIND_OPTIONS_BANNER, SSH_BIND_OPTIONS_LOG_VERBOSITY, SSH_BIND_OPTIONS_LOG_VERBOSITY_STR This will break the ABI. The option should be added at the end of the enum! I know that the style is pretty broken in libssh and I need to write a styleguide. Please use 4 spaces and pki.c or pki_crypt.c should be the style to use. if (ssh_bind_set_key(sshbind, &sshbind->dsakey, value) < 0) { should be: rc = ssh_bind_set_key(sshbind, &sshbind->dsakey, value); if (rc < 0) {} http://blog.cryptomilk.org/2013/03/28/writing-and-reading-code/ I will integrate the full example soon. So we can work on that and extend it with ecdsa support. -- andreas
Archive administrator: postmaster@lists.cynapses.org