1
/*********************************************************
2
* Copyright (C) 2013 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
11
* License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*********************************************************/
22
* declarations in ssl.h that required by AsyncSocket when SSL is not used.
29
typedef struct SSLSockStruct *SSLSock;
30
typedef struct _SSLVerifyParam { } SSLVerifyParam;
32
SSLSock SSL_New(int fd,Bool closeFdOnShutdown);
33
void SSL_SetCloseOnShutdownFlag(SSLSock sslSock);
34
ssize_t SSL_Read(SSLSock sslSock, char *buf, size_t num);
35
ssize_t SSL_RecvDataAndFd(SSLSock sslSock, char *buf, size_t num, int *fd);
36
ssize_t SSL_Write(SSLSock sslSock,const char *buf, size_t num);
37
int SSL_Shutdown(SSLSock sslSock);
38
int SSL_GetFd(SSLSock sslSock);
39
int SSL_Pending(SSLSock sslSock);
40
int SSL_GetFd(SSLSock sslSock);
41
Bool SSL_ConnectAndVerify(SSLSock sSock, SSLVerifyParam *verifyParam);
42
Bool SSL_Accept(SSLSock sSock);
43
int SSL_TryCompleteAccept(SSLSock ssl);
44
int SSL_WantRead(const SSLSock ssl);
45
Bool SSL_SetupAcceptWithContext(SSLSock sSock, void *ctx);
49
#define SSLGeneric_close(sock) closesocket(sock)
51
#define SSLGeneric_close(sock) close(sock)
55
#endif // ifndef _SSLSTUBS_H_