~ubuntu-branches/ubuntu/utopic/open-vm-tools/utopic

« back to all changes in this revision

Viewing changes to lib/include/sslStubs.h

  • Committer: Package Import Robot
  • Author(s): Bernd Zeimetz, 31c30832
  • Date: 2014-01-08 20:28:33 UTC
  • mfrom: (1.4.14) (2.4.42 sid)
  • Revision ID: package-import@ubuntu.com-20140108202833-l0ycdpzq5ayadedn
Tags: 2:9.4.0-1280544-5
[31c30832] Revert "Enable building of vmci again."
This reverts commit 0d55577cd3c262dbbc2bf79593d6f500f84c4170.
Too fast upload, sorry. vmhgfs is indeed (still) broken with
vmci.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*********************************************************
2
 
 * Copyright (C) 2013 VMware, Inc. All rights reserved.
3
 
 *
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.
7
 
 *
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.
12
 
 *
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.
16
 
 *
17
 
 *********************************************************/
18
 
 
19
 
/*
20
 
 * sslStubs.h --
21
 
 *
22
 
 *      declarations in ssl.h that required by AsyncSocket when SSL is not used.
23
 
 *
24
 
 */
25
 
 
26
 
#ifndef _SSLSTUBS_H_
27
 
#define _SSLSTUBS_H_
28
 
 
29
 
typedef struct SSLSockStruct *SSLSock;
30
 
typedef struct _SSLVerifyParam { } SSLVerifyParam;
31
 
 
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);
46
 
 
47
 
 
48
 
#ifdef _WIN32
49
 
#define SSLGeneric_close(sock) closesocket(sock)
50
 
#else
51
 
#define SSLGeneric_close(sock) close(sock)
52
 
#endif
53
 
 
54
 
 
55
 
#endif // ifndef _SSLSTUBS_H_
56