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

Add function to check run-time version of the library #637

Closed ueno closed 3 months ago

ueno commented 3 months ago

This adds p11_kit_check_version function, which can be used to check the run-time version of p11-kit.

Fixes: #523

coveralls commented 3 months ago

Coverage Status

coverage: 69.537% (-0.02%) from 69.556% when pulling f3a39ad004d96b428090eaa847574a16085faac9 on ueno:wip/dueno/version-api2 into 652927da18abecedf3ab21728252ec73e8214174 on p11-glue:master.

ueno commented 3 months ago

Thanks for the review!

ametzler commented 1 month ago

Looking at 0.25.5 p11_kit_check_version() is part of the source but afaict it is dead code. version.h with the function prototype is not installed and the function is not part of the exported API either since it is not listed in p11-kit/libp11-kit.map.

ueno commented 1 month ago

@ametzler indeed; thank you for the report. Could you check #648?