mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1277255, land NSS_3_25_RC1, r=me
This commit is contained in:
parent
1359297bec
commit
c6ce2eb18b
@ -1 +1 @@
|
||||
NSS_3_25_RC0
|
||||
NSS_3_25_RC1
|
||||
|
@ -10,4 +10,3 @@
|
||||
*/
|
||||
|
||||
#error "Do not include this header file."
|
||||
|
||||
|
@ -522,7 +522,18 @@ ifndef NSS_DISABLE_CHACHAPOLY
|
||||
else
|
||||
EXTRA_SRCS += poly1305.c
|
||||
endif
|
||||
EXTRA_SRCS += chacha20_vec.c
|
||||
|
||||
ifeq ($(OS_TARGET),SunOS)
|
||||
ifndef NS_USE_GCC
|
||||
CHACHA_NO_SSE2 = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef CHACHA_NO_SSE2
|
||||
EXTRA_SRCS += chacha20.c
|
||||
else
|
||||
EXTRA_SRCS += chacha20_vec.c
|
||||
endif
|
||||
else
|
||||
EXTRA_SRCS += poly1305.c
|
||||
EXTRA_SRCS += chacha20.c
|
||||
|
@ -4018,12 +4018,16 @@ static CK_MECHANISM_TYPE
|
||||
ssl3_GetHashMechanismByHashType(SSLHashType hashType)
|
||||
{
|
||||
switch (hashType) {
|
||||
case ssl_hash_sha512:
|
||||
return CKM_SHA512;
|
||||
case ssl_hash_sha384:
|
||||
return CKM_SHA384;
|
||||
case ssl_hash_sha256:
|
||||
case ssl_hash_none:
|
||||
/* ssl_hash_none is for pre-1.2 suites, which use SHA-256. */
|
||||
return CKM_SHA256;
|
||||
case ssl_hash_sha1:
|
||||
return CKM_SHA_1;
|
||||
default:
|
||||
PORT_Assert(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user