~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/violite.h

  • Committer: Mark Atwood
  • Date: 2008-07-01 21:25:46 UTC
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: mark@localhost.localdomain-20080701212546-jzs7ljtwcp2dcmgd
Remove all OpenSSL and all YaSSL code

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
my_bool vio_poll_read(Vio *vio,uint timeout);
75
75
my_bool vio_peek_read(Vio *vio, uint *bytes);
76
76
 
77
 
#ifdef HAVE_OPENSSL
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))
84
 
#endif
85
 
 
86
 
#define HEADER_DES_LOCL_H dummy_something
87
 
#define YASSL_MYSQL_COMPATIBLE
88
 
#ifndef YASSL_PREFIX
89
 
#define YASSL_PREFIX
90
 
#endif
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>
96
 
 
97
 
#ifndef EMBEDDED_LIBRARY
98
 
 
99
 
struct st_VioSSLFd
100
 
{
101
 
  SSL_CTX *ssl_context;
102
 
};
103
 
 
104
 
int sslaccept(struct st_VioSSLFd*, Vio *, long timeout);
105
 
int sslconnect(struct st_VioSSLFd*, Vio *, long timeout);
106
 
 
107
 
struct st_VioSSLFd
108
 
*new_VioSSLConnectorFd(const char *key_file, const char *cert_file,
109
 
                       const char *ca_file,  const char *ca_path,
110
 
                       const char *cipher);
111
 
struct st_VioSSLFd
112
 
*new_VioSSLAcceptorFd(const char *key_file, const char *cert_file,
113
 
                      const char *ca_file,const char *ca_path,
114
 
                      const char *cipher);
115
 
void free_vio_ssl_acceptor_fd(struct st_VioSSLFd *fd);
116
 
#endif /* ! EMBEDDED_LIBRARY */
117
 
#endif /* HAVE_OPENSSL */
118
 
 
119
77
#ifdef HAVE_SMEM
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);
188
146
  my_bool (*was_interrupted)(Vio*);
189
147
  int     (*vioclose)(Vio*);
190
148
  void    (*timeout)(Vio*, unsigned int which, unsigned int timeout);
191
 
#ifdef HAVE_OPENSSL
192
 
  void    *ssl_arg;
193
 
#endif
194
149
#ifdef HAVE_SMEM
195
150
  HANDLE  handle_file_map;
196
151
  char    *handle_map;