X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..e3d3b979fd185d8303f28a937baa53a187fb8c7d:/libsecurity_ssl/lib/sslRecord.h?ds=sidebyside diff --git a/libsecurity_ssl/lib/sslRecord.h b/libsecurity_ssl/lib/sslRecord.h index 5a2d3b0b..6f468074 100644 --- a/libsecurity_ssl/lib/sslRecord.h +++ b/libsecurity_ssl/lib/sslRecord.h @@ -34,39 +34,26 @@ extern "C" { #endif -enum -{ SSL_RecordTypeV2_0, - SSL_RecordTypeV3_Smallest = 20, - SSL_RecordTypeChangeCipher = 20, - SSL_RecordTypeAlert = 21, - SSL_RecordTypeHandshake = 22, - SSL_RecordTypeAppData = 23, - SSL_RecordTypeV3_Largest = 23 -}; - -typedef struct -{ UInt8 contentType; - SSLProtocolVersion protocolVersion; - SSLBuffer contents; -} SSLRecord; - -/* - * Slightly smaller that 16384 to make room for a MAC in an SSL 2.0 - * 3-byte header record +/* + * Slightly smaller that 16384 to make room for a MAC in an SSL 2.0 + * 3-byte header record */ #define MAX_RECORD_LENGTH 16300 -#define DEFAULT_BUFFER_SIZE 4096 +OSStatus SSLWriteRecord( + SSLRecord rec, + SSLContext *ctx); + +OSStatus SSLFreeRecord( + SSLRecord rec, + SSLContext *ctx); OSStatus SSLReadRecord( SSLRecord *rec, SSLContext *ctx); -OSStatus SSLVerifyMac( - UInt8 type, - SSLBuffer *data, - UInt8 *compareMAC, - SSLContext *ctx); +OSStatus SSLServiceWriteQueue( + SSLContext *ctx); #ifdef __cplusplus }