diff --git a/include/git2/transport.h b/include/git2/transport.h index c455e9ee0..b3d43ebf6 100644 --- a/include/git2/transport.h +++ b/include/git2/transport.h @@ -31,8 +31,10 @@ GIT_BEGIN_DECL typedef enum { /* git_cred_userpass_plaintext */ GIT_CREDTYPE_USERPASS_PLAINTEXT = 1, +#ifdef GIT_SSH GIT_CREDTYPE_SSH_KEYFILE_PASSPHRASE = 2, GIT_CREDTYPE_SSH_PUBLICKEY = 3, +#endif } git_credtype_t; /* The base structure for all credential types */