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))
|
||||
|
||||
func DefaultCryptoSelector(provided uint32) uint32 {
|
||||
if provided&CryptoMethodRC4 != 0 {
|
||||
return CryptoMethodRC4
|
||||
}
|
||||
if provided&CryptoMethodPlaintext != 0 {
|
||||
return CryptoMethodPlaintext
|
||||
}
|
||||
return CryptoMethodRC4
|
||||
}
|
||||
|
||||
type CryptoSelector func(uint32) uint32
|
||||
|
Loading…
x
Reference in New Issue
Block a user