aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-12-07packet: Improve logging outputconnectorAris Adamantiadis2-0/+8
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07sockets: Fix callback registration bugAris Adamantiadis1-2/+3
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07sample: Migrate client to connector APIAris Adamantiadis1-203/+33
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07connector: initial implementationAris Adamantiadis6-5/+698
Some FIXME left in the code. It's not yet clear to me how programmers will want to use connector and have errors reported. ssh_channels already have working callbacks for error notifications, it's just missing for the simple file descriptors.
2015-12-07channels: Move ssh_channel_write_stderr out of server-onlyAris Adamantiadis3-4/+5
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07callbacks: Implement list of callbacks for channelsAris Adamantiadis6-163/+283
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07tests: Add test for ssh_callbacks_iterate()Aris Adamantiadis1-1/+52
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07callback: Add macro to iterate callbacksAris Adamantiadis1-0/+37
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07tests: Add unit test for ssh_callbacks_execute_listAris Adamantiadis1-0/+64
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07callbacks: Add macro for callbacks execute listAris Adamantiadis1-0/+28
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07packets: Handle flow control callbacksAris Adamantiadis2-1/+45
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-12-07events: Add functions for poll objectsAris Adamantiadis2-0/+29
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-11-10headers: fix missing mode_t (2nd)Dirk Neukirchen1-0/+1
Reviewed-By: Aris Adamantiadis <aris@0xbadc0de.be>
2015-11-10Revert "headers: fix missing mode_t"Aris Adamantiadis1-10/+0
I commited a patch file *headdesk* This reverts commit 378fcccc0ac914254151f69cebb47e9b2c06bd31.
2015-11-10headers: fix missing mode_tDirk Neukirchen1-0/+10
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> Reviewed-by: Aris Adamantiadis <aris@0xbadc0de.be>
2015-10-28Ignore all build and obj* directoriesAndreas Schneider2-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-10-27Doc: remove mentions of des-cbc-ssh1Aris Adamantiadis1-1/+1
2015-10-22libcrypto: Fix build with DEBUG_CRYPTO turned onAndreas Schneider1-15/+18
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-10-20agent: Fix agent auth on big endian machinesAndreas Schneider3-4/+24
BUG: https://red.libssh.org/issues/204 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-25crypto: fix broken ifdefAris Adamantiadis1-2/+2
2015-09-25cmake: fix EVP detection with gccAris Adamantiadis1-2/+2
2015-09-25crypto: old-fashioned aes_ctr when evp_aes_ctr is missingAris Adamantiadis4-0/+108
2015-09-25SSH1: fix duplicate identifierAris Adamantiadis2-2/+2
2015-09-25libcrypto: clean up EVP functionsAris Adamantiadis3-380/+212
2015-09-24moved libcrypto structs to c99 notationAris Adamantiadis1-113/+81
2015-09-24crypto: move key setup in newkeys handlerAris Adamantiadis3-11/+16
2015-09-23tests: add test for cipher.(de|en)cryptAris Adamantiadis2-0/+108
2015-09-23libcrypto: refactor EVP_(de|en)cryptAris Adamantiadis1-56/+61
2015-09-21crypto: fix potential memory leak in ECDHAris Adamantiadis1-0/+4
2015-09-16kex: Fix zlib compressionAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-15cmake: Use tar.xz source package generatorAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-15kex: Prefer sha2 over sha1Andreas Schneider1-5/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-09pki: Fix a memory leak on error in ssh_pki_copy_cert_to_privkey()Andreas Schneider1-0/+1
CID 1323516 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-09pki: Fix a memory leak in pki_import_cert_buffer()Andreas Schneider1-0/+1
CID #1323517
2015-09-09tests: Fix return code of torture_initAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07tests: Add tests for the new ssh_pki cert functionsAxel Eppe2-0/+169
Signed-off-by: Axel Eppe <aeppe@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07pki: Add certificate loading functionsAxel Eppe3-2/+123
- 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>
2015-09-07pki: Add Add new pki_import_cert_buffer functionAxel Eppe1-0/+51
Signed-off-by: Axel Eppe <aeppe@google.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07pki: Add rsa, dss certificate key type definitionsAxel Eppe5-1/+28
- 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>
2015-09-07tests: Migrate pkd_hello to new cmocka APIAndreas Schneider1-19/+33
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07pki: Use the standard logging functionAndreas Schneider7-112/+109
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07tests: Migrate to new cmocka APIAndreas Schneider26-275/+395
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07cmake: Handle libssh threas library correctlyAndreas Schneider5-10/+32
This should fix the build on Windows and would not install pkg files. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-09-07bignum: Fix OpenSSL crash in SAFE_FREEMichael Wilder1-0/+4
Signed-off-by: Michael Wilder <wilder.michael@cimcor.com> Reviewed-by: Andreas Schneider <asn@samba.org>
2015-09-07crypto: Add OpenSSL EVP functions for FIPS compatibilityMichael Wilder2-150/+414
Signed-off-by: Michael Wilder <wilder.michael@cimcor.com>
2015-08-18server: Fix return code check of ssh_buffer_pack()Andreas Schneider1-1/+1
Thanks to Andreas Gutschick <andreas.gutschick@mitel.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-08-18doc: Fix typos in sftp tutorialAndreas Schneider1-2/+2
Thanks to Anthony Baker <AnthonyBaker@fico.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-08-10tests: Add checks for ssh_key_is_private()Andreas Schneider1-0/+30
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-08-10pki: Fix return values of ssh_key_is_(public|private)Andreas Schneider1-2/+2
Thanks to Kevin Haake <khaake@red-cocoa.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-08-01sftp: Fix incorrect handling of received length fieldsTilo Eckert1-7/+13
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de>