Andreas Schneider
6c03b7a9c9
misc: Add ssh_match_group().
2011-08-22 16:16:34 +02:00
Andreas Schneider
90167f09d3
server: Migrate hostkey check to new pki.
2011-08-22 15:22:58 +02:00
Andreas Schneider
1e019fee43
keys: Remove unused obsolete ssh_sign_session_id().
2011-08-22 14:30:08 +02:00
Andreas Schneider
4de4520559
server: Use new pki infrastructure.
2011-08-22 14:29:39 +02:00
Andreas Schneider
d6829d073c
kex: Move ssh_encrypt_rsa1 to SSHv1 kex code.
2011-08-22 13:58:02 +02:00
Andreas Schneider
79ffd49940
pki: Add ssh_srv_pki_do_sign_sessionid().
2011-08-22 13:48:25 +02:00
Andreas Schneider
a2e08697b1
messages: Move ssh_userauth_build_digest() and make it static.
2011-08-22 12:57:01 +02:00
Andreas Schneider
1b57445f6b
pki: Add ssh_pki_do_sign_agent().
2011-08-21 13:43:20 +02:00
Andreas Schneider
af82d8dfab
agent: Add ssh_agent_sign_data().
2011-08-21 13:42:49 +02:00
Andreas Schneider
c041261921
pki: Create a pki private header file.
2011-08-21 11:15:29 +02:00
Andreas Schneider
a4b2518761
pki: Add ssh_pki_import_signature_blob().
2011-08-21 11:03:53 +02:00
Andreas Schneider
4f19a304d1
pki: Add ssh_pki_export_signature_blob().
2011-08-21 10:11:05 +02:00
Andreas Schneider
ab0354dbb6
priv: Add discard_const macros.
2011-08-21 10:10:27 +02:00
Andreas Schneider
ce41747fae
pki: Introduce ssh_signature.
2011-08-20 18:37:43 +02:00
Andreas Schneider
743a00dad4
pki: Fix build warnings.
2011-08-20 11:07:54 +02:00
Andreas Schneider
c575de17a8
pki: Use a consistent naming scheme.
2011-08-19 11:14:23 +02:00
Andreas Schneider
c39181437b
pki: Add ssh_pki_export_publickey_file().
2011-08-16 23:04:25 +02:00
Andreas Schneider
ddcb88070b
misc: Remove session from ssh_get_local_username().
2011-08-16 23:04:25 +02:00
Andreas Schneider
1a0fbedc2e
pki: Fix and rename ssh_pki_publickey_to_base64().
...
Rename it to ssh_pki_export_publickey_base64().
2011-08-16 23:04:25 +02:00
Andreas Schneider
254c30be2e
pki: Remove session from ssh_pki_import_pubkey_* functions.
2011-08-16 19:33:24 +02:00
Andreas Schneider
25a2108809
pki: Remove session from ssh_pki_import_privkey_* functions.
2011-08-16 18:53:18 +02:00
Andreas Schneider
9dfef44fd8
pki: Add ssh_pki_publickey_to_base64().
2011-08-16 00:47:43 +02:00
Andreas Schneider
c085892802
pki: Add ssh_pki_import_pubkey_file().
2011-08-16 00:47:43 +02:00
Andreas Schneider
3f70bce373
pki: Rename ssh_pki_publickey_to_string and make it public.
2011-08-16 00:47:43 +02:00
Andreas Schneider
6c1b508efd
pki: Rename ssh_pki_import_pubkey_string and make it public.
...
It should be named ssh_pki_import_pubkey_blob().
2011-08-16 00:47:43 +02:00
Andreas Schneider
6ffee22448
pki: Add ssh_pki_publickey_to_string().
2011-08-15 18:48:08 +02:00
Andreas Schneider
2780f76247
pki: Flags are a bit mask so use hex.
2011-08-15 18:48:08 +02:00
Andreas Schneider
c77b23b32a
pki: Cleanup pki header.
2011-08-15 18:48:08 +02:00
Andreas Schneider
e06b3dba0d
bind: Read only once in ssh_bind_listen() (bug #11 ).
2011-08-15 16:50:30 +02:00
Andreas Schneider
190ae27463
pki: Added ssh_key_dup().
2011-08-15 16:26:58 +02:00
Andreas Schneider
0523adf95c
pki: Add ssh_pki_import_pubkey_string().
2011-08-13 12:13:09 +02:00
Andreas Schneider
74d755873d
pki: Use const.
2011-08-13 11:26:03 +02:00
Andreas Schneider
9c0af42dd8
pki: Use a consistent name scheme.
...
Rename ssh_key_import_private to ssh_pki_import_privkey_file.
2011-08-09 18:05:47 +02:00
Andreas Schneider
bec483bc18
pki: Add ssh_pki_import_pubkey_base64().
2011-08-08 15:28:31 +02:00
Andreas Schneider
f81444bd57
pki: Add pki_do_sign().
2011-08-08 15:28:31 +02:00
Andreas Schneider
9bed334da3
pki: Add ssh_pki_convert_key_to_privatekey().
2011-08-08 15:28:31 +02:00
Andreas Schneider
36ee2d3332
pki: Create pki_publickey_from_privatekey().
2011-08-08 15:28:31 +02:00
Andreas Schneider
f55cd7de43
pki: Improve ssh_key_import_private().
2011-08-08 15:28:31 +02:00
Andreas Schneider
9569d053d8
pki: Improve ssh_pki_import_privkey_base64().
2011-08-08 15:28:31 +02:00
Andreas Schneider
028888719a
pki: Add pki_privatekey_type_from_string().
2011-08-08 15:28:31 +02:00
Andreas Schneider
d8b41bcac3
pki: Add placeholder for ecdsa and certs.
2011-08-08 15:28:31 +02:00
Aris Adamantiadis
da954c2c5e
Fixes the ssh_log issue on ssh_bind handles.
2011-07-19 22:16:28 +02:00
Andreas Schneider
c75581fb93
pki: Make ssh_key_is_private() a public function.
2011-06-15 18:27:05 +02:00
Andreas Schneider
27cedaa0b6
pki: Make ssh_key_is_public() a public function.
2011-06-15 18:27:05 +02:00
Aris Adamantiadis
db2d0ebc44
Fix build with missing openssl/ecdh.h
2011-06-14 22:57:43 +02:00
Aris Adamantiadis
2653b31af0
[crypto] Removed ugly ifdefs on gcrypt/libcrypto
2011-06-13 14:47:17 +02:00
Aris Adamantiadis
c5a998f47a
[crypto] initial support for ecdh-sha2-nistp256
...
Works with openssl
Still requires work for libgcrypt and other modes
2011-06-13 13:46:34 +02:00
Aris Adamantiadis
113de13543
Test for ecdh and dh-group1
2011-06-12 20:54:33 +02:00
Aris Adamantiadis
b54e8cdae5
Check for ecdsa with openssl, added log_warning
2011-06-12 19:38:42 +02:00
Andreas Schneider
981190f8d3
pki: Add ssh_key_type_to_char() and ssh_key_type_from_name().
2011-06-11 13:04:22 +02:00
Andreas Schneider
88e2f17b97
pki: Make ssh_key_type a public function.
2011-06-11 13:04:22 +02:00
Andreas Schneider
29fa4b6b35
pki: Add SSH_KEYTYPE_ECDSA.
2011-06-11 13:04:22 +02:00
Andreas Schneider
94ca5ed3df
cmake: Set next version.
2011-05-30 12:38:17 +02:00
Aris Adamantiadis
59f7647cd9
Introduced ssh_timeout_elapsed functions
...
Functions to mesure elapsed time before and after a serie of
calls. Introduces a dependancy to clock_gettime() and librt,
hope this doesn't break anything. Porting to gettimeofday() should
not be too hard.
2011-05-24 23:26:18 +02:00
milo
7ba0938846
[channels] Added ssh_channel_window_size() and avoided reentrancy in channel_write_common()
...
(cherry picked from commit 27313334578f4acb7ccf0687bba7f76b2febd569)
2011-05-02 16:58:27 +02:00
milo
6e58342abc
[pki] remove unused functions
2011-04-18 17:40:27 +02:00
Andreas Schneider
a6c53d51de
scp: More correct fix for snprintf 64-bit format.
2011-04-15 18:56:52 +02:00
Mark Riordan
96d5f13813
scp: Support huge files by changing size to 64-bit type.
...
Signed-off-by: Mark Riordan <mriordan@ipswitch.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2011-04-15 16:18:26 +02:00
milo
cee8ca339b
Use const for x11_auth_* strings
2011-04-14 14:05:44 +02:00
milo
7cc4471168
Implemented X11 server side
2011-04-14 14:05:44 +02:00
milo
f8c7ad9c7a
[pki] Added ssh_userauth_pki_pubkey() function
2011-04-14 14:05:44 +02:00
milo
b308bb9d52
[pki] added ssh_pki_do_sign() function
2011-04-14 14:05:44 +02:00
milo
c1f65492f7
[pki] Added conversion functions to migrate seemlessly to ssh_key
2011-04-14 14:05:44 +02:00
milo
2694853979
[pki] Added ssh_pki_publickey_from_privatekey() function
2011-04-14 14:05:44 +02:00
milo
69d2457762
[pki] Added ssh_pki_import_privkey_base64()
2011-04-14 14:05:44 +02:00
milo
c1d385f6da
[pki] remove non existing function prototype
2011-04-14 14:05:44 +02:00
milo
df3e497dbd
[pki] Added privatekey_from_base64() function...
...
and wrapped it with privatekey_from_file()
2011-04-14 14:05:44 +02:00
milo
2be42922c8
[pki] Make ssh_key_new and ssh_key_free public
2011-04-14 14:05:43 +02:00
Aris Adamantiadis
1a101a959e
Fix the ssh_message_retrieve problem by anihilation
2011-03-22 12:23:02 +01:00
Aris Adamantiadis
dff4e4e6d3
Implement ssh_blocking_flush()
...
Based on code from Jan Willamowius
2011-03-22 11:49:57 +01:00
Andreas Schneider
7e921b7afb
messages: Make returned strings const.
2011-03-09 19:45:17 +01:00
Andreas Schneider
7420b0fb83
doc: More doc for messaging functions.
2011-03-09 19:39:34 +01:00
Andreas Schneider
7daa81f3aa
doc: Improve the doc of ssh_bind_set_callbacks.
2011-03-09 18:33:03 +01:00
Andreas Schneider
6754c34711
doc: Improved documentation for server options.
2011-03-06 14:25:21 +01:00
Andreas Schneider
dab8f847e6
legacy: Added missing channel_write_stderr.
2011-02-23 12:38:45 +01:00
milo
ddb1c1838f
poll: Added a function to poll the events.
2011-02-20 14:37:43 +01:00
milo
e40261c22c
poll: Added function to remove fd from the event context.
2011-02-20 14:37:34 +01:00
milo
6582da1d67
poll: Added function to add an fd to the events.
2011-02-20 14:37:34 +01:00
milo
0c76156f54
poll: Added function to remove session from event loop.
2011-02-20 14:37:31 +01:00
milo
4b72953c7e
poll: Added function to add session to an event.
2011-02-20 14:36:44 +01:00
milo
4ee4450a6b
poll: Added a function to free an event.
2011-02-20 14:35:11 +01:00
milo
a2634ceea8
poll: Started to add a poll based event loop.
2011-02-20 14:21:45 +01:00
Aris Adamantiadis
483cdc2d2c
Added ssh_userauth_[offer_]pubkey nonblocking iface
2011-02-12 19:21:13 +01:00
Andreas Schneider
768fbdd92e
connect: Use ssh_is_ipaddr instead of regex.
2011-02-12 19:08:59 +01:00
Andreas Schneider
b313fa944a
misc: Added ssh_is_ipaddr() function.
2011-02-12 19:08:59 +01:00
milo
3c0a4781e4
Added the keyboard-interactive authentication method
2011-02-10 14:39:20 +01:00
Andreas Schneider
93a2d79459
session: Added ssh_is_connected().
2011-02-06 10:50:14 +01:00
Andreas Schneider
5c581f8a4c
libsshpp: Removed unused variable.
2011-01-24 15:25:50 +01:00
Andreas Schneider
50a119dd0a
misc: Added multiplatform ssh_getpass() fuction.
2011-01-24 13:55:05 +01:00
Aris Adamantiadis
6b52aaff1c
ssh_auth_password made nonblocking
2011-01-16 23:42:19 +01:00
Aris Adamantiadis
227764a803
Made ssh_userauth_none nonblocking
2011-01-16 23:42:19 +01:00
Aris Adamantiadis
b945cbca52
Fix double-connect testcase
2011-01-15 22:43:58 +01:00
Aris Adamantiadis
5b6f048197
Use termination functions for event polling
2011-01-12 23:04:43 +01:00
Aris Adamantiadis
9140242cbe
Non-blocking mode for ssh_connect
...
This looks ugly. I'll see if we need to revert or change that patch later.
2011-01-10 18:01:35 +01:00
Aris Adamantiadis
bcea8921ba
Change blocking parameter to a flag
2011-01-10 17:39:47 +01:00
Aris Adamantiadis
e57d5a45b9
Fix the missing returns in C++ wrapper
2011-01-05 21:14:27 +01:00
Andreas Schneider
2b6fa19fe5
cmake: Fixed msvc posix warnings and unsecure functions.
2011-01-02 19:35:53 +01:00
Andreas Schneider
f46bf41813
libssh: Don't use the visibility flag on OS/2.
2010-12-31 14:35:06 +01:00
Andreas Schneider
ef91ac4ea0
socket: Fixed ssh_socket_fd_set prototype.
2010-12-30 00:30:44 +01:00
Aris Adamantiadis
4fa2e4dde1
Added compression options and allow "yes/no" setting
...
SSH_OPTION_COMPRESSION and SSH_OPTION_COMPRESSION_LEVEL options have been added. Now, end-level apps may simply choose to enable compression without knowing the relevant algorithms behind it.
2010-12-27 23:28:39 +01:00
Andreas Schneider
33c41074a7
libsshpp: Fixed return of non-void function.
2010-12-23 08:54:39 +01:00
Andreas Schneider
57d752a1c3
include: Only require LIBSSH_STATIC on Windows.
2010-12-10 20:02:15 +01:00
Andreas Schneider
038c764055
server: Remove channel_write_stderr.
2010-12-08 10:52:15 +01:00
Andreas Schneider
3ea33f9ab6
doc: Some small fixes in server.h.
2010-12-07 21:43:26 +01:00
Andreas Schneider
2a6cbed121
doc: Define a doc group for the callbacks.
2010-12-07 21:25:53 +01:00
Aris Adamantiadis
f58441f474
Moved declarations from auth.h to various headers
2010-10-30 22:38:09 +02:00
Aris Adamantiadis
0e82cdeadc
Moved includes from priv.h to bind.h
2010-10-27 23:06:38 +02:00
Aris Adamantiadis
8e2699e161
start of work to have callbackbased ssh_bind
2010-10-19 23:51:32 +02:00
Aris Adamantiadis
3253ece2a2
Oops, libssh.h did not compile anymore
2010-10-15 16:43:38 +02:00
Aris Adamantiadis
4b462449cf
Fix OPTIONS_BINDADDR, PROXYCOMMAND constant change
2010-10-14 11:53:30 +02:00
Aris Adamantiadis
4f8907a524
Removed the global poll ctx in fav. of /session ctx
2010-10-12 17:57:15 +02:00
Aris Adamantiadis
0bc032726d
Fix prepend bug
2010-10-03 13:01:21 +02:00
Aris Adamantiadis
a9ec8b055f
Fix warnings on testcases
2010-10-02 23:27:26 +02:00
milo
524302ca7e
Added ssh_channel_write_stderr() for the server
2010-10-02 22:52:06 +02:00
milo
2617024136
Added channel features on the server
...
- ssh_channel_request_send_exit_status()
- ssh_channel_request_send_exit_signal()
- enhanced these features client-side
2010-10-02 22:51:49 +02:00
milo
26d40b5354
Handle global requests and reverse forwarding
2010-10-02 22:51:35 +02:00
milo
c4356531f7
Add new callbacks in session and channels
2010-10-02 22:51:14 +02:00
Aris Adamantiadis
5b1c985a0e
Changed the threads cbks from struct to publ func
2010-09-30 11:10:08 +02:00
Andreas Schneider
1b471256d4
misc: Differentiate between client and server in ssh_analyze_banner.
2010-09-29 12:11:43 +02:00
Andreas Schneider
8b719e51cf
misc: Move ssh_analyze_banner to a common location.
...
Don't duplicate functions!
2010-09-29 11:26:35 +02:00
Andreas Schneider
15e4ec38f2
pki: Added GPL to header file.
2010-09-28 19:07:16 +02:00
Andreas Schneider
a2fe4b2b2c
options: Rename HOSTKEYCHECK to STRICTHOSTKEYCHECK.
...
Looks like people are confused by the name and think this is normal host
key checking.
2010-09-28 14:13:18 +02:00
Aris Adamantiadis
75a0281a6b
Fixed outgoing flow control + writes behaviours
2010-09-26 22:33:58 +02:00
Aris Adamantiadis
b0c03280d1
ssh_threads_init is private
2010-09-12 22:01:21 +02:00
Aris Adamantiadis
5eb7c7b6ec
Added initialisation logs for threading
2010-09-12 21:53:42 +02:00
Aris Adamantiadis
b7af2b2959
Changed callbacks type
2010-09-12 21:45:53 +02:00
Aris Adamantiadis
49f57a8d0d
Implemented the noop and native pointers
2010-09-06 16:52:14 +02:00
Andreas Schneider
fbe102bada
threads: Build a libssh threading library.
2010-09-06 15:17:03 +02:00
Aris Adamantiadis
2cca490076
Moved pthread specific code in src/threads/pthread.c
...
pthread example doesn't compile du to the lack of
libssh_threads_native.so library
2010-09-06 14:51:01 +02:00
Andreas Schneider
2656c6b4ac
server: Fixed a shadowed variable.
2010-09-05 12:34:12 +02:00
Aris Adamantiadis
285388409f
Made pthread threading a user macro
2010-09-03 12:03:04 +02:00
Aris Adamantiadis
8c55294ea9
Openssl implementation of threading + default imp
2010-09-01 14:07:45 +02:00
Aris Adamantiadis
bcc2d8474c
Begin of a solution for threading
2010-08-30 23:44:03 +02:00
Aris Adamantiadis
1fa9409554
ssh_channel_forward_* -> ssh_forward_*
...
Fixes bug #108
2010-08-28 23:31:07 +02:00
Aris Adamantiadis
adcd2e38e9
libsshpp: do not use deprecated functions
2010-08-28 22:53:18 +02:00
Aris Adamantiadis
c19fb5656b
Fixed missing libsshpp methods
2010-08-28 22:51:23 +02:00
Aris Adamantiadis
74939b8b8d
Added missing /** in doxygen @}'s
2010-08-28 21:32:08 +02:00
Aris Adamantiadis
29a229724b
Fix a few documentation issues
2010-08-28 21:05:24 +02:00
Aris Adamantiadis
a9fafc32a8
Near to end of implementation of the C++ wrapper
2010-08-28 13:59:24 +02:00
Aris Adamantiadis
bcf4e56fe0
Fix C++ documentation about the exceptions
2010-08-27 12:01:42 +02:00
Aris Adamantiadis
1834ca3820
Added a SSH_NO_CPP_EXCEPTIONS mode to libsshpp.h
2010-08-27 11:53:38 +02:00
Andreas Schneider
36576babe8
doc: Document the server responses.
2010-08-27 11:27:42 +02:00
Aris Adamantiadis
8066100f53
Doxygen fixes
2010-08-23 20:48:30 +02:00
Aris Adamantiadis
f60c22628a
lot of C++ wrapper work
2010-08-23 20:34:17 +02:00
Milo Jhoran
24b524040b
server: Added an API entry for the message callback.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-08-13 11:17:18 +02:00
milo
e533c3f33b
server: Fix missing socket close notification.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-08-13 11:17:09 +02:00
milo
855b73de87
server: Split ssh_bind_accept and create ssh_handle_key_exchange.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-08-10 00:30:25 +02:00
Andreas Schneider
a6b6a61775
server: Make ssh_accept a depreacted function to not break the API.
2010-08-09 21:39:32 +02:00
Andreas Schneider
39c9a6dfed
server: Merge ssh_bind_accept.
2010-08-09 21:28:47 +02:00
Andreas Schneider
561df8d9a2
server: Rename ssh_accept to ssh_bind_accept.
2010-08-09 20:54:43 +02:00
milo
eb361626cb
session: Added callback for the connection per session.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-08-09 20:53:49 +02:00
milo
b0f8ca556b
session: Fixed the type of the session dh_handshake_state.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-08-09 20:53:03 +02:00
Andreas Schneider
296f6a9217
build: Fixed the Windows preprocessor macros and defines.
2010-08-03 18:13:59 +02:00
Aris Adamantiadis
d688ed2553
Begining of zlib@openssh.org implementation
2010-07-23 16:49:28 +02:00
Aris Adamantiadis
e721c122d3
Continue removing old flushing code
2010-07-23 11:01:06 +02:00
Aris Adamantiadis
8cd0d0040e
Removed obsolete socket functions
2010-07-23 08:27:05 +02:00
Aris Adamantiadis
5aa9cf2fcf
Add consistency check to ssh_set_callbacks
2010-07-23 08:09:57 +02:00
Aris Adamantiadis
a924869096
Receive and send SSH_MSG_UNIMPLEMENTED
2010-07-18 00:39:51 +02:00
Andreas Schneider
ef0215fcf2
poll: Added poll constants for Windows.
...
WSAPoll uses different constanst values as the POSIX implementation,
what else ...
2010-07-09 09:49:21 +02:00
Andreas Schneider
82beeea619
options: Added option to bind a client to an ip address.
...
Thanks to Donatello Boccaforno <donatello.boccaforno@gmail.com>.
2010-07-07 12:43:50 +02:00
Aris Adamantiadis
a18a3813fb
Removed dead code in socket.c
2010-07-07 10:19:47 +02:00
Aris Adamantiadis
94b00cc762
Add ssh_callbacks_exists internal macro + unittest
...
(first commit with eclipse helios, crossing fingers ...)
2010-06-25 16:19:19 +02:00
Andreas Schneider
870c9a7a08
socket: Rename INVALID_SOCKET_T to SSH_INVALID_SOCKET.
2010-06-17 13:19:24 +02:00
Andreas Schneider
2a6341c08c
socket: Fixed checks for max fd.
2010-06-17 13:13:35 +02:00
Andreas Schneider
78e7873e92
socket: Fixed prototype of ssh_socket_pollcallback().
2010-06-17 13:09:58 +02:00
Andreas Schneider
c30a25e64c
poll: Fixed a malfunction with wrong max fd value check.
2010-06-17 11:16:24 +02:00
Andreas Schneider
b9a9f54c45
string: Added a function to delete a char basesd stirng object.
2010-06-11 11:05:37 +02:00
Andreas Schneider
8f0d40a1dd
cpp: Fixed return value of userauthAutopubkey.
2010-06-02 10:01:46 +02:00
Aris Adamantiadis
517e58d3dc
Fixed keyboard-interactive and unit test
2010-05-19 14:07:40 +02:00
Andreas Schneider
255f5bd73f
Install missing legacy header file.
2010-05-17 23:36:39 +02:00
Andreas Schneider
488e822c8d
poll: Added a cleanup function to free the ws2_32 library.
2010-05-17 11:19:31 +02:00
Aris Adamantiadis
2234c115f2
Separation work between openssl and libgcrypt
2010-05-14 01:22:22 +02:00
Aris Adamantiadis
b23b3f1d99
Sanitize libssh namespace + legacy wrappers
2010-05-14 00:51:08 +02:00
Andreas Schneider
91ef298e7d
Added runtime detection of WSAPoll().
...
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2010-05-12 18:22:09 +02:00
Andreas Schneider
fc508f9494
Fixed Windows build.
2010-05-12 12:46:50 +02:00
Andreas Schneider
3573bd4d87
Use the new expand functions.
2010-05-11 09:40:33 +02:00
Andreas Schneider
fac56bae32
Added a function to expand an escaped string.
2010-05-11 02:10:55 +02:00
Andreas Schneider
4df7daec82
Added a function to expand the tilde from a path.
2010-05-11 02:10:55 +02:00
Aris Adamantiadis
4a21b6f168
Some grammarnazi things + fix int->socket_t
2010-05-10 22:01:09 +02:00
Andreas Schneider
8ba02b6f4c
Use configure checks to define vsnprintf and strncpy.
2010-05-10 15:32:17 +02:00
Andreas Schneider
8dcfc9849e
Fixed building libssh with VC9.
2010-05-10 14:40:00 +02:00
Andreas Schneider
b28fb6654c
Fixed a MSVC build error.
2010-05-10 13:18:16 +02:00
Andreas Schneider
9278dc0666
Added more defines to use secure VC functions.
2010-05-10 10:41:47 +02:00
Aris Adamantiadis
f31a14b793
ssh_socket support for 2 fd + Proxyhost command
2010-05-09 00:48:10 +02:00
Aris Adamantiadis
c691aa3e32
Forgot the pki files
2010-05-02 00:03:06 +02:00
Aris Adamantiadis
430e570629
Added pki.[ch] files as a new standard API for PKs
...
Right now it's just a wrapper to the existing calls
but soon it's gona be the effective implementation and
other calls will be wrappers.
2010-05-01 20:32:27 +02:00
Aris Adamantiadis
22be109956
First implementation of known_hosts with port read
2010-05-01 00:40:10 +02:00
Aris Adamantiadis
904c6ed853
Renamed private type TYPE_RSA to SSH_KEYTYPE_*
...
Also made this enum public
2010-04-28 12:14:03 +02:00
Aris Adamantiadis
186e07b415
Added ssh_privatekey_type public function
2010-04-28 11:51:42 +02:00
Aris Adamantiadis
250273cf1a
Do not compile aes*-ctr with <=OpenSSL 0.9.7b
2010-04-14 21:11:29 +02:00
Aris Adamantiadis
7c3040c624
First experiment at trying to make libssh c89
2010-04-07 13:20:30 +02:00
Ruben Garcia Azuara
5a2abd34ce
Added support for StrictHostKeyChecking and UserKnownHostsFile parameters.
...
Added OpenSSH parameters to libssh:
- StrictHostKeyChecking
- UserKnownHostsFile
This parameters are useful to avoid checking the fingerprint. Eg:
~/.ssh/config:
Host 192.10.20.30
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Signed-off-by: Ruben Garcia Azuara <rubenga@tid.es>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2010-04-07 11:29:47 +02:00
Ruben Garcia Azuara
14eb593af3
Fixed solaris compilation warning and ignore case at host parameter.
...
- Suppress compilation warning in solaris caused by a comma at the end of
the last value.
- Ignore case at host parameter in config file
Signed-off-by: Ruben Garcia Azuara <rubenga@tid.es>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2010-04-07 11:29:47 +02:00
Andreas Schneider
fddbf1f94c
Added a select(2) based poll-emulation if poll(2) is not available.
2010-04-04 17:38:50 +02:00
Andreas Schneider
ae64c19f20
Fixed the group of the server functions.
2010-04-04 17:38:50 +02:00
Andreas Schneider
dab450be32
Fixed the doxygen group of the libssh c++ wrapper.
2010-04-04 17:37:05 +02:00
Andreas Schneider
a127c8827a
Fixed the documentation of log.c
2010-04-04 15:51:54 +02:00
Andreas Schneider
9e9e7e95ee
Fixed spelling.
2010-03-25 13:46:09 +01:00
Andreas Schneider
f34cd24f80
Fixed and added support for several identity files.
2010-03-04 20:41:17 +01:00
Andreas Schneider
9f59be3224
Rename ssh_list_add to ssh_list_append.
2010-03-04 20:08:04 +01:00
Andreas Schneider
dea644bbd6
Added a prepend function for ssh_list.
2010-03-04 20:08:04 +01:00
Aris Adamantiadis
c987fd8c53
renamed ssh_list_get_head to ssh_list_pop_head
2010-03-01 18:11:40 +01:00
Andreas Schneider
39d6ef884a
Added owner and group information in sftp attributes.
...
Parse the longname which is the output of 'ls -l' and set the owner and
group if we are talking to an openssh server.
2010-02-23 22:50:43 +01:00
Aris Adamantiadis
60e5a32d27
Small doc fix
2010-02-12 23:29:24 +01:00
Aris Adamantiadis
f8d0055503
More C++ work
2010-02-12 22:17:50 +01:00
Aris Adamantiadis
92ca76721a
More C++ wrapper work.
...
Wrote stubs of functions needed in the wrapper
Created an Exception class which greatly simplifies
the use of libssh in C++
2010-02-11 23:08:07 +01:00
Andreas Schneider
12d43e2967
Rename the libssh sftp documentation group.
2010-02-07 22:36:03 +01:00
Andreas Schneider
a25b06ecfc
Increase version number.
2010-02-05 12:07:50 +01:00
Aris Adamantiadis
6b703b8d6a
Update c++ prototypes
2010-02-02 18:30:26 +01:00
Aris Adamantiadis
e7b74c57f3
Hacked SSH1 to get past authentication
...
Also resolved some bugs that may impact 0.4. need to check
2010-01-25 23:23:01 +01:00
Aris Adamantiadis
3407509ed7
Correctly handle channel failures and chan states
2010-01-24 23:03:56 +01:00
Aris Adamantiadis
3465b592e7
Few function name changes
2010-01-24 22:30:43 +01:00
Aris Adamantiadis
ca499a5495
Made ssh_packet_read asynchronous
...
Normally that's all that was needed into making SSH1 compliant
with the new API.
Beware, I have only implemented it, not actually tested it.
2010-01-24 22:27:44 +01:00
Aris Adamantiadis
8a1d832f80
Removed last calls to packet_read
2010-01-24 22:08:20 +01:00
Aris Adamantiadis
758df26582
Made parts of SSH asynchronous (inc kex1)
2010-01-24 21:03:03 +01:00
Aris Adamantiadis
6ae558b541
Beginning of async solution for SSH1
2010-01-24 01:07:08 +01:00
Aris Adamantiadis
68f53540df
Move SSH-1 specific packet functions in packet1.c
2010-01-23 22:59:10 +01:00
Aris Adamantiadis
48ba9c9bc1
stub of C++ wrapper for libssh
2010-01-21 21:54:20 +01:00
Aris Adamantiadis
94d1112c55
SSH-1 cleanup and compile
...
Not tested, probably not working correctly yet
2010-01-10 21:05:46 +01:00
Aris Adamantiadis
a2505078da
Set socket blocking after connexion
2010-01-08 23:28:55 +01:00
Aris Adamantiadis
514ab6eed2
Fixed blocking bug in channel_poll
2010-01-08 23:05:10 +01:00
Aris Adamantiadis
40bcc0bed8
No more packet_read2() !
2010-01-08 22:33:58 +01:00
Aris Adamantiadis
40871ab1cc
Prefix message_handle_channel_request with ssh_
2010-01-08 22:27:16 +01:00
Aris Adamantiadis
2fc4c7e335
Dequeue the processed messages
2010-01-08 22:25:26 +01:00
Aris Adamantiadis
da8263b3f6
Renamed message_queue to ssh_message_queue
2010-01-08 22:16:00 +01:00
Aris Adamantiadis
12db7c4bc1
Merged the channel_request hdlrs and clean hdlrs
2010-01-08 22:14:31 +01:00
Aris Adamantiadis
db3ef37771
ssh_packet_userauth_request with new system
2010-01-08 21:09:40 +01:00
Aris Adamantiadis
7f32558e08
Converted message handlers to new system
2010-01-07 22:41:38 +01:00
Aris Adamantiadis
228ac78397
Changes to messages for async message handling
2010-01-07 22:02:21 +01:00
Aris Adamantiadis
b6656a1525
Removed packet_wait for SSH2
2010-01-06 22:53:10 +01:00
Aris Adamantiadis
84ec17964e
Made the server DH asynchronous.
...
It still needs testing and cleanup, it was done with less
care than the client-side.
The socket listening and connexion is still synchronous
2010-01-06 22:49:40 +01:00
Aris Adamantiadis
ef5dc6cd2b
Add support for async global requests
...
Normally the infamous packet_wait() synchronous call
is gone in all SSH2 client code.
2010-01-06 21:48:44 +01:00
Aris Adamantiadis
335a0fe768
Remove some references to packet_wait()
2010-01-03 23:36:06 +01:00
Aris Adamantiadis
b25ebf4bdb
Removed channel_handle now unused function
2010-01-03 23:23:56 +01:00
Aris Adamantiadis
648e5d62ba
Some work for async channel requests
2010-01-03 22:14:21 +01:00
Vic Lee
1944dc8b5f
Add new API function ssh_userauth_privatekey_file().
...
Signed-off-by: Vic Lee <llyzs@163.com>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-12-30 19:05:37 +01:00
Aris Adamantiadis
8d1faa0dbc
Made channel_open_session partially asynchronous
2009-12-27 00:06:34 +01:00
Aris Adamantiadis
a229cb4676
Asynchronous authentication works !
2009-12-26 21:59:37 +01:00
Aris Adamantiadis
682ed18123
New packet handler for SSH_USERAUTH_BANNER
2009-12-26 20:24:07 +01:00
Aris Adamantiadis
6f3505bf6b
Asynchronous service request
2009-12-26 16:51:33 +01:00
Aris Adamantiadis
43288bc4f2
added ssh_message_auth_reply_pk_ok_simple
2009-12-20 18:51:37 +01:00
Aris Adamantiadis
2e22d6ef99
Add key validation in server side authentication
2009-12-20 18:05:02 +01:00
Aris Adamantiadis
a1870a62cf
Documentation callbacks.h + standardization
2009-12-18 23:56:59 +01:00
Andreas Schneider
ebce70eba1
Fixed documentation of buffer struct.
2009-12-18 23:41:01 +01:00
Andreas Schneider
1b7877f6ed
Moved the doxygen mainpage to doc/mainpage.dox
2009-12-18 23:35:41 +01:00
Andreas Schneider
7500b0564c
Document the callback structure correctly.
2009-12-18 23:19:37 +01:00
Andreas Schneider
0c992ece3b
Added a mainpage to doxygen.
2009-12-18 23:12:47 +01:00
Aris Adamantiadis
9780f22866
Made packet_wait issue warnings
2009-12-13 20:49:47 +01:00
Aris Adamantiadis
c92f54102e
Key exchange currently done asynchronously
...
Fixed an important bug in packet buffering (two packets received in the same recv would'nt be processed correctly)
2009-12-13 18:20:05 +01:00
Aris Adamantiadis
ad7e9d88fb
packet SSH_KEXINIT received and parsed
...
Resolved some bugs in the callback mechanism as well
2009-12-12 00:23:53 +01:00