From 4ca3d6d28f959793f412a6eb02211020a9204050 Mon Sep 17 00:00:00 2001 From: Brad Morgan Date: Tue, 7 May 2013 14:37:15 -0400 Subject: [PATCH] Added ifdef --- include/git2/transport.h | 2 ++ 1 file changed, 2 insertions(+) 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 */