mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 10:19:39 +02:00
Respect encryptionMechanismOverride
This commit is contained in:
parent
6fec51c91c
commit
af7b0a8a5f
1 changed files with 4 additions and 0 deletions
|
@ -435,6 +435,10 @@ class EncryptionOptions(private val purpose: EncryptionPurpose, private val api:
|
|||
}
|
||||
|
||||
internal fun negotiateEncryptionMechanism(): MessageEncryptionMechanism {
|
||||
if (encryptionMechanismOverride != null) {
|
||||
return encryptionMechanismOverride!!
|
||||
}
|
||||
|
||||
val features = keysAndAccessors.values.map { it.features }.toList()
|
||||
|
||||
if (features.all { it.contains(Feature.MODIFICATION_DETECTION_2) }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue