74
74
my_bool vio_poll_read(Vio *vio,uint timeout);
75
75
my_bool vio_peek_read(Vio *vio, uint *bytes);
78
#include <openssl/opensslv.h>
79
#if OPENSSL_VERSION_NUMBER < 0x0090700f
80
#define DES_cblock des_cblock
81
#define DES_key_schedule des_key_schedule
82
#define DES_set_key_unchecked(k,ks) des_set_key_unchecked((k),*(ks))
83
#define DES_ede3_cbc_encrypt(i,o,l,k1,k2,k3,iv,e) des_ede3_cbc_encrypt((i),(o),(l),*(k1),*(k2),*(k3),(iv),(e))
86
#define HEADER_DES_LOCL_H dummy_something
87
#define YASSL_MYSQL_COMPATIBLE
91
/* Set yaSSL to use same type as MySQL do for socket handles */
92
typedef my_socket YASSL_SOCKET_T;
93
#define YASSL_SOCKET_T_DEFINED
94
#include <openssl/ssl.h>
95
#include <openssl/err.h>
97
#ifndef EMBEDDED_LIBRARY
101
SSL_CTX *ssl_context;
104
int sslaccept(struct st_VioSSLFd*, Vio *, long timeout);
105
int sslconnect(struct st_VioSSLFd*, Vio *, long timeout);
108
*new_VioSSLConnectorFd(const char *key_file, const char *cert_file,
109
const char *ca_file, const char *ca_path,
112
*new_VioSSLAcceptorFd(const char *key_file, const char *cert_file,
113
const char *ca_file,const char *ca_path,
115
void free_vio_ssl_acceptor_fd(struct st_VioSSLFd *fd);
116
#endif /* ! EMBEDDED_LIBRARY */
117
#endif /* HAVE_OPENSSL */
120
78
size_t vio_read_shared_memory(Vio *vio, uchar * buf, size_t size);
121
79
size_t vio_write_shared_memory(Vio *vio, const uchar * buf, size_t size);