Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d937916c
Commit
d937916c
authored
Jun 14, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12193 Discontinue support of unsecure and unsupported OpenSSL versions (< 1.0.1)
parent
d4007f2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
cmake/ssl.cmake
cmake/ssl.cmake
+12
-11
No files found.
cmake/ssl.cmake
View file @
d937916c
...
...
@@ -167,31 +167,32 @@ MACRO (MYSQL_CHECK_SSL)
SET
(
CMAKE_REQUIRED_INCLUDES
)
IF
(
OPENSSL_INCLUDE_DIR AND OPENSSL_LIBRARIES AND
CRYPTO_LIBRARY AND HAVE_SHA512_DIGEST_LENGTH
)
SET
(
SSL_SOURCES
""
)
SET
(
SSL_LIBRARIES
${
OPENSSL_LIBRARIES
}
${
CRYPTO_LIBRARY
}
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"SunOS"
)
SET
(
SSL_LIBRARIES
${
SSL_LIBRARIES
}
${
LIBSOCKET
}
)
ENDIF
()
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
SET
(
SSL_LIBRARIES
${
SSL_LIBRARIES
}
${
LIBDL
}
)
ENDIF
()
# Verify version number. Version information looks like:
# #define OPENSSL_VERSION_NUMBER 0x1000103fL
# Encoded as MNNFFPPS: major minor fix patch status
FILE
(
STRINGS
"
${
OPENSSL_INCLUDE_DIR
}
/openssl/opensslv.h"
OPENSSL_VERSION_NUMBER
REGEX
"^#define[
\t
]+OPENSSL_VERSION_NUMBER[
\t
]+0x[0-9].*"
REGEX
"^#
[
\t
]*
define[
\t
]+OPENSSL_VERSION_NUMBER[
\t
]+0x[0-9].*"
)
STRING
(
REGEX REPLACE
"^.*OPENSSL_VERSION_NUMBER[
\t
]+0x([0-9]).*$"
"
\\
1"
OPENSSL_MAJOR_VERSION
"
${
OPENSSL_VERSION_NUMBER
}
"
)
MESSAGE
(
STATUS
"OPENSSL_MAJOR_VERSION =
${
OPENSSL_MAJOR_VERSION
}
"
)
ENDIF
()
IF
(
OPENSSL_MAJOR_VERSION GREATER 0
)
SET
(
SSL_SOURCES
""
)
SET
(
SSL_LIBRARIES
${
OPENSSL_LIBRARIES
}
${
CRYPTO_LIBRARY
}
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"SunOS"
)
SET
(
SSL_LIBRARIES
${
SSL_LIBRARIES
}
${
LIBSOCKET
}
)
ENDIF
()
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
SET
(
SSL_LIBRARIES
${
SSL_LIBRARIES
}
${
LIBDL
}
)
ENDIF
()
MESSAGE
(
STATUS
"OPENSSL_INCLUDE_DIR =
${
OPENSSL_INCLUDE_DIR
}
"
)
MESSAGE
(
STATUS
"OPENSSL_LIBRARIES =
${
OPENSSL_LIBRARIES
}
"
)
MESSAGE
(
STATUS
"CRYPTO_LIBRARY =
${
CRYPTO_LIBRARY
}
"
)
MESSAGE
(
STATUS
"OPENSSL_MAJOR_VERSION =
${
OPENSSL_MAJOR_VERSION
}
"
)
MESSAGE
(
STATUS
"SSL_LIBRARIES =
${
SSL_LIBRARIES
}
"
)
SET
(
SSL_INCLUDE_DIRS
${
OPENSSL_INCLUDE_DIR
}
)
SET
(
SSL_INTERNAL_INCLUDE_DIRS
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment