Applied #46125 fix (hardcoded "pkcs11")

This commit is contained in:
Francis Dupont
2018-01-17 15:21:25 +01:00
parent 3c8b6e234c
commit 52a761bbf4
+7 -2
View File
@@ -586,8 +586,13 @@ main(int argc, char **argv) {
isc_buffer_init(&buf, filename, sizeof(filename) - 1);
/* associate the key */
ret = dst_key_fromlabel(name, alg, flags, protocol,
rdclass, "pkcs11", label, NULL, mctx, &key);
ret = dst_key_fromlabel(name, alg, flags, protocol, rdclass,
#ifdef PKCS11CRYPTO
"pkcs11",
#else
engine,
#endif
label, NULL, mctx, &key);
isc_entropy_stopcallbacksources(ectx);
if (ret != ISC_R_SUCCESS) {