summaryrefslogtreecommitdiffstats
path: root/libssh/keys.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-23 23:55:07 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-23 23:55:07 +0200
commit6b0a89a288d2ca41f93178f60266573eddd0db1e (patch)
tree7b04be6341e6722680aaaedad09a519f441b7325 /libssh/keys.c
parentf84ebc2e2770b16b43c62ecb67cf8d4bd1b99d72 (diff)
downloadlibssh-6b0a89a288d2ca41f93178f60266573eddd0db1e.tar.gz
libssh-6b0a89a288d2ca41f93178f60266573eddd0db1e.tar.xz
libssh-6b0a89a288d2ca41f93178f60266573eddd0db1e.zip
Get rid of CRYPTO
Diffstat (limited to 'libssh/keys.c')
-rw-r--r--libssh/keys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/keys.c b/libssh/keys.c
index 8ffa439..2fcc675 100644
--- a/libssh/keys.c
+++ b/libssh/keys.c
@@ -1168,7 +1168,7 @@ ssh_buffer ssh_userauth_build_digest(ssh_session session, ssh_message msg, char
string public key algorithm name
string public key to be used for authentication
*/
- CRYPTO *crypto = session->current_crypto ? session->current_crypto :
+ struct ssh_crypto_struct *crypto = session->current_crypto ? session->current_crypto :
session->next_crypto;
ssh_buffer buffer = NULL;
ssh_string session_id = NULL;
@@ -1220,7 +1220,7 @@ error:
* the content of sigbuf */
ssh_string ssh_do_sign(ssh_session session, ssh_buffer sigbuf,
ssh_private_key privatekey) {
- CRYPTO *crypto = session->current_crypto ? session->current_crypto :
+ struct ssh_crypto_struct *crypto = session->current_crypto ? session->current_crypto :
session->next_crypto;
unsigned char hash[SHA_DIGEST_LEN + 1] = {0};
ssh_string session_str = NULL;
@@ -1384,7 +1384,7 @@ ssh_string ssh_encrypt_rsa1(ssh_session session, ssh_string data, ssh_public_key
/* this function signs the session id */
ssh_string ssh_sign_session_id(ssh_session session, ssh_private_key privatekey) {
- CRYPTO *crypto=session->current_crypto ? session->current_crypto :
+ struct ssh_crypto_struct *crypto=session->current_crypto ? session->current_crypto :
session->next_crypto;
unsigned char hash[SHA_DIGEST_LEN + 1] = {0};
ssh_string signature = NULL;