summaryrefslogtreecommitdiffstats
path: root/include/libssh
Commit message (Collapse)AuthorAgeFilesLines
* buffer: expose ssh_buffer_get()wip/expose_buffer_methodsFabiano Fidêncio2015-10-122-3/+1
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: expose ssh_buffer_{add,get}_data()Fabiano Fidêncio2015-10-122-2/+2
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: expose ssh_buffer_reinit()Fabiano Fidêncio2015-10-122-1/+1
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* libssh.h: move LIBSSH_API buffer' functions to libssh.hFabiano Fidêncio2015-10-122-4/+4
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: remove ssh_buffer_get_begin()Fabiano Fidêncio2015-10-121-1/+0
| | | | | | | | Note that removing ssh_buffer_get_begin() doesn't break API compatibility, as this functions has never been exposed (it only has the LIBSSH_API prefix). Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: remove ssh_buffer_get_rest_len()Fabiano Fidêncio2015-10-121-3/+2
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: rename ssh_buffer_get_rest() to ssh_buffer_get()Fabiano Fidêncio2015-10-121-1/+1
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the packet (non-static) functionsFabiano Fidêncio2015-10-121-9/+9
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the gcrypt missing functionsFabiano Fidêncio2015-10-121-4/+4
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the kex (non-static) functionsFabiano Fidêncio2015-10-121-3/+3
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the dh (non-static) functionsFabiano Fidêncio2015-10-121-14/+14
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the channels (non-static) functionsFabiano Fidêncio2015-10-121-6/+6
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the buffer (non-static) functionsFabiano Fidêncio2015-10-121-22/+22
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the blf (non-static) functionsFabiano Fidêncio2015-10-121-13/+13
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the bignum (non-static) functionsFabiano Fidêncio2015-10-121-3/+3
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the agent (non-static) functionsFabiano Fidêncio2015-10-121-4/+4
| | | | | | | Having "ssh_" prefix in the functions' name will avoid possible clashes when compiling libssh statically. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* crypto: old-fashioned aes_ctr when evp_aes_ctr is missingAris Adamantiadis2015-09-251-0/+1
|
* SSH1: fix duplicate identifierAris Adamantiadis2015-09-251-1/+1
|
* libcrypto: clean up EVP functionsAris Adamantiadis2015-09-251-3/+20
|
* pki: Add certificate loading functionsAxel Eppe2015-09-072-0/+13
| | | | | | | | | | | | | - ssh_pki_import_cert_base64() - ssh_pki_import_cert_file() - ssh_pki_import_cert_blob() Those functions are currently simple wrappers around their pubkey counterpart. - ssh_pki_copy_cert_to_privkey() This function copies the cert-specific data to a private key. Signed-off-by: Axel Eppe <aeppe@google.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* pki: Add rsa, dss certificate key type definitionsAxel Eppe2015-09-072-1/+4
| | | | | | | | - Add rsa/dsa (ssh-{rsa,dss}-cert-v01@openssh.com) as key types. - Add a cert_type member in the ssh_key struct. Signed-off-by: Axel Eppe <aeppe@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* pki: Use the standard logging functionAndreas Schneider2015-09-071-5/+0
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* crypto: Add OpenSSL EVP functions for FIPS compatibilityMichael Wilder2015-09-071-7/+5
| | | | Signed-off-by: Michael Wilder <wilder.michael@cimcor.com>
* define our own platform-independent S_IF macrosTilo Eckert2015-07-301-0/+10
| | | | | Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* client: handle agent forward open requests with callbacksFabiano Fidêncio2015-07-072-1/+18
| | | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Aris Adamantiadis <aris@badcode.be>
* include: Add stdarg.h so we can check for va_copy macroAndreas Schneider2015-06-301-0/+1
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* agent: Add ssh_set_agent_socketPeter Volpe2015-06-291-0/+1
| | | | | | | | Allow callers to specify their own socket for an ssh agent. Signed-off-by: Peter Volpe <pvolpe@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* include: Add support for older MSVC versionsAndreas Schneider2015-06-241-0/+4
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* Bump version to 0.7.0Andreas Schneider2015-05-061-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* include: Fix variadic macro issues with MSVCAndreas Schneider2015-05-051-1/+9
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* bind: Correctly close sockets and invalidate them.Andreas Schneider2015-04-101-0/+6
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* external: Use standard int typesAndreas Schneider2015-04-102-17/+23
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* include: Do not make x11 variables constAndreas Schneider2015-04-021-2/+2
| | | | | | | We allocate them and also free them after the callback has been executed. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* cmake: Detect __func__ and __FUNCTION__ during configure stepAndreas Schneider2015-04-022-3/+7
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* include: We should use __func__ which is C99Andreas Schneider2015-04-021-8/+6
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* buffer: buffer_pack & unpack on non-gnu compilersAris Adamantiadis2015-02-081-0/+5
|
* buffer: buffer: Improve argument checking of in ssh_buffer_pack()Andreas Schneider2015-02-021-3/+9
| | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* buffer: Improve argument checking in ssh_buffer_pack()Andreas Schneider2015-02-022-3/+36
| | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
* ed25519: ADd OpenSSH encrypted container importAris Adamantiadis2015-02-021-0/+1
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* external: Add OpenSSH bcrypt and blowfish implementationAris Adamantiadis2015-02-022-0/+92
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* server: Add support for ed25519 keys in the server.Aris Adamantiadis2015-02-022-1/+3
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* ed25519: Add support to export OpenSSH container keysAris Adamantiadis2015-02-021-0/+2
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* ed25519: Add support o import OpenSSH container keysAris Adamantiadis2015-02-021-0/+8
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* pki.h: Replace tabs with spacesAris Adamantiadis2015-02-021-2/+2
| | | | | Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* cmake: Add libsshpp.hpp to the distributed headers list.Léo Peltier2015-01-201-0/+1
| | | | | | BUG: https://red.libssh.org/issues/163 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* session: add getter for kexalgoJon Simons2014-12-051-0/+1
| | | | | Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* pki_crypto.c: plug ecdsa_sig->[r,s] bignum leaksJon Simons2014-12-051-0/+1
| | | | | | | | | | | Per ecdsa(3ssl), ECDSA_SIG_new does allocate its 'r' and 's' bignum fields. Fix a bug where the initial 'r' and 's' bignums were being overwritten with newly-allocated bignums, resulting in a memory leak. BUG: https://red.libssh.org/issues/175 Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* ed25519: Generate, sign and verify keys.Aris2014-09-072-0/+19
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* crypto: Add ed25519 implementation from OpenSSH.Aris Adamantiadis2014-09-076-1/+267
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* buffer: Add a secure buffer mechanism to avoid memory spillsAris Adamantiadis2014-09-071-0/+2
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>