- if (e_crypt_keyengine_busy) {
- if (e_crypt_keyengine_return < 0) {
- e_crypt_keyengine_busy = 0;
- cryptman_message(CK_ERROR_IND, NULL, 0);
+ class EndpointAppPBX *ea = (class EndpointAppPBX *)instance;
+ struct timeval current_time;
+
+ if (ea->e_crypt_keyengine_busy) {
+ if (ea->e_crypt_keyengine_return < 0) {
+ ea->e_crypt_keyengine_busy = 0;
+ ea->cryptman_message(CK_ERROR_IND, NULL, 0);