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
f8b32417
Commit
f8b32417
authored
Mar 28, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set yaSSL to use same type as MySQL do for socket handles
parent
1577caab
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
extra/yassl/include/openssl/ssl.h
extra/yassl/include/openssl/ssl.h
+8
-2
extra/yassl/src/ssl.cpp
extra/yassl/src/ssl.cpp
+1
-1
include/violite.h
include/violite.h
+3
-0
No files found.
extra/yassl/include/openssl/ssl.h
View file @
f8b32417
...
@@ -190,11 +190,17 @@ enum { /* ERR Constants */
...
@@ -190,11 +190,17 @@ enum { /* ERR Constants */
EVP_R_BAD_DECRYPT
=
2
EVP_R_BAD_DECRYPT
=
2
};
};
/*
Allow type used by SSL_set_fd to be changed, default to int
in order to be compatible with OpenSSL
*/
#ifndef YASSL_SOCKET_T_DEFINED
typedef
int
YASSL_SOCKET_T
;
#endif
SSL_CTX
*
SSL_CTX_new
(
SSL_METHOD
*
);
SSL_CTX
*
SSL_CTX_new
(
SSL_METHOD
*
);
SSL
*
SSL_new
(
SSL_CTX
*
);
SSL
*
SSL_new
(
SSL_CTX
*
);
int
SSL_set_fd
(
SSL
*
,
int
);
int
SSL_set_fd
(
SSL
*
,
YASSL_SOCKET_T
);
int
SSL_connect
(
SSL
*
);
int
SSL_connect
(
SSL
*
);
int
SSL_write
(
SSL
*
,
const
void
*
,
int
);
int
SSL_write
(
SSL
*
,
const
void
*
,
int
);
int
SSL_read
(
SSL
*
,
void
*
,
int
);
int
SSL_read
(
SSL
*
,
void
*
,
int
);
...
...
extra/yassl/src/ssl.cpp
View file @
f8b32417
...
@@ -229,7 +229,7 @@ void SSL_free(SSL* ssl)
...
@@ -229,7 +229,7 @@ void SSL_free(SSL* ssl)
}
}
int
SSL_set_fd
(
SSL
*
ssl
,
int
fd
)
int
SSL_set_fd
(
SSL
*
ssl
,
YASSL_SOCKET_T
fd
)
{
{
ssl
->
useSocket
().
set_fd
(
fd
);
ssl
->
useSocket
().
set_fd
(
fd
);
return
SSL_SUCCESS
;
return
SSL_SUCCESS
;
...
...
include/violite.h
View file @
f8b32417
...
@@ -102,6 +102,9 @@ void vio_timeout(Vio *vio,uint which, uint timeout);
...
@@ -102,6 +102,9 @@ void vio_timeout(Vio *vio,uint which, uint timeout);
#define HEADER_DES_LOCL_H dummy_something
#define HEADER_DES_LOCL_H dummy_something
#define YASSL_MYSQL_COMPATIBLE
#define YASSL_MYSQL_COMPATIBLE
#define YASSL_PREFIX
#define YASSL_PREFIX
/* Set yaSSL to use same type as MySQL do for socket handles */
typedef
my_socket
YASSL_SOCKET_T
;
#define YASSL_SOCKET_T_DEFINED
#include <openssl/ssl.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/err.h>
...
...
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