1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-25 17:39:16 +03:00
Files
opencryptoki/usr/include
Ingo Franzki 899173b27f PKCSSLOTD: Simplify copying slot info in PopulateSlotInfo()
Instead of copying each member separately, copy the entire struct at once.
This also fixes a bug where the string fields uses memcpy with strlen,
which does not copy the trailing NUL character. The target struct is
zeroed before, so there anyway is a NUL character, but that is subtle.

While at it remove the unused field shm_addr.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2026-08-19 08:27:40 +02:00
..