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
fecedb8c
Commit
fecedb8c
authored
Dec 05, 2018
by
Georg Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows fixes
parent
b8d32f74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
include/violite.h
include/violite.h
+9
-1
sql/sys_vars.cc
sql/sys_vars.cc
+1
-8
vio/viosslfactories.c
vio/viosslfactories.c
+3
-3
No files found.
include/violite.h
View file @
fecedb8c
...
@@ -53,8 +53,16 @@ enum enum_vio_io_event
...
@@ -53,8 +53,16 @@ enum enum_vio_io_event
#define VIO_TLSv1_0 1
#define VIO_TLSv1_0 1
#define VIO_TLSv1_1 2
#define VIO_TLSv1_1 2
#ifdef TLS1_2_VERSION
#define VIO_TLSv1_2 4
#define VIO_TLSv1_2 4
#else
#define VIO_TLSv1_2 0
#endif
#ifdef TLS1_3_VERSION
#define VIO_TLSv1_3 8
#define VIO_TLSv1_3 8
#else
#define VIO_TLSv1_3 0
#endif
#define VIO_LOCALHOST 1U
/* a localhost connection */
#define VIO_LOCALHOST 1U
/* a localhost connection */
#define VIO_BUFFERED_READ 2U
/* use buffered read */
#define VIO_BUFFERED_READ 2U
/* use buffered read */
...
@@ -171,7 +179,7 @@ struct st_VioSSLFd
...
@@ -171,7 +179,7 @@ struct st_VioSSLFd
const
char
*
ca_file
,
const
char
*
ca_path
,
const
char
*
ca_file
,
const
char
*
ca_path
,
const
char
*
cipher
,
enum
enum_ssl_init_error
*
error
,
const
char
*
cipher
,
enum
enum_ssl_init_error
*
error
,
const
char
*
crl_file
,
const
char
*
crl_path
,
const
char
*
crl_file
,
const
char
*
crl_path
,
long
tls_version
);
ulong
long
tls_version
);
void
free_vio_ssl_acceptor_fd
(
struct
st_VioSSLFd
*
fd
);
void
free_vio_ssl_acceptor_fd
(
struct
st_VioSSLFd
*
fd
);
#endif
/* HAVE_OPENSSL */
#endif
/* HAVE_OPENSSL */
...
...
sql/sys_vars.cc
View file @
fecedb8c
...
@@ -3222,14 +3222,7 @@ static Sys_var_set Sys_tls_version(
...
@@ -3222,14 +3222,7 @@ static Sys_var_set Sys_tls_version(
"TLS protocol version for secure connections."
,
"TLS protocol version for secure connections."
,
READ_ONLY
GLOBAL_VAR
(
tls_version
),
CMD_LINE
(
REQUIRED_ARG
),
READ_ONLY
GLOBAL_VAR
(
tls_version
),
CMD_LINE
(
REQUIRED_ARG
),
tls_version_names
,
tls_version_names
,
DEFAULT
(
VIO_TLSv1_0
|
VIO_TLSv1_1
DEFAULT
(
VIO_TLSv1_0
|
VIO_TLSv1_1
|
VIO_TLSv1_2
|
VIO_TLSv1_3
));
#ifdef TLS1_2_VERSION
|
VIO_TLSv1_2
#endif
#ifdef TLS1_3_VERSION
|
VIO_TLSv1_3
#endif
));
static
Sys_var_mybool
Sys_standard_compliant_cte
(
static
Sys_var_mybool
Sys_standard_compliant_cte
(
"standard_compliant_cte"
,
"standard_compliant_cte"
,
...
...
vio/viosslfactories.c
View file @
fecedb8c
...
@@ -167,7 +167,7 @@ static void check_ssl_init()
...
@@ -167,7 +167,7 @@ static void check_ssl_init()
}
}
}
}
static
long
vio_tls_protocol_options
(
long
tls_version
)
static
long
vio_tls_protocol_options
(
ulong
long
tls_version
)
{
{
long
tls_protocol_flags
=
long
tls_protocol_flags
=
#ifdef TLS1_3_VERSION
#ifdef TLS1_3_VERSION
...
@@ -214,7 +214,7 @@ new_VioSSLFd(const char *key_file, const char *cert_file,
...
@@ -214,7 +214,7 @@ new_VioSSLFd(const char *key_file, const char *cert_file,
const
char
*
cipher
,
my_bool
is_client_method
,
const
char
*
cipher
,
my_bool
is_client_method
,
enum
enum_ssl_init_error
*
error
,
enum
enum_ssl_init_error
*
error
,
const
char
*
crl_file
,
const
char
*
crl_path
,
const
char
*
crl_file
,
const
char
*
crl_path
,
long
tls_version
)
ulong
long
tls_version
)
{
{
DH
*
dh
;
DH
*
dh
;
struct
st_VioSSLFd
*
ssl_fd
;
struct
st_VioSSLFd
*
ssl_fd
;
...
@@ -386,7 +386,7 @@ new_VioSSLAcceptorFd(const char *key_file, const char *cert_file,
...
@@ -386,7 +386,7 @@ new_VioSSLAcceptorFd(const char *key_file, const char *cert_file,
const
char
*
ca_file
,
const
char
*
ca_path
,
const
char
*
ca_file
,
const
char
*
ca_path
,
const
char
*
cipher
,
enum
enum_ssl_init_error
*
error
,
const
char
*
cipher
,
enum
enum_ssl_init_error
*
error
,
const
char
*
crl_file
,
const
char
*
crl_path
,
const
char
*
crl_file
,
const
char
*
crl_path
,
long
tls_version
)
ulong
long
tls_version
)
{
{
struct
st_VioSSLFd
*
ssl_fd
;
struct
st_VioSSLFd
*
ssl_fd
;
int
verify
=
SSL_VERIFY_PEER
|
SSL_VERIFY_CLIENT_ONCE
;
int
verify
=
SSL_VERIFY_PEER
|
SSL_VERIFY_CLIENT_ONCE
;
...
...
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