12 #ifndef _STREAM_DEFINED
13 #if defined( INC_ALL )
75 #define SESSION_NONE 0x0000
76 #define SESSION_ISOPEN 0x0001
77 #define SESSION_PARTIALOPEN 0x0002
78 #define SESSION_SENDCLOSED 0x0004
79 #define SESSION_ISCLOSINGDOWN 0x0008
80 #define SESSION_NOREPORTERROR 0x0010
81 #define SESSION_ISSERVER 0x0020
82 #define SESSION_ISSECURE_READ 0x0040
83 #define SESSION_ISSECURE_WRITE 0x0080
84 #define SESSION_ISCRYPTLIB 0x0100
85 #define SESSION_ISHTTPTRANSPORT 0x0200
86 #define SESSION_USEHTTPTUNNEL 0x0400
87 #define SESSION_USEALTTRANSPORT 0x0800
99 #define SESSION_NEEDS_USERID 0x0001
100 #define SESSION_NEEDS_PASSWORD 0x0002
101 #define SESSION_NEEDS_PRIVATEKEY 0x0004
102 #define SESSION_NEEDS_PRIVKEYCRYPT 0x0008
103 #define SESSION_NEEDS_PRIVKEYSIGN 0x0010
104 #define SESSION_NEEDS_PRIVKEYCERT 0x0020
105 #define SESSION_NEEDS_PRIVKEYCACERT 0x0040
106 #define SESSION_NEEDS_KEYORPASSWORD 0x0080
107 #define SESSION_NEEDS_REQUEST 0x0100
108 #define SESSION_NEEDS_KEYSET 0x0200
109 #define SESSION_NEEDS_CERTSTORE 0x0400
114 #define FIXED_HEADER_MIN 5
115 #define FIXED_HEADER_MAX 21
165 const int uriTypeLen;
167 const int oldFlagsMask;
181 const int clientReqAttrFlags, serverReqAttrFlags;
182 const int version, minVersion, maxVersion;
189 const int sendBufStartOfs;
190 const int maxPacketSize;
197 #define BUFFER_SIZE_DEFAULT 0, 0, 0
222 #define ATTR_FLAG_NONE 0x00
223 #define ATTR_FLAG_ENCODEDVALUE 0x01
224 #define ATTR_FLAG_MULTIVALUED 0x02
225 #define ATTR_FLAG_COMPOSITE 0x04
226 #define ATTR_FLAG_CURSORMOVED 0x08
227 #define ATTR_FLAG_EPHEMERAL 0x10
228 #define ATTR_FLAG_MAX 0x1F
274 #define SSH_MAX_RESPONSESIZE 16
294 long readSeqNo, writeSeqNo;
310 #define gcmReadSalt macReadSecret
311 #define gcmWriteSalt macWriteSecret
315 void *scoreboardInfoPtr;
325 int packetType, padLength;
329 long readSeqNo, writeSeqNo;
332 int currReadChannel, currWriteChannel;
354 int partialPacketDataLength;
395 #define sessionSSH sessionInfo.sshInfo
396 #define sessionSSL sessionInfo.sslInfo
397 #define sessionTSP sessionInfo.tspInfo
398 #define sessionCMP sessionInfo.cmpInfo
399 #define sessionSCEP sessionInfo.scepInfo
553 int ( *preparePacketFunction )(
INOUT struct
SI *sessionInfoPtr );
579 #define disableErrorReporting( sessionInfoPtr ) \
580 ( sessionInfoPtr )->flags |= SESSION_NOREPORTERROR
581 #define enableErrorReporting( sessionInfoPtr ) \
582 ( sessionInfoPtr )->flags &= ~SESSION_NOREPORTERROR
587 #define isServer( sessionInfoPtr ) \
588 ( sessionInfoPtr->flags & SESSION_ISSERVER )
635 IN_BUFFER( dataLength )
const void *data,
707 const char *contentType,
739 #define setAccessMethodCertstore( x ) CRYPT_ARGERROR_NUM1
745 #define setAccessMethodCMP( x ) CRYPT_ARGERROR_NUM1
751 #define setAccessMethodRTCS( x ) CRYPT_ARGERROR_NUM1
757 #define setAccessMethodOCSP( x ) CRYPT_ARGERROR_NUM1
763 #define setAccessMethodSCEP( x ) CRYPT_ARGERROR_NUM1
765 #if defined( USE_SSH ) || defined( USE_SSH1 )
769 #define setAccessMethodSSH( x ) CRYPT_ARGERROR_NUM1
775 #define setAccessMethodSSL( x ) CRYPT_ARGERROR_NUM1
781 #define setAccessMethodTSP( x ) CRYPT_ARGERROR_NUM1