]> git.proxmox.com Git - libgit2.git/blob - src/libgit2/transports/auth_ntlm.h
New upstream version 1.5.0+ds
[libgit2.git] / src / libgit2 / transports / auth_ntlm.h
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 "auth.h"
12
13 /* NTLM requires a full request/challenge/response */
14 #define GIT_AUTH_STEPS_NTLM 2
15
16 #ifdef GIT_NTLM
17
18 #if defined(GIT_OPENSSL)
19 # define CRYPT_OPENSSL
20 #elif defined(GIT_MBEDTLS)
21 # define CRYPT_MBEDTLS
22 #elif defined(GIT_SECURE_TRANSPORT)
23 # define CRYPT_COMMONCRYPTO
24 #endif
25
26 extern int git_http_auth_ntlm(
27 git_http_auth_context **out,
28 const git_net_url *url);
29
30 #else
31
32 #define git_http_auth_ntlm git_http_auth_dummy
33
34 #endif /* GIT_NTLM */
35
36 #endif
37