diff options
author | lloyd <[email protected]> | 2007-05-18 01:22:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-05-18 01:22:58 +0000 |
commit | 22ecdc45a0efa4c444d0b7010b7cd743aeb68c57 (patch) | |
tree | fd45e06f1c9505a6133683be556738eceeeef630 /src | |
parent | 90f3c537059c026b83b9ef9ca7191a4de91f864c (diff) |
Enable DATA_ENCIPHERMENT in constraints for encryption keys.
Diffstat (limited to 'src')
-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; |