Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf15c8ac

Browse files
ethomsonEdward Thomson
authored and
Edward Thomson
committed
http: add SSPI authentication on Windows
Add support for SSPI on Windows, which offers NTLM and Negotiateauthentication.
1 parent0d7f3f5 commitf15c8ac

File tree

5 files changed

+350
-9
lines changed

5 files changed

+350
-9
lines changed

‎cmake/SelectGSSAPI.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if(USE_GSSAPI)
2929
list(APPENDLIBGIT2_SYSTEM_LIBS${GSSFRAMEWORK_LIBRARIES})
3030

3131
set(GIT_GSSFRAMEWORK1)
32-
add_feature_info(SPNEGOGIT_GSSFRAMEWORK"SPNEGO authentication support (${USE_GSSAPI})")
32+
add_feature_info(GSSAPIGIT_GSSFRAMEWORK"GSSAPI support forSPNEGO authentication (${USE_GSSAPI})")
3333
elseif(USE_GSSAPISTREQUAL"gssapi")
3434
if(NOTGSSAPI_FOUND)
3535
message(FATAL_ERROR"Asked for gssapi GSS backend, but it wasn't found")
@@ -38,11 +38,11 @@ if(USE_GSSAPI)
3838
list(APPENDLIBGIT2_SYSTEM_LIBS${GSSAPI_LIBRARIES})
3939

4040
set(GIT_GSSAPI1)
41-
add_feature_info(SPNEGOGIT_GSSAPI"SPNEGO authentication support (${USE_GSSAPI})")
41+
add_feature_info(GSSAPIGIT_GSSAPI"GSSAPI support forSPNEGO authentication (${USE_GSSAPI})")
4242
else()
4343
message(FATAL_ERROR"Asked for backend${USE_GSSAPI} but it wasn't found")
4444
endif()
4545
else()
4646
set(GIT_GSSAPI0)
47-
add_feature_info(SPNEGONO"SPNEGO authentication support")
47+
add_feature_info(GSSAPINO"GSSAPI support forSPNEGO authentication")
4848
endif()

‎cmake/SelectHTTPSBackend.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ if(USE_HTTPS)
125125
list(APPENDLIBGIT2_PC_LIBS"-lwinhttp")
126126
endif()
127127

128-
list(APPENDLIBGIT2_SYSTEM_LIBS"rpcrt4""crypt32""ole32")
129-
list(APPENDLIBGIT2_PC_LIBS"-lrpcrt4""-lcrypt32""-lole32")
128+
list(APPENDLIBGIT2_SYSTEM_LIBS"rpcrt4""crypt32""ole32""secur32")
129+
list(APPENDLIBGIT2_PC_LIBS"-lrpcrt4""-lcrypt32""-lole32""-lsecur32")
130130
elseif(USE_HTTPSSTREQUAL"OpenSSL-Dynamic")
131131
set(GIT_OPENSSL1)
132132
set(GIT_OPENSSL_DYNAMIC1)

‎src/libgit2/transports/auth_negotiate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include"git2.h"
1313
#include"auth.h"
1414

15-
#if defined(GIT_GSSAPI)|| defined(GIT_GSSFRAMEWORK)
15+
#if defined(GIT_GSSAPI)|| defined(GIT_GSSFRAMEWORK)|| defined(GIT_WIN32)
1616

1717
externintgit_http_auth_negotiate(
1818
git_http_auth_context**out,

‎src/libgit2/transports/auth_ntlm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#ifndefINCLUDE_transports_auth_ntlmclient_h__
9-
#defineINCLUDE_transports_auth_ntlmclient_h__
8+
#ifndefINCLUDE_transports_auth_ntlm_h__
9+
#defineINCLUDE_transports_auth_ntlm_h__
1010

1111
#include"auth.h"
1212

1313
/* NTLM requires a full request/challenge/response */
1414
#defineGIT_AUTH_STEPS_NTLM 2
1515

16-
#ifdefGIT_NTLM
16+
#if defined(GIT_NTLM)|| defined(GIT_WIN32)
1717

1818
#if defined(GIT_OPENSSL)
1919
# defineCRYPT_OPENSSL

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp