Adding version header to show in lsusb command (bcdDevice) and major version in pkcs15-tool -D.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-03-08 18:43:30 +01:00
parent 9be78aade6
commit 4a0144ed2a
5 changed files with 44 additions and 24 deletions

10
src/hsm/version.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef __VERSION_H_
#define __VERSION_H_
#define HSM_VERSION 0x0101
#define HSM_VERSION_MAJOR ((HSM_VERSION >> 8) & 0xff)
#define HSM_VERSION_MINOR (HSM_VERSION & 0xff)
#endif