Aris Adamantiadis
760d93e87b
Revert "pki_gcrypt: fix warnings for SSH_KEYTYPE_ED25519"
...
This reverts commit 10f71c6769 .
Commit was redundant with ed25519 branch
2015-02-03 09:58:28 +01:00
Aris Adamantiadis
4343ac5b08
libgcrypt: Make the PEM parser ed25519 aware
...
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2015-02-02 14:45:52 +01:00
Jon Simons
b35f1f488c
pki_gcrypt: fix DSA signature extraction
...
Fix DSA signature extraction for the LIBGCRYPT build. Here, the same fix
that was applied to the LIBCRYPTO build for https://red.libssh.org/issues/144
is now adapted for pki_gcrypt. Additionally, ensure to set the resulting
output sig_blob buffer before returning.
Before this fix, one can observe the failure with the pkd test on a LIBGCRYPT
build as so:
# ./pkd_hello -i 1 -t torture_pkd_openssh_dsa_dsa_default
After, runs of 10000 back-to-back iterations of the same test are passing.
Signed-off-by: Jon Simons <jon@jonsimons.org >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2014-12-09 19:21:47 +01:00
Jon Simons
10f71c6769
pki_gcrypt: fix warnings for SSH_KEYTYPE_ED25519
...
Signed-off-by: Jon Simons <jon@jonsimons.org >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2014-12-09 19:21:34 +01:00
Artyom V. Poptsov
aaae6cd97d
pki_gcrypt: Initialize 'type_c' in 'pki_do_sign_sessionid'
...
Add missing initialization of 'type_c' field of a SSH signature in
'pki_do_sign_sessionid' procedure.
If libssh is compiled with GCrypt, 'dh_handshake_server' fails with
"Could not sign the session id" error. The change fixes that.
Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2014-10-02 08:30:17 +02:00
Andreas Schneider
368509f5d1
pki: Use ssh_buffer_add_data() in pki_gcrypt..
2014-01-22 16:12:31 +01:00
Andreas Schneider
13eef19000
pki: Do not use deprecated string functions.
2014-01-17 09:29:24 +01:00
Aris Adamantiadis
8fdfa13227
pki: fix gcrypt signature process
2014-01-07 14:20:49 +01:00
Andreas Schneider
68c3c26029
pki_gcrypt: Add pki_private_key_to_pem() stub.
2013-11-27 22:54:13 +01:00
Andreas Schneider
19f7458ed3
pki: Add ecdsa gcrypt stubs.
2012-02-04 20:25:24 +01:00
rofl0r
89733e697f
patch pki_gcrypt.c to be compilable without CMake
2012-01-02 16:41:52 +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
Andreas Schneider
808c7a9be4
pki: Add ssh_pki_export_pubkey_rsa1().
2011-09-05 11:28:19 +02:00
Andreas Schneider
e5a39a3ae9
keys: Remove keys.h where it is obsolete.
2011-08-30 12:15:20 +02:00
milo
0cbbe39e4f
Include stdio.h for snprintf
2011-08-30 11:39:14 +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
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
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
7457937bab
pki: Migrate ssh_pki_do_sign to new pki.
2011-08-26 09:51:02 +02:00
Andreas Schneider
93c4a8e427
pki: Fix memleak in gcrypt pki_publickey_to_blob().
2011-08-22 21:56:44 +02:00
Andreas Schneider
bf2f553fc3
pki: Improve pki gcrypt error reports.
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
bcc0a6d0e0
pki: Fix gcrypt pki_signature_from_blob().
2011-08-22 18:22:28 +02:00
Andreas Schneider
79ffd49940
pki: Add ssh_srv_pki_do_sign_sessionid().
2011-08-22 13:48:25 +02:00
Andreas Schneider
a86ac461fd
pki: Ensure sig_blob isn't used uninitialized.
2011-08-22 08:04:22 +02:00
Andreas Schneider
42cea1f2f1
pki: Fix ssh_key_dup() with gcrypt.
2011-08-21 12:59:55 +02:00
Andreas Schneider
eb65f031af
pki: Fix setting flags in ssh_key_dup().
2011-08-21 12:31:16 +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
bb509ce4f7
pki: Remove unused variables.
2011-08-20 10:55:22 +02:00
Andreas Schneider
c575de17a8
pki: Use a consistent naming scheme.
2011-08-19 11:14:23 +02:00
Andreas Schneider
ddcb88070b
misc: Remove session from ssh_get_local_username().
2011-08-16 23:04:25 +02:00
Andreas Schneider
25a2108809
pki: Remove session from ssh_pki_import_privkey_* functions.
2011-08-16 18:53:18 +02:00
Andreas Schneider
19a3f5a61d
pki: Make publickey_from_file() a legacy function.
2011-08-16 00:47:43 +02:00
Andreas Schneider
714fa8960d
pki: Move ssh_privatekey_type and privatekey_free to legacy.
2011-08-16 00:47:43 +02:00
milo
96e338ba56
Fixed typos in ssh_pki_publickey_to_string
2011-08-15 18:58:27 +02:00
Andreas Schneider
6ffee22448
pki: Add ssh_pki_publickey_to_string().
2011-08-15 18:48:08 +02:00
Andreas Schneider
a983512678
pki: Fix ssh_key_dup().
2011-08-15 18:48:08 +02:00
Andreas Schneider
190ae27463
pki: Added ssh_key_dup().
2011-08-15 16:26:58 +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
7c302d376c
pki: Move _privatekey_from_file to legacy.c.
2011-08-08 15:28:31 +02:00