summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* buffer: expose ssh_buffer_get()wip/expose_buffer_methodsFabiano Fidêncio2015-10-123-5/+1
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: expose ssh_buffer_{add,get}_data()Fabiano Fidêncio2015-10-123-6/+2
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: expose ssh_buffer_reinit()Fabiano Fidêncio2015-10-123-3/+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-122-18/+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-129-27/+27
| | | | | | | | | 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-122-19/+3
| | | | Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
* buffer: do not use ssh_buffer_get_rest_len()Fabiano Fidêncio2015-10-1219-95/+95
| | | | | | | | 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-1219-53/+52
| | | | 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>
* tests: Fix warning about expected format for printfFabiano Fidêncio2015-10-121-2/+2
| | | | | | | | | | | | | | | | | /home/ffidenci/src/upstream/libssh/tests/benchmarks/bench_scp.c: In function ‘benchmarks_scp_down’: /home/ffidenci/src/upstream/libssh/tests/benchmarks/bench_scp.c:112:14: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=] printf("Only %d bytes available (on %lu requested).\n",size,bytes); ^ /home/ffidenci/src/upstream/libssh/tests/benchmarks/bench_scp.c:116:14: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=] printf("File is %d bytes (on %lu requested). Will cut the end\n" ,size,bytes); 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-1216-78/+78
| | | | | | | 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-122-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 kex (non-static) functionsFabiano Fidêncio2015-10-125-10/+10
| | | | | | | 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-125-48/+48
| | | | | | | 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-123-18/+18
| | | | | | | 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-1228-462/+462
| | | | | | | 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-123-36/+36
| | | | | | | 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-126-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 agent (non-static) functionsFabiano Fidêncio2015-10-125-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>
* WIP torture_authAndreas Schneider2015-10-123-205/+175
|
* tests: Convert torture_connect to a cwrap testAndreas Schneider2015-10-123-26/+79
|
* torture: Add torture_teardown_sshd_server().Andreas Schneider2015-10-122-0/+45
|
* torture: Restrict files to we write to our user.Andreas Schneider2015-10-121-1/+1
|
* WIP sshd serverAndreas Schneider2015-10-122-2/+103
|
* torture: Add torture_teardown_socket_dir().Andreas Schneider2015-10-122-0/+26
|
* torture: Add torture_setup_socket_dir().Andreas Schneider2015-10-122-0/+54
|
* torture: Add server to get address and port.Andreas Schneider2015-10-122-0/+51
|
* tests: Add ssh host keys for test environment.Andreas Schneider2015-10-128-0/+48
|
* cmake: Configure nss_wrapper.Andreas Schneider2015-10-124-0/+42
|
* cmake: Search for cwrap and sshd.Andreas Schneider2015-10-121-0/+12
|
* crypto: fix broken ifdefAris Adamantiadis2015-09-251-2/+2
|
* cmake: fix EVP detection with gccAris Adamantiadis2015-09-251-2/+2
|
* crypto: old-fashioned aes_ctr when evp_aes_ctr is missingAris Adamantiadis2015-09-254-0/+108
|
* SSH1: fix duplicate identifierAris Adamantiadis2015-09-252-2/+2
|
* libcrypto: clean up EVP functionsAris Adamantiadis2015-09-253-380/+212
|
* moved libcrypto structs to c99 notationAris Adamantiadis2015-09-241-113/+81
|
* crypto: move key setup in newkeys handlerAris Adamantiadis2015-09-243-11/+16
|
* tests: add test for cipher.(de|en)cryptAris Adamantiadis2015-09-232-0/+108
|
* 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>
* cmake: Use tar.xz source package generatorAndreas Schneider2015-09-151-1/+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