mse: Make plaintext mode the default when protocol header encryption is in use
This commit is contained in:
parent
5d3ee0a531
commit
7fdc750166
@ -563,10 +563,10 @@ func sliceIter(skeys [][]byte) SecretKeyIter {
|
|||||||
type SecretKeyIter func(callback func(skey []byte) (more bool))
|
type SecretKeyIter func(callback func(skey []byte) (more bool))
|
||||||
|
|
||||||
func DefaultCryptoSelector(provided uint32) uint32 {
|
func DefaultCryptoSelector(provided uint32) uint32 {
|
||||||
if provided&CryptoMethodRC4 != 0 {
|
if provided&CryptoMethodPlaintext != 0 {
|
||||||
return CryptoMethodRC4
|
|
||||||
}
|
|
||||||
return CryptoMethodPlaintext
|
return CryptoMethodPlaintext
|
||||||
|
}
|
||||||
|
return CryptoMethodRC4
|
||||||
}
|
}
|
||||||
|
|
||||||
type CryptoSelector func(uint32) uint32
|
type CryptoSelector func(uint32) uint32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user