Jonas Jonsson
d1df255df4
sftp: Handle short reads of sftp_async_read().
...
sftp_async_read() and sftp_async_read_begin() assume that the whole read
will be successful but when this is not the case, the offset will be
wrong.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2011-08-29 10:05:26 +02:00
Andreas Schneider
a060a235a4
pki: string_* -> ssh_string_*
2011-08-28 22:51:00 +02:00
Andreas Schneider
7a9f65dd94
pki: Refactor ssh_pki_do_sign().
2011-08-28 22:25:33 +02:00
Andreas Schneider
246d20ef23
pki: Refactor _RSA_do_sign().
2011-08-28 22:25:33 +02:00
Andreas Schneider
f803538d21
doc: Fix authentication docs.
2011-08-28 20:08:36 +02:00
Andreas Schneider
292ed71f09
doc: Fix a check in the doc code.
2011-08-28 20:02:27 +02:00
Andreas Schneider
2d9cd48b1d
pki: Cleanup crypto includes.
2011-08-28 14:50:43 +02:00
Andreas Schneider
10d3d73039
pki: Fix gcrypt includes and update copyright.
2011-08-28 14:50:43 +02:00
Andreas Schneider
f02f889111
pki: Get rid of the string.h include in pki_gcrypt.c.
2011-08-28 14:50:43 +02:00
Andreas Schneider
a9eb0020b8
legacy: Move ssh_private_key and ssh_public_key typedefs.
2011-08-28 14:50:43 +02:00
Andreas Schneider
fb4f1412ba
build: Fix the build of keyfiles torture test.
2011-08-28 14:50:28 +02:00
Andreas Schneider
561441105f
pki: Add Windows defines.
2011-08-28 14:29:44 +02:00
Andreas Schneider
7c28d0ce6d
pki: Compile pki_gcrypt.c only if we need it.
2011-08-28 14:29:17 +02:00
Andreas Schneider
5cf23522de
keyfiles: Remove keyfiles.h.
2011-08-28 14:26:40 +02:00
Andreas Schneider
be660e801a
keyfiles: Remove try_publickey_from_file().
2011-08-28 14:24:23 +02:00
Andreas Schneider
bce2c22e45
keyfiles: Make ssh_try_publickey_from_file() legacy.
2011-08-28 14:21:56 +02:00
Andreas Schneider
29ecccb96d
keyfiles: Make ssh_try_publickey_from_file() legacy.
2011-08-28 14:19:07 +02:00
Andreas Schneider
16b47496c1
sftp: Don't create file page.
2011-08-28 13:20:58 +02:00
Andreas Schneider
9379a93c98
doc: Fix some doxygen latex warnings.
2011-08-28 13:17:39 +02:00
Andreas Schneider
21875bc71e
sftp: Improve documentation.
2011-08-28 13:17:27 +02:00
Andreas Schneider
0f41f21227
auth: Refactor and rename kbdauth_send().
2011-08-28 12:54:49 +02:00
Andreas Schneider
98ada12f66
libsshpp: Remove type argument from doc.
2011-08-27 13:58:53 +02:00
Andreas Schneider
0bd99b3773
auth: Fix doc typos.
2011-08-27 13:58:08 +02:00
Andreas Schneider
e5e673bafe
auth: Handle request service timeout in blocking mode.
2011-08-26 23:56:49 +02:00
Andreas Schneider
79ed1bc601
pki: Handle hash correctly.
...
Looks like only DSA in grypt needs a leading zero to mark the has as
positive. See
http://lists.gnupg.org/pipermail/gcrypt-devel/2005-February/000754.html
2011-08-26 23:13:57 +02:00
milo
228e2edac5
Quick fix for gcrypt DSA signature
2011-08-26 22:18:04 +02:00
Andreas Schneider
1d734f16cf
legacy: Remove privatekey_from_base64().
...
This function has been introduced for libssh 0.6. So we can remove it
completely.
2011-08-26 21:46:56 +02:00
Andreas Schneider
5a0735d1e8
messages: Fix ssh_packet_userauth_request().
...
Remove useless ssh_pki_import_signature_blob().
2011-08-26 21:19:49 +02:00
milo
f1634d33da
Free sig_blob if an error occurs
2011-08-26 18:17:14 +02:00
milo
4bdd831d7f
Fix double free in ssh_packet_userauth_request
2011-08-26 15:49:12 +02:00
Andreas Schneider
d4424b2767
auth: Refactor and fix ssh_userauth_kbdint().
2011-08-26 13:44:00 +02:00
Andreas Schneider
f2e08e8d7b
auth: Fix ssh_userauth_agent_publickey pending state.
2011-08-26 13:34:40 +02:00
Andreas Schneider
26e624c1b7
auth: Don't fail in publickey_auto if we can't read the key.
...
We should go on and try the next one as it was before. Also make sure we
don't leak memory ;)
2011-08-26 13:34:40 +02:00
Andreas Schneider
f8c987d1d4
auth: Fix ssh_userauth_publickey() pending_call_state.
2011-08-26 13:32:08 +02:00
Andreas Schneider
696f574a56
keys: Remove obsolete signatue functions.
2011-08-26 10:48:37 +02:00
Andreas Schneider
ab1a66ca7b
pki: Fix build with DEBUG_CRYPTO.
2011-08-26 10:44:43 +02:00
Andreas Schneider
7457937bab
pki: Migrate ssh_pki_do_sign to new pki.
2011-08-26 09:51:02 +02:00
Andreas Schneider
b5db04003d
auth: Fix a segfault in ssh_userauth_kbdint_init().
2011-08-26 09:00:39 +02:00
Andreas Schneider
a51d377afe
auth: Refactor kbdauth_init().
...
Rename it to ssh_userauth_kbdint_init.
2011-08-25 16:41:14 +02:00
Andreas Schneider
892cb92f57
auth: Prefix kbdint functions.
2011-08-25 16:26:12 +02:00
Andreas Schneider
c59939d4a2
auth: Make ssh_userauth_privatekey_file() legacy.
2011-08-25 16:14:29 +02:00
Andreas Schneider
5c601115c3
auth: Refactor ssh_userauth_password().
2011-08-25 16:14:21 +02:00
Andreas Schneider
89253fd22a
auth: Make ssh_userauth_autopubkey legacy.
2011-08-25 10:19:09 +02:00
Andreas Schneider
21261270e5
auth: Add ssh_userauth_publickey_auto().
2011-08-25 10:13:23 +02:00
Andreas Schneider
1a56892e9f
keys: Remove obsolete ssh_do_sign().
2011-08-25 10:13:23 +02:00
Andreas Schneider
c5643c0967
agent: Remove obsolete agent_sign_data().
2011-08-25 10:13:23 +02:00
Andreas Schneider
c5837a6c63
keys: Remove obsolete ssh_do_sign_with_agent().
2011-08-25 10:13:23 +02:00
Andreas Schneider
c221db0f36
auth: Add ssh_userauth_agent().
...
This commit is pretty big cause several functions have been refactored.
2011-08-25 10:13:23 +02:00
Andreas Schneider
4c1d3b708c
auth: Make ssh_userauth_pubkey legacy.
2011-08-23 21:54:02 +02:00
Andreas Schneider
379d65eaaf
auth: Add ssh_userauth_publickey().
2011-08-23 21:54:02 +02:00