1 /* 2 * Copyright (C) the libgit2 contributors. All rights reserved. 3 * 4 * This file is part of libgit2, distributed under the GNU GPL v2 with 5 * a Linking Exception. For full terms see the included COPYING file. 6 */ 7 8 #ifndef INCLUDE_transports_auth_ntlm_h__ 9 #define INCLUDE_transports_auth_ntlm_h__ 10 11 #include "git2.h" 12 #include "auth.h" 13 14 /* NTLM requires a full request/challenge/response */ 15 #define GIT_AUTH_STEPS_NTLM 2 16 17 #ifdef GIT_NTLM 18 19 #if defined(GIT_OPENSSL) 20 # define CRYPT_OPENSSL 21 #elif defined(GIT_MBEDTLS) 22 # define CRYPT_MBEDTLS 23 #elif defined(GIT_SECURE_TRANSPORT) 24 # define CRYPT_COMMONCRYPTO 25 #endif 26 27 extern int git_http_auth_ntlm( 28 git_http_auth_context **out, 29 const git_net_url *url); 30 31 #else 32 33 #define git_http_auth_ntlm git_http_auth_dummy 34 35 #endif /* GIT_NTLM */ 36 37 #endif 38 39