linaro-swg / optee_examples

OP-TEE Sample Applications
Other
163 stars 140 forks source link

hotp: use sess_ctx instead of global variables #103

Closed erhade closed 1 year ago

erhade commented 1 year ago

Resolve the issue of global variables in TA, which currently do not have isolation when accessed by multiple CAs. It is suggested to attach the variables to session_ctx for easy access when needed.

Signed-off-by: Shiqi Liu erha_email@163.com

jbech-linaro commented 1 year ago

Please, note that one more thing is needed: https://optee.readthedocs.io/en/latest/general/contribute.html#finalizing-your-contribution