cryptlib
3.4.1
|
#include "io/stream.h"
Go to the source code of this file.
Classes | |
struct | ALTPROTOCOL_INFO |
struct | PROTOCOL_INFO |
struct | AL |
struct | SSH_RESPONSE_INFO |
struct | SSL_INFO |
struct | SSH_INFO |
struct | TSP_INFO |
struct | CMP_INFO |
struct | SCEP_INFO |
struct | SI |
Macros | |
#define | SESSION_NONE 0x0000 /* No session flags */ |
#define | SESSION_ISOPEN 0x0001 /* Session is active */ |
#define | SESSION_PARTIALOPEN 0x0002 /* Session is partially active */ |
#define | SESSION_SENDCLOSED 0x0004 /* Send channel is closed */ |
#define | SESSION_ISCLOSINGDOWN 0x0008 /* Session is in process of shutdown */ |
#define | SESSION_NOREPORTERROR 0x0010 /* Don't report network-level errors */ |
#define | SESSION_ISSERVER 0x0020 /* Session is server session */ |
#define | SESSION_ISSECURE_READ 0x0040 /* Session read ch.in secure state */ |
#define | SESSION_ISSECURE_WRITE 0x0080 /* Session write ch.in secure state */ |
#define | SESSION_ISCRYPTLIB 0x0100 /* Peer is running cryptlib */ |
#define | SESSION_ISHTTPTRANSPORT 0x0200 /* Session using HTTP transport */ |
#define | SESSION_USEHTTPTUNNEL 0x0400 /* Session uses HTTP tunnel */ |
#define | SESSION_USEALTTRANSPORT 0x0800 /* Use alternative to HTTP xport */ |
#define | SESSION_NEEDS_USERID 0x0001 /* Must have userID */ |
#define | SESSION_NEEDS_PASSWORD 0x0002 /* Must have password */ |
#define | SESSION_NEEDS_PRIVATEKEY 0x0004 /* Must have private key */ |
#define | SESSION_NEEDS_PRIVKEYCRYPT 0x0008 /* Priv.key must have certificate */ |
#define | SESSION_NEEDS_PRIVKEYSIGN 0x0010 /* Priv.key must have sig.capabil.*/ |
#define | SESSION_NEEDS_PRIVKEYCERT 0x0020 /* Priv.key must have crypt capabil.*/ |
#define | SESSION_NEEDS_PRIVKEYCACERT 0x0040 /* Priv key must have CA certificate */ |
#define | SESSION_NEEDS_KEYORPASSWORD 0x0080 /* PW can be used in place of privK */ |
#define | SESSION_NEEDS_REQUEST 0x0100 /* Must have request obj.*/ |
#define | SESSION_NEEDS_KEYSET 0x0200 /* Must have certificate keyset */ |
#define | SESSION_NEEDS_CERTSTORE 0x0400 /* Keyset must be certificate store */ |
#define | FIXED_HEADER_MIN 5 /* SSL header */ |
#define | FIXED_HEADER_MAX |
#define | BUFFER_SIZE_DEFAULT 0, 0, 0 |
#define | ATTR_FLAG_NONE 0x00 /* No attribute flag */ |
#define | ATTR_FLAG_ENCODEDVALUE 0x01 /* Value uses XXX-XXX encoding */ |
#define | ATTR_FLAG_MULTIVALUED 0x02 /* Multiple instances permitted */ |
#define | ATTR_FLAG_COMPOSITE 0x04 /* Composite attribute */ |
#define | ATTR_FLAG_CURSORMOVED 0x08 /* Attribute virtual cursor reset */ |
#define | ATTR_FLAG_EPHEMERAL 0x10 /* Only valid for current sess.act.*/ |
#define | ATTR_FLAG_MAX 0x1F /* Maximum possible flag value */ |
#define | SSH_MAX_RESPONSESIZE 16 /* 2 * channelNo + 2 * param */ |
#define | gcmReadSalt macReadSecret |
#define | gcmWriteSalt macWriteSecret |
#define | sessionSSH sessionInfo.sshInfo |
#define | sessionSSL sessionInfo.sslInfo |
#define | sessionTSP sessionInfo.tspInfo |
#define | sessionCMP sessionInfo.cmpInfo |
#define | sessionSCEP sessionInfo.scepInfo |
#define | disableErrorReporting(sessionInfoPtr) ( sessionInfoPtr )->flags |= SESSION_NOREPORTERROR |
#define | enableErrorReporting(sessionInfoPtr) ( sessionInfoPtr )->flags &= ~SESSION_NOREPORTERROR |
#define | isServer(sessionInfoPtr) ( sessionInfoPtr->flags & SESSION_ISSERVER ) |
#define | setAccessMethodCertstore(x) CRYPT_ARGERROR_NUM1 |
#define | setAccessMethodCMP(x) CRYPT_ARGERROR_NUM1 |
#define | setAccessMethodRTCS(x) CRYPT_ARGERROR_NUM1 |
#define | setAccessMethodOCSP(x) CRYPT_ARGERROR_NUM1 |
#define | setAccessMethodSCEP(x) CRYPT_ARGERROR_NUM1 |
#define | setAccessMethodSSH(x) CRYPT_ARGERROR_NUM1 |
#define | setAccessMethodSSL(x) CRYPT_ARGERROR_NUM1 |
#define | setAccessMethodTSP(x) CRYPT_ARGERROR_NUM1 |
Typedefs | |
typedef CHECK_RETVAL_FNPTR | STDC_NONNULL_ARG ((1, 3)) int(*ATTRACCESSFUNCTION)(INOUT struct AL *attributeListPtr |
typedef CHECK_RETVAL_FNPTR | IN_ENUM (ATTR) const ATTR_TYPE attrGetType |
typedef CHECK_RETVAL_FNPTR OUT_INT_Z int * | value |
typedef struct AL | ATTRIBUTE_LIST |
typedef struct SI | SESSION_INFO |
Enumerations | |
enum | READSTATE_INFO { READINFO_NONE, READINFO_HEADERPAYLOAD, READINFO_NOOP, READINFO_PARTIAL, READINFO_FATAL, READINFO_LAST } |
enum | AUTHRESPONSE_TYPE { AUTHRESPONSE_NONE, AUTHRESPONSE_SUCCESS, AUTHRESPONSE_FAILURE, AUTHRESPONSE_LAST } |
#define ATTR_FLAG_COMPOSITE 0x04 /* Composite attribute */ |
#define ATTR_FLAG_CURSORMOVED 0x08 /* Attribute virtual cursor reset */ |
#define ATTR_FLAG_ENCODEDVALUE 0x01 /* Value uses XXX-XXX encoding */ |
#define ATTR_FLAG_EPHEMERAL 0x10 /* Only valid for current sess.act.*/ |
#define ATTR_FLAG_MAX 0x1F /* Maximum possible flag value */ |
#define ATTR_FLAG_MULTIVALUED 0x02 /* Multiple instances permitted */ |
#define disableErrorReporting | ( | sessionInfoPtr | ) | ( sessionInfoPtr )->flags |= SESSION_NOREPORTERROR |
#define enableErrorReporting | ( | sessionInfoPtr | ) | ( sessionInfoPtr )->flags &= ~SESSION_NOREPORTERROR |
#define FIXED_HEADER_MAX |
#define isServer | ( | sessionInfoPtr | ) | ( sessionInfoPtr->flags & SESSION_ISSERVER ) |
#define SESSION_ISCLOSINGDOWN 0x0008 /* Session is in process of shutdown */ |
#define SESSION_ISCRYPTLIB 0x0100 /* Peer is running cryptlib */ |
#define SESSION_ISHTTPTRANSPORT 0x0200 /* Session using HTTP transport */ |
#define SESSION_ISSECURE_READ 0x0040 /* Session read ch.in secure state */ |
#define SESSION_ISSECURE_WRITE 0x0080 /* Session write ch.in secure state */ |
#define SESSION_ISSERVER 0x0020 /* Session is server session */ |
#define SESSION_NEEDS_CERTSTORE 0x0400 /* Keyset must be certificate store */ |
#define SESSION_NEEDS_KEYORPASSWORD 0x0080 /* PW can be used in place of privK */ |
#define SESSION_NEEDS_KEYSET 0x0200 /* Must have certificate keyset */ |
#define SESSION_NEEDS_PASSWORD 0x0002 /* Must have password */ |
#define SESSION_NEEDS_PRIVATEKEY 0x0004 /* Must have private key */ |
#define SESSION_NEEDS_PRIVKEYCACERT 0x0040 /* Priv key must have CA certificate */ |
#define SESSION_NEEDS_PRIVKEYCERT 0x0020 /* Priv.key must have crypt capabil.*/ |
#define SESSION_NEEDS_PRIVKEYCRYPT 0x0008 /* Priv.key must have certificate */ |
#define SESSION_NEEDS_PRIVKEYSIGN 0x0010 /* Priv.key must have sig.capabil.*/ |
#define SESSION_NEEDS_REQUEST 0x0100 /* Must have request obj.*/ |
#define SESSION_NOREPORTERROR 0x0010 /* Don't report network-level errors */ |
#define SESSION_PARTIALOPEN 0x0002 /* Session is partially active */ |
#define SESSION_SENDCLOSED 0x0004 /* Send channel is closed */ |
#define SESSION_USEALTTRANSPORT 0x0800 /* Use alternative to HTTP xport */ |
#define SESSION_USEHTTPTUNNEL 0x0400 /* Session uses HTTP tunnel */ |
#define sessionSSH sessionInfo.sshInfo |
#define setAccessMethodCertstore | ( | x | ) | CRYPT_ARGERROR_NUM1 |
#define setAccessMethodCMP | ( | x | ) | CRYPT_ARGERROR_NUM1 |
#define setAccessMethodOCSP | ( | x | ) | CRYPT_ARGERROR_NUM1 |
#define setAccessMethodRTCS | ( | x | ) | CRYPT_ARGERROR_NUM1 |
#define setAccessMethodSCEP | ( | x | ) | CRYPT_ARGERROR_NUM1 |
#define setAccessMethodSSH | ( | x | ) | CRYPT_ARGERROR_NUM1 |
#define setAccessMethodSSL | ( | x | ) | CRYPT_ARGERROR_NUM1 |
#define setAccessMethodTSP | ( | x | ) | CRYPT_ARGERROR_NUM1 |
typedef struct AL ATTRIBUTE_LIST |
typedef struct SI SESSION_INFO |
typedef CHECK_RETVAL_FNPTR STDC_NONNULL_ARG((1, 3)) int(*ATTRACCESSFUNCTION)(INOUT struct AL *attributeListPtr |
enum AUTHRESPONSE_TYPE |
enum READSTATE_INFO |
CHECK_RETVAL_ENUM | ( | CRYPT_ATTRIBUTE | ) | const |
CHECK_RETVAL_PTR const ATTRIBUTE_LIST* findSessionInfo | ( | IN_OPT const ATTRIBUTE_LIST * | attributeListPtr, |
IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE | attributeID | ||
) |
CHECK_RETVAL IN_BUFFER | ( | dataLength | ) | const |
CHECK_RETVAL_PTR IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE IN_BUFFER | ( | valueLength | ) | const |
CHECK_RETVAL IN_BUFFER_OPT | ( | dataLength | ) | const |
CHECK_RETVAL IN_BUFFER_OPT | ( | contentTypeLength | ) | const |
CHECK_RETVAL IN_BUFFER_OPT | ( | length | ) | const |
CHECK_RETVAL IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE IN_LENGTH_SHORT const int IN_LENGTH_SHORT const int IN_FLAGS | ( | ATTR | ) | const |
CHECK_RETVAL IN_LENGTH_SHORT_MIN | ( | FIXED_HEADER_MIN | ) | const |
CHECK_RETVAL INOUT_PTR ATTRIBUTE_LIST IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE IN_RANGE | ( | CRYPT_CURSOR_LAST | , |
CRYPT_CURSOR_FIRST | |||
) | const |
CHECK_RETVAL INOUT SSL_HANDSHAKE_INFO OUT_BUFFER | ( | dataMaxLength | , |
* | bytesCopied | ||
) |
CHECK_RETVAL OUT_BUFFER_FIXED | ( | headerLength | ) |
CHECK_RETVAL OUT_ENUM_OPT | ( | CRYPT_ATTRIBUTE | ) |
CHECK_RETVAL OUT_ENUM_OPT | ( | CRYPT_ERRTYPE | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1) | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 26 of file ctx_attr.c.
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 3) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 3, 4) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (4) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (2) | ) | const |
CHECK_RETVAL_PTR STDC_NONNULL_ARG | ( | (3) | ) | const |
STDC_NONNULL_ARG | ( | (1, 2, 3) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 4) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 4) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (2, 3) | ) | const |
CHECK_RETVAL IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE const ATTRACCESSFUNCTION accessFunction |
CHECK_RETVAL IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE attribute |
CHECK_RETVAL_PTR IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE attributeID |
INOUT ATTRIBUTE_LIST ** attributeListCurrent |
CHECK_RETVAL IN_OPT ATTRIBUTE_LIST* attributeListCursor |
CHECK_RETVAL INOUT_PTR ATTRIBUTE_LIST** attributeListCursorPtr |
INOUT ATTRIBUTE_LIST INOUT ATTRIBUTE_LIST* attributeListPtr |
CHECK_RETVAL IN_LENGTH_Z const int OUT_LENGTH_Z int* bytesCopied |
CHECK_RETVAL OUT NET_CONNECT_INFO* connectInfo |
CHECK_RETVAL IN_LENGTH_SHORT_Z const int contentTypeLength |
CHECK_RETVAL IN_LENGTH_Z const int dataLength |
CHECK_RETVAL IN_LENGTH const int dataMaxLength |
CHECK_RETVAL IN_LENGTH_SHORT_Z const int length |
CHECK_RETVAL INOUT MESSAGE_DATA* msgData |
CHECK_RETVAL INOUT_PTR ATTRIBUTE_LIST IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE sessionInfoType |
CHECK_RETVAL_PTR IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE IN_LENGTH_SHORT const int valueLength |