aboutsummaryrefslogtreecommitdiff
path: root/libssh/wrapper.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/wrapper.c
parentf84ebc2e2770b16b43c62ecb67cf8d4bd1b99d72 (diff)
downloadlibssh-6b0a89a288d2ca41f93178f60266573eddd0db1e.tar.gz
libssh-6b0a89a288d2ca41f93178f60266573eddd0db1e.tar.xz
libssh-6b0a89a288d2ca41f93178f60266573eddd0db1e.zip
Get rid of CRYPTO
Diffstat (limited to 'libssh/wrapper.c')
-rw-r--r--libssh/wrapper.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/libssh/wrapper.c b/libssh/wrapper.c
index f82ae3e7..f6806057 100644
--- a/libssh/wrapper.c
+++ b/libssh/wrapper.c
@@ -769,20 +769,18 @@ static void cipher_free(struct crypto_struct *cipher) {
SAFE_FREE(cipher);
}
-CRYPTO *crypto_new(void) {
- CRYPTO *crypto;
+struct ssh_crypto_struct *crypto_new(void) {
+ struct ssh_crypto_struct *crypto;
- crypto = malloc(sizeof(CRYPTO));
+ crypto = malloc(sizeof(struct ssh_crypto_struct));
if (crypto == NULL) {
return NULL;
}
-
- memset(crypto, 0, sizeof(CRYPTO));
-
+ ZERO_STRUCTP(crypto);
return crypto;
}
-void crypto_free(CRYPTO *crypto){
+void crypto_free(struct ssh_crypto_struct *crypto){
if (crypto == NULL) {
return;
}