From 9070b041843f0850f13947f7994264aab263557e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 30 Dec 2011 11:06:10 +0100 Subject: pki: Add ecdsa support for signature_to_blob. --- include/libssh/pki.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/libssh') diff --git a/include/libssh/pki.h b/include/libssh/pki.h index ad8bdb0e..b9da5fb6 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -22,6 +22,13 @@ #ifndef PKI_H_ #define PKI_H_ +#ifdef HAVE_OPENSSL_EC_H +#include +#endif +#ifdef HAVE_OPENSSL_ECDSA_H +#include +#endif + #include "libssh/crypto.h" #define SSH_KEY_FLAG_EMPTY 0x0 @@ -54,11 +61,16 @@ struct ssh_signature_struct { #ifdef HAVE_LIBGCRYPT gcry_sexp_t dsa_sig; gcry_sexp_t rsa_sig; + void *ecdsa_sig; #elif defined HAVE_LIBCRYPTO DSA_SIG *dsa_sig; ssh_string rsa_sig; +# ifdef HAVE_OPENSSL_ECC + ECDSA_SIG *ecdsa_sig; +# else + void *ecdsa_sig; +# endif #endif - void *ecdsa; }; typedef struct ssh_signature_struct *ssh_signature; -- cgit