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
3e61c90d
Commit
3e61c90d
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
Adjust usage of conditional definition of USE_OPENSSL
parent
ac18b471
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/http_ntlm.c
+17
-5
17 additions, 5 deletions
lib/http_ntlm.c
lib/md5.c
+15
-12
15 additions, 12 deletions
lib/md5.c
lib/urldata.h
+6
-0
6 additions, 0 deletions
lib/urldata.h
with
38 additions
and
17 deletions
lib/http_ntlm.c
+
17
−
5
View file @
3e61c90d
...
...
@@ -70,11 +70,23 @@
#ifndef USE_WINDOWS_SSPI
#include
<openssl/des.h>
#include
<openssl/md4.h>
#include
<openssl/md5.h>
#include
<openssl/ssl.h>
#include
<openssl/rand.h>
# ifdef USE_SSLEAY
# ifdef USE_OPENSSL
# include <openssl/des.h>
# include <openssl/md4.h>
# include <openssl/md5.h>
# include <openssl/ssl.h>
# include <openssl/rand.h>
# else
# include <des.h>
# include <md4.h>
# include <md5.h>
# include <ssl.h>
# include <rand.h>
# endif
# else
# error "Can't compile NTLM support without OpenSSL."
# endif
#if OPENSSL_VERSION_NUMBER < 0x00907001L
#define DES_key_schedule des_key_schedule
...
...
This diff is collapsed.
Click to expand it.
lib/md5.c
+
15
−
12
View file @
3e61c90d
...
...
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 200
7
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 200
8
, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
...
...
@@ -25,10 +25,19 @@
#ifndef CURL_DISABLE_CRYPTO_AUTH
#if !defined(USE_SSLEAY) || !defined(USE_OPENSSL)
/* This code segment is only used if OpenSSL is not provided, as if it is
we use the MD5-function provided there instead. No good duplicating
code! */
#include
<string.h>
#ifdef USE_SSLEAY
/* When OpenSSL is available we use the MD5-function from OpenSSL */
# ifdef USE_OPENSSL
# include <openssl/md5.h>
# else
# include <md5.h>
# endif
#else
/* USE_SSLEAY */
/* When OpenSSL is not available we use this code segment */
/* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
...
...
@@ -52,8 +61,6 @@ These notices must be retained in any copies of any part of this
documentation and/or software.
*/
#include
<string.h>
/* UINT4 defines a four byte word */
typedef
unsigned
int
UINT4
;
...
...
@@ -332,11 +339,7 @@ static void Decode (UINT4 *output,
(((
UINT4
)
input
[
j
+
2
])
<<
16
)
|
(((
UINT4
)
input
[
j
+
3
])
<<
24
);
}
#else
/* If OpenSSL is present */
#include
<openssl/md5.h>
#include
<string.h>
#endif
#endif
/* USE_SSLEAY */
#include
"curl_md5.h"
...
...
This diff is collapsed.
Click to expand it.
lib/urldata.h
+
6
−
0
View file @
3e61c90d
...
...
@@ -74,6 +74,12 @@
#include
"pem.h"
#include
"ssl.h"
#include
"err.h"
#ifdef HAVE_OPENSSL_ENGINE_H
#include
<engine.h>
#endif
#ifdef HAVE_OPENSSL_PKCS12_H
#include
<pkcs12.h>
#endif
#endif
/* USE_OPENSSL */
#ifdef USE_GNUTLS
#error Configuration error; cannot use GnuTLS *and* OpenSSL.
...
...
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