aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-05-18 01:22:58 +0000
committerlloyd <[email protected]>2007-05-18 01:22:58 +0000
commit22ecdc45a0efa4c444d0b7010b7cd743aeb68c57 (patch)
treefd45e06f1c9505a6133683be556738eceeeef630
parent90f3c537059c026b83b9ef9ca7191a4de91f864c (diff)
Enable DATA_ENCIPHERMENT in constraints for encryption keys.
-rw-r--r--src/x509_key.cpp2
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;