diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-08-07 10:48:08 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-08-07 10:48:08 +0000 |
commit | 5c26ae735483d140f802d58b1872b2fe9468d219 (patch) | |
tree | e8e8e8dea72c371e15f6e510ecc97948a4139383 /include/libssh/libssh.h | |
parent | 3113d8756628f463fda33b93801aee3c6ee9aa32 (diff) | |
download | libssh-5c26ae735483d140f802d58b1872b2fe9468d219.tar.gz libssh-5c26ae735483d140f802d58b1872b2fe9468d219.tar.xz libssh-5c26ae735483d140f802d58b1872b2fe9468d219.zip |
server kex done :)
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@6 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 0fc40178..1986c8a8 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -103,10 +103,12 @@ void ssh_set_verbosity(int num); /* 0 : important messages only */ /* -1 : no messages */ -/* in client.c */ - +/* session.c */ SSH_SESSION *ssh_new(); void ssh_set_options(SSH_SESSION *session, SSH_OPTIONS *options); +int ssh_get_fd(SSH_SESSION *session); + +/* client.c */ int ssh_connect(); void ssh_disconnect(SSH_SESSION *session); int ssh_service_request(SSH_SESSION *session,char *service); @@ -134,15 +136,12 @@ void ssh_crypto_init(); /* useful for debug */ void ssh_print_hexa(char *descr,unsigned char *what, int len); -void ssh_get_random(void *,int); +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]); STRING *ssh_get_pubkey(SSH_SESSION *session); -/* deprecated */ -int pubkey_get_hash(SSH_SESSION *session,char hash[MD5_DIGEST_LEN]); - /* in connect.c */ int ssh_fd_poll(SSH_SESSION *session); int ssh_select(CHANNEL **channels,CHANNEL **outchannels, int maxfd, fd_set *readfds, struct timeval *timeout); @@ -152,6 +151,8 @@ void publickey_free(PUBLIC_KEY *key); /* in keyfiles.c */ PRIVATE_KEY *privatekey_from_file(SSH_SESSION *session,char *filename,int type,char *passphrase); +STRING *publickey_to_string(PUBLIC_KEY *key); +PUBLIC_KEY *publickey_from_privatekey(PRIVATE_KEY *prv); void private_key_free(PRIVATE_KEY *prv); STRING *publickey_from_file(SSH_SESSION *session, char *filename,int *_type); STRING *publickey_from_next_file(SSH_SESSION *session,char **pub_keys_path,char **keys_path, |