pkcs11-tool: print in hex the code of unknown mechanism
This commit is contained in:
parent
2ba87640d2
commit
b8dcf91515
|
@ -5038,7 +5038,7 @@ static const char *p11_mechanism_to_name(CK_MECHANISM_TYPE mech)
|
|||
if (mi->mech == mech)
|
||||
return mi->name;
|
||||
}
|
||||
snprintf(temp, sizeof(temp), "mechtype-%lu", (unsigned long) mech);
|
||||
snprintf(temp, sizeof(temp), "mechtype-0x%lX", (unsigned long) mech);
|
||||
return temp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue