1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

pki: Add a common place to store raw signatures

This is a preparation to store the raw signature for all algorithms in
the same place in ssh_signature.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2019-04-30 15:31:19 +02:00
committed by Andreas Schneider
parent e775182c2e
commit 0ea9e39e81
2 changed files with 4 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ struct ssh_signature_struct {
struct mbedtls_ecdsa_sig ecdsa_sig;
#endif /* HAVE_LIBGCRYPT */
ed25519_signature *ed25519_sig;
ssh_string raw_sig;
};
typedef struct ssh_signature_struct *ssh_signature;

View File

@@ -629,6 +629,9 @@ void ssh_signature_free(ssh_signature sig)
break;
}
/* Explicitly zero the signature content before free */
ssh_string_burn(sig->raw_sig);
ssh_string_free(sig->raw_sig);
SAFE_FREE(sig);
}