mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-10 06:23:01 +03:00
wrapper: Reformat crypto_new
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -150,15 +150,16 @@ static void cipher_free(struct ssh_cipher_struct *cipher) {
|
|||||||
SAFE_FREE(cipher);
|
SAFE_FREE(cipher);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ssh_crypto_struct *crypto_new(void) {
|
struct ssh_crypto_struct *crypto_new(void)
|
||||||
struct ssh_crypto_struct *crypto;
|
{
|
||||||
|
struct ssh_crypto_struct *crypto;
|
||||||
|
|
||||||
crypto = malloc(sizeof(struct ssh_crypto_struct));
|
crypto = malloc(sizeof(struct ssh_crypto_struct));
|
||||||
if (crypto == NULL) {
|
if (crypto == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
ZERO_STRUCTP(crypto);
|
ZERO_STRUCTP(crypto);
|
||||||
return crypto;
|
return crypto;
|
||||||
}
|
}
|
||||||
|
|
||||||
void crypto_free(struct ssh_crypto_struct *crypto)
|
void crypto_free(struct ssh_crypto_struct *crypto)
|
||||||
|
Reference in New Issue
Block a user