5 // Created by Fabrice Gautier on 10/25/11.
6 // Copyright (c) 2011 Apple, Inc. All rights reserved.
10 /* This header should be kernel compatible */
12 #ifndef _SSLRECORDINTERNAL_H_
13 #define _SSLRECORDINTERNAL_H_ 1
15 #include <sys/types.h>
21 typedef void * SSLIOConnectionRef
;
24 (*SSLIOReadFunc
) (SSLIOConnectionRef connection
,
25 void *data
, /* owned by
28 size_t *dataLength
); /* IN/OUT */
30 (*SSLIOWriteFunc
) (SSLIOConnectionRef connection
,
32 size_t *dataLength
); /* IN/OUT */
35 /* Record layer creation functions, called from the SSLContext layer */
38 SSLCreateInternalRecordLayer(bool dtls
);
41 SSLSetInternalRecordLayerIOFuncs(
42 SSLRecordContextRef ctx
,
43 SSLIOReadFunc readFunc
,
44 SSLIOWriteFunc writeFunc
);
47 SSLSetInternalRecordLayerConnection(
48 SSLRecordContextRef ctx
,
49 SSLIOConnectionRef ioRef
);
52 SSLDestroyInternalRecordLayer(SSLRecordContextRef ctx
);
55 extern struct SSLRecordFuncs SSLRecordLayerInternal
;