SSLRecordInternal.h [plain text]
#ifndef _SSLRECORDINTERNAL_H_
#define _SSLRECORDINTERNAL_H_ 1
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
#include "sslTypes.h"
typedef void * SSLIOConnectionRef;
typedef int
(*SSLIOReadFunc) (SSLIOConnectionRef connection,
void *data,
size_t *dataLength);
typedef int
(*SSLIOWriteFunc) (SSLIOConnectionRef connection,
const void *data,
size_t *dataLength);
SSLRecordContextRef
SSLCreateInternalRecordLayer(bool dtls);
int
SSLSetInternalRecordLayerIOFuncs(
SSLRecordContextRef ctx,
SSLIOReadFunc readFunc,
SSLIOWriteFunc writeFunc);
int
SSLSetInternalRecordLayerConnection(
SSLRecordContextRef ctx,
SSLIOConnectionRef ioRef);
void
SSLDestroyInternalRecordLayer(SSLRecordContextRef ctx);
extern struct SSLRecordFuncs SSLRecordLayerInternal;
#endif