mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -14,7 +14,7 @@ typedef PRUint16 SSL3ProtocolVersion;
|
|||
/* version numbers are defined in sslproto.h */
|
||||
|
||||
/* DTLS 1.3 is still a draft. */
|
||||
#define DTLS_1_3_DRAFT_VERSION 28
|
||||
#define DTLS_1_3_DRAFT_VERSION 43
|
||||
|
||||
typedef PRUint16 ssl3CipherSuite;
|
||||
/* The cipher suites are defined in sslproto.h */
|
||||
|
|
@ -31,7 +31,20 @@ typedef PRUint16 ssl3CipherSuite;
|
|||
/* SSL3_RECORD_HEADER_LENGTH + epoch/sequence_number */
|
||||
#define DTLS_RECORD_HEADER_LENGTH 13
|
||||
|
||||
/* Max values for TLS records/ciphertexts
|
||||
* For TLS 1.2 records MUST NOT be longer than 2^14 + 2048
|
||||
* For TLS 1.3 records MUST NOT exceed 2^14 + 256 bytes.
|
||||
* [RFC8446 Section 5.2, RFC5246 Section 6.2.3]. */
|
||||
#define MAX_FRAGMENT_LENGTH 16384
|
||||
#define TLS_1_2_MAX_EXPANSION 2048
|
||||
#define TLS_1_3_MAX_EXPANSION (255 + 1)
|
||||
#define TLS_1_3_MAX_CTEXT_LENGTH ((MAX_FRAGMENT_LENGTH) + (TLS_1_3_MAX_EXPANSION))
|
||||
#define TLS_1_2_MAX_CTEXT_LENGTH ((MAX_FRAGMENT_LENGTH) + (TLS_1_2_MAX_EXPANSION))
|
||||
|
||||
/* DTLS_X_X_MAX_PACKET_LENGTH = TLS_X_X_MAX_RECORD_LENGTH + HEADER_LENGTH,
|
||||
* used for DTLS datagram buffer size setting. We do not support DTLS CID! */
|
||||
#define DTLS_1_3_MAX_PACKET_LENGTH ((TLS_1_3_MAX_CTEXT_LENGTH) + (SSL3_RECORD_HEADER_LENGTH))
|
||||
#define DTLS_1_2_MAX_PACKET_LENGTH ((TLS_1_2_MAX_CTEXT_LENGTH) + (DTLS_RECORD_HEADER_LENGTH))
|
||||
|
||||
typedef enum { change_cipher_spec_choice = 1 } SSL3ChangeCipherSpecChoice;
|
||||
|
||||
|
|
@ -76,6 +89,7 @@ typedef enum {
|
|||
bad_certificate_hash_value = 114,
|
||||
certificate_required = 116,
|
||||
no_application_protocol = 120,
|
||||
ech_required = 121,
|
||||
|
||||
/* invalid alert */
|
||||
no_alert = 256
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue