diff options
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r-- | libssh/keyfiles.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 22ead29..b23e445 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -32,6 +32,7 @@ #include <fcntl.h> #include <ctype.h> #include "libssh/priv.h" + #ifdef HAVE_LIBGCRYPT #include <gcrypt.h> #elif defined HAVE_LIBCRYPTO @@ -39,9 +40,12 @@ #include <openssl/dsa.h> #include <openssl/err.h> #include <openssl/rsa.h> -#endif +#endif /* HAVE_LIBCRYPTO */ + #define MAXLINESIZE 80 + #ifdef HAVE_LIBGCRYPT + #define MAX_KEY_SIZE 32 #define MAX_PASSPHRASE_SIZE 1024 #define RSA_HEADER_BEGIN "-----BEGIN RSA PRIVATE KEY-----" @@ -462,7 +466,7 @@ static int read_dsa_privatekey(FILE *fp, gcry_sexp_t *r, ssh_auth_callback cb, free(v); return 1; } -#endif /* GCRYPT */ +#endif /* HAVE_LIBGCRYPT */ #ifdef HAVE_LIBCRYPTO static int pem_get_password(char *buf, int size, int rwflag, void *userdata) { |