shared/crypto: Transform bt_cryto in a singleton
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 15 Jan 2021 18:52:42 +0000 (10:52 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commitda82e582f3215b57ec74cd06c77b0b0e240e17bb
treee2e0e321d99ae2f19981d356ce5ef39ff7e545f3
parent1c870d34ccf418f1fc91b56b5e1bda4742b36bbf
shared/crypto: Transform bt_cryto in a singleton

This makes bt_crypto always return the same instance thus avoiding the
problem of having multiple PF sockets opened which may hit the file
descriptor limit.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/crypto.c