~vcs-imports/libssh2/master

  • Committer: Peter Stuge
  • Author(s): Salvador Fandino
  • Date: 2015-10-26 12:46:03 UTC
  • Revision ID: git-v1:60ff51594cf9619f6e0685f7f0f5d0651ffa4085
Add function libssh2_session_set_last_error

Net::SSH2, the Perl wrapping module for libssh2 implements several features*
on top of libssh2 that can fail and so need some mechanism to report the error
condition to the user.

Until now, besides the error state maintained internally by libssh2, another
error state was maintained at the Perl level for every session object and then
additional logic was used to merge both error states. That is a maintenance
nighmare, and actually there is no way to do it correctly and consistently.

In order to allow the high level language to add new features to the library
but still rely in its error reporting features the new function
libssh2_session_set_last_error (that just exposses _libssh2_error_flags) is
introduced.

*) For instance, connecting to a remote SSH service giving the hostname and
port.

Signed-off-by: Salvador Fandino <sfandino@yahoo.com>
Signed-off-by: Salvador Fandiño <sfandino@yahoo.com>
Filename Latest Rev Last Changed Committer Comment Size
..
cmake 1688 9 years ago Alexander Lamaison Merge pull request #8 from alamaison/cmake CMake Diff
docs 197 17 years ago Daniel Stenberg Added an initial set of man pages. Diff
example 254 17 years ago Daniel Stenberg two simple samples Diff
include 1 19 years ago Sara Golemon Initial revision Diff
m4 191 17 years ago Simon Josefsson Add autobuild.m4, to make it easier to use http:// Diff
nw 270 17 years ago Daniel Stenberg Netware and Windows fixes by Guenter Knauf Diff
src 1 19 years ago Sara Golemon Initial revision Diff
tests 203 17 years ago Simon Josefsson Add basic self test. Diff
vms 1049 14 years ago Daniel Stenberg VMS port of libssh2 including VMS specific build p Diff
win32 49 19 years ago Wez Furlong Add support for win32. Edit win32/config.mk to se Diff
.gitattribute 849 14 years ago Peter Stuge Ensure that win32/libssh2.dsp will be generated wi 52 bytes Diff Download File
.gitignore 1676 9 years ago Daniel Stenberg .gitignore: don't ignore INSTALL 301 bytes Diff Download File
.travis.yml 1693 9 years ago Alexander Lamaison Add continuous integration configurations. Linux- 3.9 KB Diff Download File
acinclude.m4 844 14 years ago Simon Josefsson Fix shell usage. 10.7 KB Diff Download File
appveyor.yml 1693 9 years ago Alexander Lamaison Add continuous integration configurations. Linux- 2.1 KB Diff Download File
File buildconf 956 14 years ago Simon Josefsson Make it portable; test uses = for string compariso 607 bytes Diff Download File
CMakeLists.txt 1687.1.1 9 years ago Alexander Lamaison CMake build system. Tested: - Windows: - Vis 3.3 KB Diff Download File
File config.rpath 1515 11 years ago Daniel Stenberg Revert "config.rpath: generated file, no need to k 17.7 KB Diff Download File
configure.ac 1736 9 years ago Marc Hoersken configure.ac: check for SecureZeroMemory for clear 11.7 KB Diff Download File
COPYING 1629 9 years ago Daniel Stenberg COPYING: bump the copyright year 1.8 KB Diff Download File
File get_ver.awk 1173 13 years ago Guenter Knauf Added copyright define to libssh2.h and use it for 750 bytes Diff Download File
File git2news.pl 1324 13 years ago Daniel Stenberg NEWS: auto-generated from git Starting now, the N 1.6 KB Diff Download File
libssh2-style.el 594 15 years ago Daniel Stenberg helper script for emacs users to get the code styl 1.8 KB Diff Download File
libssh2.pc.in 1486 12 years ago Guenter Knauf Changed 'Requires' to 'Requires.private'. Only st 501 bytes Diff Download File
Makefile.am 1747 8 years ago Kamil Dudka cmake: include CMake files in the release tarballs 3.9 KB Diff Download File
Makefile.inc 1582 10 years ago Peter Stuge Move automake conditionals added by commit d512b25 351 bytes Diff Download File
Makefile.libgcrypt.inc 1582 10 years ago Peter Stuge Move automake conditionals added by commit d512b25 60 bytes Diff Download File
Makefile.OpenSSL.inc 1582 10 years ago Peter Stuge Move automake conditionals added by commit d512b25 56 bytes Diff Download File
Makefile.WinCNG.inc 1599 10 years ago Peter Stuge Added Windows Cryptography API: Next Generation ba 54 bytes Diff Download File
File maketgz 1326 13 years ago Daniel Stenberg maketgz: use git2news.pl by the correct name 2.2 KB Diff Download File
NEWS 1324 13 years ago Daniel Stenberg NEWS: auto-generated from git Starting now, the N 86 bytes Diff Download File
NMakefile 1633 9 years ago Guenter Knauf NMake build: added support for WinCNG build. 675 bytes Diff Download File
README 1687.1.1 9 years ago Alexander Lamaison CMake build system. Tested: - Windows: - Vis 474 bytes Diff Download File
RELEASE-NOTES 1742 8 years ago Daniel Stenberg bump: start working on 1.6.1 297 bytes Diff Download File