Andreas Schneider
|
3d158fffa0
|
doc: Improve the PKI documentation a bit.
|
2013-10-01 14:47:57 +02:00 |
|
Andreas Schneider
|
ebdd0c6ac1
|
src: Migrate to SSH_LOG.
|
2013-07-14 12:44:26 +02:00 |
|
Aris Adamantiadis
|
bf5e5eebd7
|
pki: fix comments
|
2013-07-13 23:01:30 +02:00 |
|
Aris Adamantiadis
|
dd6a0b51ac
|
Server: fix rekeying
|
2013-07-13 22:56:07 +02:00 |
|
Andreas Schneider
|
d83b3d9ebe
|
pki: Limit privkey to 4M for now.
|
2013-06-17 12:07:32 +02:00 |
|
Andreas Schneider
|
6f8b5ed679
|
pki: Fix a resource leak on error.
|
2013-06-17 11:49:13 +02:00 |
|
Andreas Schneider
|
09663692dd
|
pki: Use fstat() after opening the file.
|
2013-06-13 11:04:59 +02:00 |
|
Andreas Schneider
|
e403596d98
|
pki: Add a size limit for pubkey files.
|
2012-11-21 12:44:00 +01:00 |
|
Xi Wang
|
cab00c3bfc
|
pki: Fix integer overflow in ssh_pki_import_privkey_file().
If the file size is ULONG_MAX, the call to malloc() may allocate a
small buffer, leading to a memory corruption.
|
2012-10-22 21:00:08 +02:00 |
|
Andreas Schneider
|
3d390cf6ff
|
pki: Make sure the key_buf is null terminated.
Found by Coverity.
|
2012-10-12 14:45:54 +02:00 |
|
Andreas Schneider
|
0a4ea19982
|
pki: Fix a possible null pointer dereference.
Found by Coverity.
|
2012-10-12 08:07:02 +02:00 |
|
Andreas Schneider
|
3e93836e8b
|
pki: Make error handling code reachable again.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
bfa568e448
|
pki: Check for no memory available calling ssh_key_new().
|
2012-10-07 22:04:58 +02:00 |
|
Andreas Schneider
|
3db2ac41eb
|
pki: Handle error of pki_import_pubkey_buffer() correctly.
|
2012-10-07 21:53:37 +02:00 |
|
Andreas Schneider
|
977951e96a
|
pki: Open privkey file in binary mode.
This is needed to correctly detect carriage return.
|
2012-09-04 11:28:33 +02:00 |
|
Andreas Schneider
|
4019dbed85
|
pki: Add ecdsa support for signature verification.
|
2012-02-04 23:45:01 +01:00 |
|
Andreas Schneider
|
0770843309
|
pki: Fix ssh_pki_log function.
|
2012-02-04 23:03:53 +01:00 |
|
Andreas Schneider
|
e93f17cad8
|
pki: Don't free a const key!
|
2012-02-04 22:07:03 +01:00 |
|
Andreas Schneider
|
e4d0ac7ba1
|
pki: Update copyright.
|
2012-02-04 20:37:29 +01:00 |
|
Andreas Schneider
|
679cd9efd8
|
pki: Fix build if you don't have ECC support.
|
2012-02-04 18:37:05 +01:00 |
|
Andreas Schneider
|
b309dd8fb7
|
pki: Add support to generate ecdsa keys.
|
2012-02-04 18:37:04 +01:00 |
|
Andreas Schneider
|
f35c284761
|
pki: Add support to import ecdsa pubkeys.
|
2012-02-04 18:37:04 +01:00 |
|
Andreas Schneider
|
ea74a12b70
|
pki: Add support to import ecdsa private keys.
|
2012-02-04 18:37:03 +01:00 |
|
Andreas Schneider
|
244fa0474b
|
pki: Fix typo in error message.
|
2012-02-04 18:37:03 +01:00 |
|
Andreas Schneider
|
2c04994443
|
pki: Add a ssh_key_cmp() function.
|
2011-10-29 19:58:28 +02:00 |
|
Aris Adamantiadis
|
e38f2f933b
|
pki: ssh_pki_generate
for both gcrypt and openssl
|
2011-09-24 01:36:58 +02:00 |
|
Aris Adamantiadis
|
d24e353e38
|
pki: null ptr check
|
2011-09-18 20:34:16 +02:00 |
|
Andreas Schneider
|
fa7798833a
|
pki: Use ssh_log_function() for ssh_pki_log().
|
2011-09-17 11:09:19 +02:00 |
|
Andreas Schneider
|
4a5b72a535
|
pki: Use ssh_string_get_char().
|
2011-09-08 16:14:35 +02:00 |
|
Andreas Schneider
|
808c7a9be4
|
pki: Add ssh_pki_export_pubkey_rsa1().
|
2011-09-05 11:28:19 +02:00 |
|
Andreas Schneider
|
a0e3facac7
|
pki: Add ecdsa key support.
|
2011-09-02 23:10:23 +02:00 |
|
Andreas Schneider
|
b5b3db6c90
|
pki: Check the type of the key blob earlier.
|
2011-08-30 22:35:01 +02:00 |
|
Andreas Schneider
|
822c68eb8e
|
pki: Use consistent API for ssh_pki_export_privkey_to_pubkey().
|
2011-08-30 10:28:57 +02:00 |
|
Andreas Schneider
|
60b92e458e
|
pki: Use consistent API for ssh_pki_export_pubkey_blob().
|
2011-08-30 10:16:53 +02:00 |
|
Andreas Schneider
|
6bf8dfa073
|
pki: Fix session_id hashing.
I don't understand why this code worked before. It was completly wrong.
|
2011-08-29 22:39:47 +02:00 |
|
Andreas Schneider
|
7a9f65dd94
|
pki: Refactor ssh_pki_do_sign().
|
2011-08-28 22:25:33 +02:00 |
|
Andreas Schneider
|
561441105f
|
pki: Add Windows defines.
|
2011-08-28 14:29:44 +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 |
|
Andreas Schneider
|
7457937bab
|
pki: Migrate ssh_pki_do_sign to new pki.
|
2011-08-26 09:51:02 +02:00 |
|
Andreas Schneider
|
dc9feec005
|
pki: Add more return values for file importing functions.
|
2011-08-23 21:54:01 +02:00 |
|
Andreas Schneider
|
149be78ee0
|
pki: We need only one signature verify blob function.
This fixes the build without server.
|
2011-08-23 08:19:53 +02:00 |
|
Andreas Schneider
|
8fb8ad0151
|
agent: Fix memory leak.
|
2011-08-22 21:57:00 +02:00 |
|
Andreas Schneider
|
82ca6a6c53
|
pki: Add ssh_srv_pki_signature_verify_blob().
|
2011-08-22 18:41:47 +02:00 |
|
Andreas Schneider
|
5cc98ed720
|
pki: Add ssh_pki_signature_verify_blob().
|
2011-08-22 18:39:56 +02:00 |
|
Andreas Schneider
|
79ffd49940
|
pki: Add ssh_srv_pki_do_sign_sessionid().
|
2011-08-22 13:48:25 +02:00 |
|
Andreas Schneider
|
1b57445f6b
|
pki: Add ssh_pki_do_sign_agent().
|
2011-08-21 13:43:20 +02:00 |
|
Andreas Schneider
|
9c9199e05f
|
pki: Fix possible segfault in ssh_key_type_from_name().
|
2011-08-21 13:13:53 +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 |
|