diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-10-04 22:11:19 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-10-04 22:11:19 +0000 |
commit | 5f7c84f900b81e3bbff55378f8170ddf150daf9c (patch) | |
tree | 2076a6416e087eb5870c2217873ae76e85451f6b /include/libssh/libssh.h | |
parent | c0525750fd090bca0f1ab1884cc26ecd227addb7 (diff) | |
download | libssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.tar.gz libssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.tar.xz libssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.zip |
added the gcrypt patch (without gcrypt as default library).
still needs tests.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index ac843e0..f49b3f5 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -20,13 +20,12 @@ MA 02111-1307, USA. */ #ifndef _LIBSSH_H #define _LIBSSH_H -#include <libssh/config.h> #include <unistd.h> #include <sys/select.h> /* for fd_set * */ #include <sys/types.h> -#ifdef HAVE_STDINT_H + #include <stdint.h> -#endif + #define LIBSSH_VERSION "libssh-0.2-dev" #ifdef __cplusplus @@ -126,7 +125,7 @@ const char *ssh_copyright(); STRING *string_from_char(char *what); /* it returns the string len in host byte orders. str->size is big endian warning ! */ int string_len(STRING *str); -STRING *string_new(u32 size); +STRING *string_new(unsigned int size); /* string_fill copies the data in the string. it does NOT check for boundary so allocate enough place with string_new */ void string_fill(STRING *str,void *data,int len); /* returns a newly allocated char array with the str string and a final nul caracter */ @@ -144,11 +143,11 @@ void ssh_print_hexa(char *descr,unsigned char *what, int len); int ssh_get_random(void *where,int len,int strong); /* this one can be called by the client to see the hash of the public key before accepting it */ -int ssh_get_pubkey_hash(SSH_SESSION *session,char hash[MD5_DIGEST_LEN]); +int ssh_get_pubkey_hash(SSH_SESSION *session,unsigned char hash[MD5_DIGEST_LEN]); STRING *ssh_get_pubkey(SSH_SESSION *session); /* in connect.c */ -int ssh_fd_poll(SSH_SESSION *session); +int ssh_fd_poll(SSH_SESSION *session,int *write, int *except); int ssh_select(CHANNEL **channels,CHANNEL **outchannels, int maxfd, fd_set *readfds, struct timeval *timeout); void publickey_free(PUBLIC_KEY *key); |