diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-12-30 11:06:10 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-02-04 18:37:04 +0100 |
commit | 9070b041843f0850f13947f7994264aab263557e (patch) | |
tree | f7bed3309831399c137d807e797e18d1b108e12b /include | |
parent | b309dd8fb72d1deaa16536f6d3391711594bbca5 (diff) | |
download | libssh-9070b041843f0850f13947f7994264aab263557e.tar.gz libssh-9070b041843f0850f13947f7994264aab263557e.tar.xz libssh-9070b041843f0850f13947f7994264aab263557e.zip |
pki: Add ecdsa support for signature_to_blob.
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/pki.h | 14 |
1 files changed, 13 insertions, 1 deletions
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 <openssl/ec.h> +#endif +#ifdef HAVE_OPENSSL_ECDSA_H +#include <openssl/ecdsa.h> +#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; |