Make the PKCS#11 padding string trimming public, add null terminator

This commit is contained in:
Martin Willi
2010-08-04 09:26:19 +02:00
parent 71151d3c1b
commit b3b0e57cb1
2 changed files with 18 additions and 10 deletions
@@ -55,6 +55,14 @@ struct pkcs11_library_t {
*/
extern enum_name_t *ck_rv_names;
/**
* Trim/null terminate a string returned by the varius PKCS#11 functions.
*
* @param str string to trim
* @param len max length of the string
*/
void pkcs11_library_trim(char *str, int len);
/**
* Create a pkcs11_library instance.
*