pki: Add ecdsa key support.

This commit is contained in:
Andreas Schneider
2011-08-30 09:35:44 +02:00
parent 6dc7ddde3f
commit a0e3facac7
2 changed files with 13 additions and 0 deletions

View File

@@ -30,13 +30,19 @@ struct ssh_key_struct {
enum ssh_keytypes_e type;
int flags;
const char *type_c; /* Don't free it ! it is static */
int ecdsa_nid;
#ifdef HAVE_LIBGCRYPT
gcry_sexp_t dsa;
gcry_sexp_t rsa;
void *ecdsa;
#elif HAVE_LIBCRYPTO
DSA *dsa;
RSA *rsa;
#ifdef HAVE_OPENSSL_ECC
EC_KEY *ecdsa;
#else
void *ecdsa;
#endif /* HAVE_OPENSSL_EC_H */
#endif
void *cert;
};