mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
nss: update nss to hg rev e5e10a46b9ad with vc2013 hackfix
This commit is contained in:
parent
ed1b356dfa
commit
dcdc5d70e0
133 changed files with 8084 additions and 2038 deletions
|
|
@ -19,13 +19,8 @@ typedef enum {
|
|||
TrafficKeyApplicationData = 3
|
||||
} TrafficKeyType;
|
||||
|
||||
typedef enum {
|
||||
CipherSpecRead,
|
||||
CipherSpecWrite,
|
||||
} CipherSpecDirection;
|
||||
|
||||
#define SPEC_DIR(spec) \
|
||||
((spec->direction == CipherSpecRead) ? "read" : "write")
|
||||
((spec->direction == ssl_secret_read) ? "read" : "write")
|
||||
|
||||
typedef struct ssl3CipherSpecStr ssl3CipherSpec;
|
||||
typedef struct ssl3BulkCipherDefStr ssl3BulkCipherDef;
|
||||
|
|
@ -106,20 +101,20 @@ typedef struct {
|
|||
|
||||
typedef SECStatus (*SSLCipher)(void *context,
|
||||
unsigned char *out,
|
||||
int *outlen,
|
||||
int maxout,
|
||||
unsigned int *outlen,
|
||||
unsigned int maxout,
|
||||
const unsigned char *in,
|
||||
int inlen);
|
||||
unsigned int inlen);
|
||||
typedef SECStatus (*SSLAEADCipher)(
|
||||
ssl3KeyMaterial *keys,
|
||||
const ssl3KeyMaterial *keys,
|
||||
PRBool doDecrypt,
|
||||
unsigned char *out,
|
||||
int *outlen,
|
||||
int maxout,
|
||||
unsigned int *outlen,
|
||||
unsigned int maxout,
|
||||
const unsigned char *in,
|
||||
int inlen,
|
||||
unsigned int inlen,
|
||||
const unsigned char *additionalData,
|
||||
int additionalDataLen);
|
||||
unsigned int additionalDataLen);
|
||||
|
||||
/* The DTLS anti-replay window in number of packets. Defined here because we
|
||||
* need it in the cipher spec. Note that this is a ring buffer but left and
|
||||
|
|
@ -146,7 +141,7 @@ struct ssl3CipherSpecStr {
|
|||
PRCList link;
|
||||
PRUint8 refCt;
|
||||
|
||||
CipherSpecDirection direction;
|
||||
SSLSecretDirection direction;
|
||||
SSL3ProtocolVersion version;
|
||||
SSL3ProtocolVersion recordVersion;
|
||||
|
||||
|
|
@ -184,17 +179,17 @@ const ssl3BulkCipherDef *ssl_GetBulkCipherDef(const ssl3CipherSuiteDef *cipher_d
|
|||
const ssl3MACDef *ssl_GetMacDefByAlg(SSL3MACAlgorithm mac);
|
||||
const ssl3MACDef *ssl_GetMacDef(const sslSocket *ss, const ssl3CipherSuiteDef *suiteDef);
|
||||
|
||||
ssl3CipherSpec *ssl_CreateCipherSpec(sslSocket *ss, CipherSpecDirection direction);
|
||||
ssl3CipherSpec *ssl_CreateCipherSpec(sslSocket *ss, SSLSecretDirection direction);
|
||||
void ssl_SaveCipherSpec(sslSocket *ss, ssl3CipherSpec *spec);
|
||||
void ssl_CipherSpecAddRef(ssl3CipherSpec *spec);
|
||||
void ssl_CipherSpecRelease(ssl3CipherSpec *spec);
|
||||
void ssl_DestroyCipherSpecs(PRCList *list);
|
||||
SECStatus ssl_SetupNullCipherSpec(sslSocket *ss, CipherSpecDirection dir);
|
||||
SECStatus ssl_SetupNullCipherSpec(sslSocket *ss, SSLSecretDirection dir);
|
||||
|
||||
ssl3CipherSpec *ssl_FindCipherSpecByEpoch(sslSocket *ss,
|
||||
CipherSpecDirection direction,
|
||||
SSLSecretDirection direction,
|
||||
DTLSEpoch epoch);
|
||||
void ssl_CipherSpecReleaseByEpoch(sslSocket *ss, CipherSpecDirection direction,
|
||||
void ssl_CipherSpecReleaseByEpoch(sslSocket *ss, SSLSecretDirection direction,
|
||||
DTLSEpoch epoch);
|
||||
|
||||
#endif /* __sslspec_h_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue