aboutsummaryrefslogtreecommitdiff
path: root/src/pki.c
AgeCommit message (Collapse)AuthorFilesLines
2015-02-02ed25519: Add support to export OpenSSH container keysAris Adamantiadis1-6/+13
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-02ed25519: Add support o import OpenSSH container keysAris Adamantiadis1-10/+23
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-01-20pki: Make sure sig is not used unintialized.Andreas Schneider1-1/+1
BUG: https://red.libssh.org/issues/167 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-10-02pki: check ssh_buffer_pack return in ssh_pki_do_signJon Simons1-5/+10
Check the 'ssh_buffer_pack' return in ssh_pki_do_sign for the ED25519 case. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-10-02pki: fail when pubkey buffer length is not ED25519_PK_LENJon Simons1-1/+5
Fail fast in 'pki_import_pubkey_buffer' for the ED25519 case if a buffer sized ED25519_PK_LEN can not be retrieved. Before, the 'memcpy' could have read beyond the bounds of 'ssh_string_data(pubkey)'. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-09-07ed25519: Generate, sign and verify keys.Aris1-1/+80
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-05-09pki: Fix build without ECC support.Andreas Schneider1-0/+5
Signed-off-by: Andreas Schneider <asn@samba.org>
2014-05-06Small documentation fix.Hani Benhabiles1-2/+2
Signed-off-by: Hani Benhabiles <hani@linux.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-04-23pki: Correctly update the ECDSA keytype.Andreas Schneider1-1/+8
2014-04-23pki: Move ssh_pki_key_ecdsa_name() to the correct file.Andreas Schneider1-0/+14
2014-03-12pki: Use SHA-2 for session ID signing with ECDSA keysAlan Dunn1-12/+42
Previously, SHA-1 was used always. BUG: https://red.libssh.org/issues/148 Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-02-12pki: Fix the build on OpenSolaris.Andreas Schneider1-1/+1
2014-02-11pki: Fix memory leak with ecdsa signatures.Andreas Schneider1-0/+4
2014-01-19src: Rename buffer_add_data() to ssh_buffer_add_data().Andreas Schneider1-4/+4
2014-01-07update copyright informationAris Adamantiadis1-1/+1
2013-11-28pki: Fix a memory leak.Andreas Schneider1-0/+1
CID #1132819
2013-11-27pki: Add ssh_pki_import_privkey_file().Andreas Schneider1-0/+58
2013-10-18pki: Add support for ECDSA private key signing.Andreas Schneider1-14/+34
2013-10-18pki: Add the type as a char pointer.Andreas Schneider1-1/+1
2013-09-10doc: Improve the PKI documentation a bit.Andreas Schneider1-14/+18
2013-07-14src: Migrate to SSH_LOG.Andreas Schneider1-2/+1
2013-07-13pki: fix commentsAris Adamantiadis1-2/+2
2013-07-13Server: fix rekeyingAris Adamantiadis1-5/+5
2013-06-17pki: Limit privkey to 4M for now.Andreas Schneider1-0/+6
2013-06-17pki: Fix a resource leak on error.Andreas Schneider1-0/+3
2013-06-13pki: Use fstat() after opening the file.Andreas Schneider1-16/+16
2012-11-21pki: Add a size limit for pubkey files.Andreas Schneider1-1/+1
2012-10-22pki: Fix integer overflow in ssh_pki_import_privkey_file().Xi Wang1-0/+5
If the file size is ULONG_MAX, the call to malloc() may allocate a small buffer, leading to a memory corruption.
2012-10-12pki: Make sure the key_buf is null terminated.Andreas Schneider1-0/+1
Found by Coverity.
2012-10-12pki: Fix a possible null pointer dereference.Andreas Schneider1-3/+3
Found by Coverity.
2012-10-09pki: Make error handling code reachable again.Andreas Schneider1-1/+1
Found by Coverity.
2012-10-07pki: Check for no memory available calling ssh_key_new().Andreas Schneider1-0/+4
2012-10-07pki: Handle error of pki_import_pubkey_buffer() correctly.Andreas Schneider1-1/+3
2012-09-04pki: Open privkey file in binary mode.Andreas Schneider1-1/+1
This is needed to correctly detect carriage return.
2012-02-04pki: Add ecdsa support for signature verification.Andreas Schneider1-8/+24
2012-02-04pki: Fix ssh_pki_log function.Andreas Schneider1-1/+1
2012-02-04pki: Don't free a const key!Andreas Schneider1-1/+0
2012-02-04pki: Update copyright.Andreas Schneider1-1/+1
2012-02-04pki: Fix build if you don't have ECC support.Andreas Schneider1-8/+0
2012-02-04pki: Add support to generate ecdsa keys.Andreas Schneider1-4/+13
2012-02-04pki: Add support to import ecdsa pubkeys.Andreas Schneider1-1/+38
2012-02-04pki: Add support to import ecdsa private keys.Andreas Schneider1-0/+4
2012-02-04pki: Fix typo in error message.Andreas Schneider1-1/+1
2011-10-29pki: Add a ssh_key_cmp() function.Andreas Schneider1-0/+34
2011-09-24pki: ssh_pki_generateAris Adamantiadis1-0/+43
for both gcrypt and openssl
2011-09-18pki: null ptr checkAris Adamantiadis1-1/+5
2011-09-17pki: Use ssh_log_function() for ssh_pki_log().Andreas Schneider1-4/+5
2011-09-08pki: Use ssh_string_get_char().Andreas Schneider1-19/+2
2011-09-05pki: Add ssh_pki_export_pubkey_rsa1().Andreas Schneider1-0/+8
2011-09-02pki: Add ecdsa key support.Andreas Schneider1-0/+7