Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
sergi
Tor
Commits
2b4a3d07
Commit
2b4a3d07
authored
4 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Do not define OPENSSL_VERSION in compat_openssl.h
Apparently it conflicts with definitions elsewhere in Openssl 3.0.0.
parent
e399d32c
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
src/lib/crypt_ops/compat_openssl.h
+0
-5
0 additions, 5 deletions
src/lib/crypt_ops/compat_openssl.h
src/lib/crypt_ops/crypto_openssl_mgt.c
+11
-2
11 additions, 2 deletions
src/lib/crypt_ops/crypto_openssl_mgt.c
with
11 additions
and
7 deletions
src/lib/crypt_ops/compat_openssl.h
+
0
−
5
View file @
2b4a3d07
...
...
@@ -32,10 +32,6 @@
#define OPENSSL_1_1_API
#endif
/* OPENSSL_VERSION_NUMBER >= OPENSSL_V_SERIES(1,1,0) && ... */
#ifndef OPENSSL_VERSION
#define OPENSSL_VERSION SSLEAY_VERSION
#endif
#ifndef OPENSSL_1_1_API
#define OpenSSL_version(v) SSLeay_version(v)
#define OpenSSL_version_num() SSLeay()
...
...
@@ -54,4 +50,3 @@
#endif
/* defined(ENABLE_OPENSSL) */
#endif
/* !defined(TOR_COMPAT_OPENSSL_H) */
This diff is collapsed.
Click to expand it.
src/lib/crypt_ops/crypto_openssl_mgt.c
+
11
−
2
View file @
2b4a3d07
...
...
@@ -101,13 +101,22 @@ static char *crypto_openssl_version_str = NULL;
const
char
*
crypto_openssl_get_version_str
(
void
)
{
#ifdef OPENSSL_VERSION
const
int
query
=
OPENSSL_VERSION
;
#else
/* This old name was changed around OpenSSL 1.1.0 */
const
int
query
=
SSLEAY_VERSION
;
#endif
if
(
crypto_openssl_version_str
==
NULL
)
{
const
char
*
raw_version
=
OpenSSL_version
(
OPENSSL_VERSION
);
const
char
*
raw_version
=
OpenSSL_version
(
query
);
crypto_openssl_version_str
=
parse_openssl_version_str
(
raw_version
);
}
return
crypto_openssl_version_str
;
}
#undef QUERY_OPENSSL_VERSION
static
char
*
crypto_openssl_header_version_str
=
NULL
;
/* Return a human-readable version of the compile-time openssl version
* number. */
...
...
@@ -208,7 +217,7 @@ crypto_openssl_early_init(void)
setup_openssl_threading
();
unsigned
long
version_num
=
OpenSSL_version_num
();
const
char
*
version_str
=
OpenSSL_version
(
OPENSSL_VERSION
);
const
char
*
version_str
=
crypto_openssl_get_version_str
(
);
if
(
version_num
==
OPENSSL_VERSION_NUMBER
&&
!
strcmp
(
version_str
,
OPENSSL_VERSION_TEXT
))
{
log_info
(
LD_CRYPTO
,
"OpenSSL version matches version from headers "
...
...
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