summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* buffer: expose ssh_buffer_get()wip/expose_buffer_methodsFabiano Fidêncio2015-10-121-2/+0
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: expose ssh_buffer_{add,get}_data()Fabiano Fidêncio2015-10-121-4/+0
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: expose ssh_buffer_reinit()Fabiano Fidêncio2015-10-121-2/+0
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: remove ssh_buffer_get_begin()Fabiano Fidêncio2015-10-121-17/+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: use ssh_buffer_get() instead of ssh_buffer_get_begin()Fabiano Fidêncio2015-10-128-25/+25
| | | | | | | | | This commit is a preparatory stage for removing ssh_buffer_get_begin(). 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-16/+1
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: do not use ssh_buffer_get_rest_len()Fabiano Fidêncio2015-10-1218-84/+84
| | | | | | | | As ssh_buffer_get_len() actually calls ssh_buffer_get_rest_len(), let's just use the first one. This is a preparatory step for removing ssh_buffer_get_rest_len(). Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* pki_gcrypt: adapt to the new behavior of ssh_buffer_get_len()Fabiano Fidêncio2015-10-121-2/+2
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: make ssh_buffer_get_len() call ssh_buffer_get_rest_len()Fabiano Fidêncio2015-10-121-1/+1
| | | | | | | | This is a preparatory step for having the behavior of ssh_buffer_get_rest_len() in the ssh_buffer_get_len() and then remove the ssh_buffer_rest_len() Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: rename ssh_buffer_get_rest() to ssh_buffer_get()Fabiano Fidêncio2015-10-1217-46/+45
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: cosmetic change in ssh_buffer_get_u8() documentationFabiano Fidêncio2015-10-121-1/+1
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: fix documentation for ssh_buffer_get_u32()Fabiano Fidêncio2015-10-121-6/+10
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* pki_gcrypt: Fix warning about not handled values in switchFabiano Fidêncio2015-10-121-0/+2
| | | | | | | | | | | | | | | /home/ffidenci/src/upstream/libssh/src/pki_gcrypt.c: In function ‘pki_key_compare’: /home/ffidenci/src/upstream/libssh/src/pki_gcrypt.c:1082:5: warning: enumeration value ‘SSH_KEYTYPE_DSS_CERT01’ not handled in switch [-Wswitch] switch (k1->type) { ^ /home/ffidenci/src/upstream/libssh/src/pki_gcrypt.c:1082:5: warning: enumeration value ‘SSH_KEYTYPE_RSA_CERT01’ not handled in switch [-Wswitch] Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* cleanup: use ssh_ prefix in the packet (non-static) functionsFabiano Fidêncio2015-10-1215-69/+69
| | | | | | | 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-2/+2
| | | | | | | 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-124-7/+7
| | | | | | | 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-124-34/+34
| | | | | | | 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-122-12/+12
| | | | | | | 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-1226-405/+405
| | | | | | | 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-122-23/+23
| | | | | | | 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-125-31/+31
| | | | | | | 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-123-8/+8
| | | | | | | 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: fix broken ifdefAris Adamantiadis2015-09-251-2/+2
|
* crypto: old-fashioned aes_ctr when evp_aes_ctr is missingAris Adamantiadis2015-09-251-0/+92
|
* SSH1: fix duplicate identifierAris Adamantiadis2015-09-251-1/+1
|
* libcrypto: clean up EVP functionsAris Adamantiadis2015-09-252-377/+192
|
* moved libcrypto structs to c99 notationAris Adamantiadis2015-09-241-113/+81
|
* crypto: move key setup in newkeys handlerAris Adamantiadis2015-09-243-11/+16
|
* libcrypto: refactor EVP_(de|en)cryptAris Adamantiadis2015-09-231-56/+61
|
* crypto: fix potential memory leak in ECDHHEADmasterAris Adamantiadis2015-09-211-0/+4
|
* kex: Fix zlib compressionAndreas Schneider2015-09-161-0/+1
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* kex: Prefer sha2 over sha1Andreas Schneider2015-09-151-5/+4
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* pki: Fix a memory leak on error in ssh_pki_copy_cert_to_privkey()Andreas Schneider2015-09-091-0/+1
| | | | | | CID 1323516 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* pki: Fix a memory leak in pki_import_cert_buffer()Andreas Schneider2015-09-091-0/+1
| | | | CID #1323517
* pki: Add certificate loading functionsAxel Eppe2015-09-071-2/+110
| | | | | | | | | | | | | - 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 Add new pki_import_cert_buffer functionAxel Eppe2015-09-071-0/+51
| | | | | Signed-off-by: Axel Eppe <aeppe@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* pki: Add rsa, dss certificate key type definitionsAxel Eppe2015-09-073-0/+24
| | | | | | | | - 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-075-97/+109
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* cmake: Handle libssh threas library correctlyAndreas Schneider2015-09-072-2/+8
| | | | | | This should fix the build on Windows and would not install pkg files. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* bignum: Fix OpenSSL crash in SAFE_FREEMichael Wilder2015-09-071-0/+4
| | | | | Signed-off-by: Michael Wilder <wilder.michael@cimcor.com> Reviewed-by: Andreas Schneider <asn@samba.org>
* crypto: Add OpenSSL EVP functions for FIPS compatibilityMichael Wilder2015-09-071-143/+409
| | | | Signed-off-by: Michael Wilder <wilder.michael@cimcor.com>
* server: Fix return code check of ssh_buffer_pack()Andreas Schneider2015-08-181-1/+1
| | | | | | Thanks to Andreas Gutschick <andreas.gutschick@mitel.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* pki: Fix return values of ssh_key_is_(public|private)Andreas Schneider2015-08-101-2/+2
| | | | | | Thanks to Kevin Haake <khaake@red-cocoa.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* sftp: Fix incorrect handling of received length fieldsTilo Eckert2015-08-011-7/+13
| | | | Signed-off-by: Tilo Eckert <tilo.eckert@flam.de>
* auth: Fix return status for ssh_userauth_agent()Peter Volpe2015-07-301-0/+5
| | | | | | | | | | BUG: https://red.libssh.org/issues/201 Return SSH_AUTH_DENIED instead of SSH_AUTH_ERROR when the provided agent offers no public keys. Signed-off-by: Peter Volpe <pvolpe@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* define our own platform-independent S_IF macrosTilo Eckert2015-07-301-24/+16
| | | | | Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* fix file mode checks in sftp_open()Tilo Eckert2015-07-301-8/+7
| | | | | Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* fix permissionsAris Adamantiadis2015-07-081-0/+0
|
* client: handle agent forward open requests with callbacksFabiano Fidêncio2015-07-072-0/+39
| | | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Aris Adamantiadis <aris@badcode.be>
* cmake: Fix zlib include directoryAndreas Schneider2015-07-031-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org>