p11-glue / p11-kit

Provides a way to load and enumerate PKCS#11 modules.
https://p11-glue.github.io/p11-glue/p11-kit.html
Other
149 stars 91 forks source link

consider renaming parameter name "template" #610

Closed tougantium closed 7 months ago

tougantium commented 8 months ago

In various places in p11-kit, the parameter name "template" is used. However, "template" is a reserved keyword in C++. When including headers that contain such function signatures in a C++ project, the compilation will fail due to the reserved meaning of the name "template". One example is the iter.h header with the functions p11_kit_iter_get_attributes and p11_kit_iter_load_attributes.