www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: libssh2_error

libssh2_error

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Mon, 22 Feb 2010 15:51:10 +0000

What is the policy on calling libssh2_error when returning a failure code?

I'm creating C++ bindings for libssh2 and, while working out the
exception strategy, I noticed that some API calls set an error message
using libssh2_error when they are about to return a failure code and
others don't. Specifically, the knownhosts api never calls
libssh2_error. I noticed that Daniel recently committed some changes
to userauth that made all API calls use libssh2_error but do we have a
coherent policy on this?

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-02-22

the libssh2 team