diff options
author | unknown <msvensson@neptunus.(none)> | 2006-03-10 16:41:14 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-03-10 16:41:14 +0100 |
commit | b2d5243e97b7395d38bd6afc4767199703cf7f7c (patch) | |
tree | 9de9174f30edd59e8d180336d9b764255478a2f1 /vio/vio_priv.h | |
parent | 91b3447c2d8f87f104f9772557302c662f7f0cb2 (diff) | |
download | mariadb-git-b2d5243e97b7395d38bd6afc4767199703cf7f7c.tar.gz |
Cleanup SSL implementation
Remove duplicate code
Merge common functions
Enforce MySQL coding standard
include/violite.h:
Cleanup SSL implementation
sql-common/client.c:
Cleanup SSL implementation
sql/mysql_priv.h:
Cleanup SSL implementation
sql/mysqld.cc:
Cleanup SSL implementation
sql/sql_acl.cc:
Cleanup SSL implementation
vio/vio.c:
Cleanup SSL implementation
vio/vio_priv.h:
Cleanup SSL implementation
vio/viossl.c:
Cleanup SSL implementation
vio/viosslfactories.c:
Cleanup SSL implementation
Diffstat (limited to 'vio/vio_priv.h')
-rw-r--r-- | vio/vio_priv.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/vio/vio_priv.h b/vio/vio_priv.h index eb495025ddd..db331abdea8 100644 --- a/vio/vio_priv.h +++ b/vio/vio_priv.h @@ -30,28 +30,10 @@ void vio_ignore_timeout(Vio *vio, uint which, uint timeout); int vio_ssl_read(Vio *vio,gptr buf, int size); int vio_ssl_write(Vio *vio,const gptr buf,int size); -void vio_ssl_timeout(Vio *vio, uint which, uint timeout); - -/* setsockopt TCP_NODELAY at IPPROTO_TCP level, when possible. */ -int vio_ssl_fastsend(Vio *vio); -/* setsockopt SO_KEEPALIVE at SOL_SOCKET level, when possible. */ -int vio_ssl_keepalive(Vio *vio, my_bool onoff); -/* Whenever we should retry the last read/write operation. */ -my_bool vio_ssl_should_retry(Vio *vio); -/* Check that operation was timed out */ -my_bool vio_ssl_was_interrupted(Vio *vio); + /* When the workday is over... */ int vio_ssl_close(Vio *vio); -/* Return last error number */ -int vio_ssl_errno(Vio *vio); -my_bool vio_ssl_peer_addr(Vio *vio, char *buf, uint16 *port); -void vio_ssl_in_addr(Vio *vio, struct in_addr *in); + int vio_ssl_blocking(Vio *vio, my_bool set_blocking_mode, my_bool *old_mode); -/* Single copy for server */ -enum vio_ssl_acceptorfd_state -{ - state_connect = 1, - state_accept = 2 -}; #endif /* HAVE_OPENSSL */ |