Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
2132708a
Commit
2132708a
authored
9 years ago
by
Sergei Nikulov
Committed by
Daniel Stenberg
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake: added Windows SSL support
Closes #399
parent
4a889441
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+16
-4
16 additions, 4 deletions
CMakeLists.txt
lib/curl_config.h.cmake
+3
-0
3 additions, 0 deletions
lib/curl_config.h.cmake
with
19 additions
and
4 deletions
CMakeLists.txt
+
16
−
4
View file @
2132708a
...
...
@@ -122,10 +122,10 @@ endif()
option
(
CURL_HIDDEN_SYMBOLS
"Set to ON to hide libcurl internal symbols (=hide all symbols that aren't officially external)."
ON
)
mark_as_advanced
(
CURL_HIDDEN_SYMBOLS
)
#
IF(WIN32)
#
OPTION(CURL_WINDOWS_SSPI "Use windows libraries to allow NTLM authentication without openssl" ON)
#
MARK_AS_ADVANCED(CURL_WINDOWS_SSPI)
#
ENDIF()
IF
(
WIN32
)
OPTION
(
CURL_WINDOWS_SSPI
"Use windows libraries to allow NTLM authentication without openssl"
ON
)
MARK_AS_ADVANCED
(
CURL_WINDOWS_SSPI
)
ENDIF
()
option
(
HTTP_ONLY
"disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)"
OFF
)
mark_as_advanced
(
HTTP_ONLY
)
...
...
@@ -558,6 +558,18 @@ if(NOT UNIX)
check_include_file_concat
(
"winsock.h"
HAVE_WINSOCK_H
)
check_include_file_concat
(
"ws2tcpip.h"
HAVE_WS2TCPIP_H
)
check_include_file_concat
(
"winsock2.h"
HAVE_WINSOCK2_H
)
if
(
CURL_WINDOWS_SSPI
)
set
(
CMAKE_REQUIRED_DEFINITIONS
"
${
CMAKE_REQUIRED_DEFINITIONS
}
-DSECURITY_WIN32"
)
check_include_file_concat
(
"sspi.h"
HAVE_SSPI_H
)
if
(
HAVE_SSPI_H
)
check_include_file_concat
(
"schannel.h"
HAVE_SCHANNEL_H
)
set
(
USE_WINDOWS_SSPI ON
)
if
(
HAVE_SCHANNEL_H
)
set
(
USE_SCHANNEL ON
)
set
(
SSL_ENABLED ON
)
endif
()
endif
()
endif
()
endif
(
NOT UNIX
)
check_include_file_concat
(
"stdio.h"
HAVE_STDIO_H
)
...
...
This diff is collapsed.
Click to expand it.
lib/curl_config.h.cmake
+
3
−
0
View file @
2132708a
...
...
@@ -919,6 +919,9 @@
/* to enable SSPI support */
#cmakedefine USE_WINDOWS_SSPI 1
/* to enable Windows SSL */
#cmakedefine USE_SCHANNEL 1
/* Define to 1 if using yaSSL in OpenSSL compatibility mode. */
#cmakedefine USE_YASSLEMUL 1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment