]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
restore flag symmetry
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 11 Jun 2020 19:35:28 +0000 (21:35 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 11 Jun 2020 19:35:28 +0000 (21:35 +0200)
pdns/pkcs11signers.cc

index 95fe5654b4f83af389092d9100a3cd67e3cf722f..d6073b865b182ad7ad18042fb8fb197a72c49993 100644 (file)
@@ -841,6 +841,7 @@ void PKCS11DNSCryptoKeyEngine::create(unsigned int bits) {
     pubAttr.push_back(P11KitAttribute(CKA_TOKEN, (char)CK_TRUE));
     pubAttr.push_back(P11KitAttribute(CKA_ENCRYPT, (char)CK_TRUE));
     pubAttr.push_back(P11KitAttribute(CKA_VERIFY, (char)CK_TRUE));
+    pubAttr.push_back(P11KitAttribute(CKA_WRAP, (char)CK_TRUE));
     pubAttr.push_back(P11KitAttribute(CKA_LABEL, d_pub_label));
     if (d_algorithm == 13) pubAttr.push_back(P11KitAttribute(CKA_ECDSA_PARAMS, ECDSA256_PARAMS));
     else if (d_algorithm == 14) pubAttr.push_back(P11KitAttribute(CKA_ECDSA_PARAMS, ECDSA384_PARAMS));