⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sslrec.h

📁 Netscape公司提供的安全套接字层
💻 H
字号:
/*  *********************************************************************
    File: sslrec.h

    SSLRef 3.0 Final -- 11/19/96

    Copyright (c)1996 by Netscape Communications Corp.

    By retrieving this software you are bound by the licensing terms
    disclosed in the file "LICENSE.txt". Please read it, and if you don't
    accept the terms, delete this software.

    SSLRef 3.0 was developed by Netscape Communications Corp. of Mountain
    View, California <http://home.netscape.com/> and Consensus Development
    Corporation of Berkeley, California <http://www.consensus.com/>.

    *********************************************************************

    File: sslrec.h     SSL Record Layer

    Prototypes, values, and types for the SSL record layer.

    ****************************************************************** */

#ifndef _SSLREC_H_
#define _SSLREC_H_ 1

#ifndef _SSL_H_
#include "ssl.h"
#endif /* _SSL_H_ */

enum
{   SSL_version_2_0_record,
    SSL_smallest_3_0_type = 20,
    SSL_change_cipher_spec = 20,
    SSL_alert = 21,
    SSL_handshake = 22,
    SSL_application_data = 23,
    SSL_largest_3_0_type = 23
};

typedef struct
{   uint8                   contentType;
    SSLProtocolVersion      protocolVersion;
    SSLBuffer               contents;
} SSLRecord;

#define MAX_RECORD_LENGTH   16300   /* Slightly smaller that 16384 to make room for a MAC in an SSL 2.0 3-byte header record */

#define DEFAULT_BUFFER_SIZE 4096

SSLErr  SSLReadRecord(SSLRecord *rec, SSLContext *ctx);
SSLErr  SSLWriteRecord(SSLRecord rec, SSLContext *ctx);

#endif /* _SSLREC_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -