Searched hist:"6459 f2671f471e4978ba7b55e7a33c016065944a" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/ta/pkcs11/src/ |
| H A D | pkcs11_token.c | 6459f2671f471e4978ba7b55e7a33c016065944a Wed Apr 08 08:30:33 UTC 2020 Etienne Carriere <etienne.carriere@linaro.org> ta: pkcs11: fix MECHANISM_IDS to return OK when no output buffer
Fix PKCS11 TA command PKCS11_CMD_MECHANISM_IDS to handle case where client provides a NULL buffer reference when querying the list of supported mechanism IDs. In such case TA should return OK, not PKCS11_CKR_BUFFER_TOO_SMALL.
This change is needed since commit [1] that makes an OP-TEE TA able to receive memref parameters with a NULL buffer reference.
Link: [1] 20b567068a37 ("libutee: flag NULL pointer using invalid shm id") Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
|