diff options
-rw-r--r-- | src/x509_key.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x509_key.cpp b/src/x509_key.cpp index f2a7ba485..7bace558f 100644 --- a/src/x509_key.cpp +++ b/src/x509_key.cpp @@ -153,7 +153,7 @@ Key_Constraints find_constraints(const Public_Key& pub_key, u32bit constraints = 0; if(dynamic_cast<const PK_Encrypting_Key*>(key)) - constraints |= KEY_ENCIPHERMENT; + constraints |= KEY_ENCIPHERMENT | DATA_ENCIPHERMENT; if(dynamic_cast<const PK_Key_Agreement_Key*>(key)) constraints |= KEY_AGREEMENT; |