aboutsummaryrefslogtreecommitdiff
path: root/src/options.c
AgeCommit message (Collapse)AuthorFilesLines
2017-04-11server: Add option SSH_BIND_OPTIONS_IMPORT_KEY to serverAlfredo Mazzinghi1-0/+45
This sets the bind private key directly from an ssh_key struct instead of reading a file. Signed-off-by: Alfredo Mazzinghi <am2419@cl.cam.ac.uk> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-11-05options: Fix log level documentationAndreas Schneider1-4/+4
BUG: https://red.libssh.org/issues/210 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-10-22Remove extra newlines from log/error messagesPino Toscano1-1/+1
Signed-off-by: Pino Toscano <ptoscano@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-02options: Check if a port has been givenJustus Winter1-1/+3
* src/options.c (ssh_options_getopt): Only call 'ssh_options_set' if a port has been given. Signed-off-by: Justus Winter <justus@g10code.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-03options: Document SSH_OPTIONS_ADD_IDENTITYAndreas Schneider1-0/+11
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-02-23options: Fix documentation typoHani Benhabiles1-1/+1
Signed-off-by: Hani Benhabiles <hani@linux.com> Reviewed-by: Andreas Schneider <asn@samba.org>
2016-01-19cleanup: use ssh_ prefix in the kex (non-static) functionsFabiano FidĂȘncio1-1/+1
Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-06-24Don't allocate a new identity list in the new session's options.Seb Boving1-6/+0
The previous list is not freed. Since the new session just got created, an identity list is already allocated and empty. Signed-off-by: Sebastien Boving <seb@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02server: Add support for ed25519 keys in the server.Aris Adamantiadis1-0/+4
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-25options: Fix setting the port.Andreas Schneider1-3/+6
Make sure we correctly read the port from the config file. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-05Set the correct error in ssh_options_set().Hani Benhabiles1-2/+2
Signed-off-by: Hani Benhabiles <hani@linux.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-22Add options support for setting and getting HMAC algorithmsDirkjan Bussink1-0/+20
BUG: https://red.libssh.org/issues/91 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-09doc: Document new meaning of SSH_BIND_OPTIONS_HOSTKEYAlan Dunn1-2/+6
Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-09options: Repurpose SSH_BIND_OPTIONS_HOSTKEY to load host keysAlan Dunn1-21/+51
SSH_BIND_OPTIONS_HOSTKEY will now load host keys of any supported type rather than set the algorithms that the server permits (which seems like an unhelpful option anyway; it seems you can always control this by just loading the right keys). This option has slightly different semantics than the SSH_BIND_OPTIONS_<x>KEY options because it requires the key file to exist immediately rather than on ssh_bind_listen or ssh_bind_accept_fd. The semantics of this option makes more sense to me. We also eliminate ssh_bind_options_set_algo, since it is no longer used. Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-03-27style: be consistent when iterating over wanted_methodsLuka Perkov1-1/+1
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-03-27doc: Improve and consolidate ssh_bind_options_set docsAlan Dunn1-48/+53
Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-03-27doc: Add ECDSA keys to docs, make key docs consistentAlan Dunn1-1/+4
Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-03-27options: Allow use of host ECDSA keyAlan Dunn1-23/+31
Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-01-07src: Update my mail address.Andreas Schneider1-1/+1
2014-01-07update copyright informationAris Adamantiadis1-1/+1
2013-11-18logging: fix server-side loggingAris Adamantiadis1-2/+3
2013-11-15options: Add SSH_OPTIONS_GSSAPI_DELEGATE_CREDENTIALS option.Simo Sorce1-0/+15
Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-11-15options: Add SSH_OPTIONS_GSSAPI_CLIENT_IDENTITY option.Andreas Schneider1-0/+18
2013-11-15gssapi: Add suppport to set GSSAPI server identity.Andreas Schneider1-0/+18
2013-11-04doc: Fix doxygen warnings.Andreas Schneider1-1/+1
2013-11-02ssh_options_get can now return ProxyCommandWilliam Orr1-0/+9
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-22options: Fix compiler warning on Windows.Andreas Schneider1-1/+2
2013-07-21options: Set log level through options too.Andreas Schneider1-0/+1
2013-07-14options: Use the new function to use the log level.Andreas Schneider1-2/+2
2013-07-13options: Fix null ptr deference introduced in earlier fix.Aris Adamantiadis1-0/+7
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-11BUG 103: Disable proxy command if set to 'none'.Andreas Schneider1-4/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2013-06-02opts: Fix segfault in option parser.Andreas Schneider1-3/+11
2013-01-22options: Fix a free crash bug if we parse unknown options.Andreas Schneider1-6/+8
Thanks to Yong Chuan Koh, X-Force Research <kohyc@sg.ibm.com>
2012-10-14options: Fix documentation of ssh_options_get_port().Andreas Schneider1-1/+1
2012-10-12kex: Use getter functions to access kex arrays.Andreas Schneider1-2/+2
This should fix the build on OpenIndiana.
2012-10-12options: Check return code of ssh_iterator_value.Andreas Schneider1-1/+5
Found by Coverity.
2012-10-05options: Fix a memory in ssh_options_copy() on error.Andreas Schneider1-0/+1
2012-10-05options: Fix a memory leak if we can't add an idenity.Andreas Schneider1-0/+1
2012-09-04dh: Add support for diffie-hellman-group14-sha1.Dmitriy Kuznetsov1-1/+1
2012-07-06options: Add option to specify host keys string.Oliver Gasser1-0/+15
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-02-05session: Use a struct for all options.Andreas Schneider1-91/+91
2012-01-03Fix logic erorr with brace-less conditional statementLee Hambley1-1/+2
2011-12-14options: Fix typo in ssh_options_get() docs.Andreas Schneider1-1/+1
2011-11-03options: Add missing argument check.Andreas Schneider1-0/+7
2011-11-03Improve ssh_options_get(ssh_session, enum ssh_options_e, char**).Lee Hambley1-31/+16
* Use SSH_ERROR and SSH_OK instead of `-1` and `0`. * Re-factor for code duplication * No longer call `ssh_set_error_invalid(ssh_session)` when the ssh_session is NULL.
2011-10-28Implement ssh_options_get_port(ssh_session, unsigned int*).Lee Hambley1-0/+26
2011-10-28Implement ssh_options_get(ssh_session, enum ssh_options_e, char**).Lee Hambley1-0/+86
2011-09-18priv: Move options and config prototypes to own header.Andreas Schneider1-0/+1
2011-09-17error: Use macros for error functions.Andreas Schneider1-40/+40
2011-09-06options: Fix NULL value handling.Andreas Schneider1-34/+64