irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

sslSockComm.h
Go to the documentation of this file.
1 
3 /* sslSockComm.h - header file for sslSockComm.c
4  */
5 
6 #ifndef SSL_SOCK_COMM_H__
7 #define SSL_SOCK_COMM_H__
8 
9 #include <openssl/ssl.h>
10 #include <openssl/x509v3.h>
11 #include <openssl/err.h>
12 
13 #include "rodsDef.h"
14 #include "rcConnect.h"
15 #include "rodsPackInstruct.h"
16 
17 #define SSL_CIPHER_LIST "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 int
24 sslStart( rcComm_t *rcComm );
25 int
26 sslEnd( rcComm_t *rcComm );
27 int
28 sslAccept( rsComm_t *rsComm );
29 int
30 sslShutdown( rsComm_t *rsComm );
31 int
32 sslReadMsgHeader( int sock, msgHeader_t *myHeader, struct timeval *tv, SSL *ssl );
33 int
34 sslReadMsgBody( int sock, msgHeader_t *myHeader, bytesBuf_t *inputStructBBuf,
35  bytesBuf_t *bsBBuf, bytesBuf_t *errorBBuf, irodsProt_t irodsProt,
36  struct timeval *tv, SSL *ssl );
37 int
38 sslWriteMsgHeader( msgHeader_t *myHeader, SSL *ssl );
39 int
40 sslSendRodsMsg( char *msgType, bytesBuf_t *msgBBuf,
41  bytesBuf_t *byteStreamBBuf, bytesBuf_t *errorBBuf, int intInfo,
42  irodsProt_t irodsProt, SSL *ssl );
43 int
44 sslRead( int sock, void *buf, int len,
45  int *bytesRead, struct timeval *tv, SSL *ssl );
46 int
47 sslWrite( void *buf, int len,
48  int *bytesWritten, SSL *ssl );
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* SSL_SOCK_COMM_H__ */
rcComm_t
Definition: rcConnect.h:95
rsComm_t
Definition: rcConnect.h:145
rodsPackInstruct.h
msgHeader
Definition: rodsDef.h:210
sslWriteMsgHeader
int sslWriteMsgHeader(msgHeader_t *myHeader, SSL *ssl)
Definition: sslSockComm.cpp:393
sslReadMsgBody
int sslReadMsgBody(int sock, msgHeader_t *myHeader, bytesBuf_t *inputStructBBuf, bytesBuf_t *bsBBuf, bytesBuf_t *errorBBuf, irodsProt_t irodsProt, struct timeval *tv, SSL *ssl)
Definition: sslSockComm.cpp:296
rcConnect.h
irodsProt_t
irodsProt_t
Definition: rodsDef.h:147
sslRead
int sslRead(int sock, void *buf, int len, int *bytesRead, struct timeval *tv, SSL *ssl)
Definition: sslSockComm.cpp:501
sslShutdown
int sslShutdown(rsComm_t *rsComm)
Definition: sslSockComm.cpp:194
sslWrite
int sslWrite(void *buf, int len, int *bytesWritten, SSL *ssl)
Definition: sslSockComm.cpp:563
rodsDef.h
sslEnd
int sslEnd(rcComm_t *rcComm)
Definition: sslSockComm.cpp:95
BytesBuf
Definition: rodsDef.h:197
sslStart
int sslStart(rcComm_t *rcComm)
Definition: sslSockComm.cpp:35
sslSendRodsMsg
int sslSendRodsMsg(char *msgType, bytesBuf_t *msgBBuf, bytesBuf_t *byteStreamBBuf, bytesBuf_t *errorBBuf, int intInfo, irodsProt_t irodsProt, SSL *ssl)
Definition: sslSockComm.cpp:444
sslAccept
int sslAccept(rsComm_t *rsComm)
Definition: sslSockComm.cpp:142
sslReadMsgHeader
int sslReadMsgHeader(int sock, msgHeader_t *myHeader, struct timeval *tv, SSL *ssl)
Definition: sslSockComm.cpp:226
buf
static char buf[64+50+1]
Definition: rsAuthRequest.cpp:21