]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_ssl/lib/sslRecord.h
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_ssl / lib / sslRecord.h
index 5a2d3b0b8b9c7bcb55f36298b53b5dedc93a309d..6f46807470a9e93242f5bdcfde93a8850bb33b1c 100644 (file)
 extern "C" {
 #endif
 
 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 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 SSLReadRecord(
        SSLRecord       *rec,
        SSLContext      *ctx);
 
-OSStatus SSLVerifyMac(
-       UInt8           type,
-       SSLBuffer       *data,
-       UInt8           *compareMAC,
-       SSLContext      *ctx);
+OSStatus SSLServiceWriteQueue(
+    SSLContext  *ctx);
 
 #ifdef __cplusplus
 }
 
 #ifdef __cplusplus
 }