Exemple #1
0
 def _auth_revoked_apps_o_cb(user_data, result, app_exchange_info,
                             app_exchange_info_len):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result, app_exchange_info,
              app_exchange_info_len)
Exemple #2
0
 def _encode_containers_resp_o_cb(user_data, result, response):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_encode_containers_resp_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result, response)
Exemple #3
0
 def _auth_flush_app_revocation_queue_o_cb(user_data, result):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_flush_app_revocation_queue_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result)
Exemple #4
0
 def _auth_decode_ipc_msg_o_err(user_data, result, response):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_decode_ipc_msg_o_err'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_err:
         o_err(user_data, result, response)
Exemple #5
0
 def _auth_exe_file_stem_o_cb(user_data, result, filename):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_exe_file_stem_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result, filename)
Exemple #6
0
 def _create_acc_o_cb(user_data, result, authenticator):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_create_acc_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result, authenticator)
Exemple #7
0
 def _auth_output_log_path_o_cb(user_data, result, log_path):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_output_log_path_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result, log_path)
Exemple #8
0
 def _auth_apps_accessing_mutable_data_o_cb(user_data, result,
                                            app_access, app_access_len):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_apps_accessing_mutable_data_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result, app_access, app_access_len)
Exemple #9
0
 def _auth_revoked_apps_o_cb(user_data, result, app_exchange_info,
                             app_exchange_info_len):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_revoked_apps_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result, app_exchange_info,
              app_exchange_info_len)
Exemple #10
0
 def _login_o_cb(user_data, result, authenticaor):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_login_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     user_data = self if user_data == self.ffi_auth.NULL else self.ffi_auth.from_handle(
         user_data)
     if o_cb:
         o_cb(user_data, result, authenticaor
              )  #  If user data is None, we should send self to the CB
Exemple #11
0
 def _auth_registered_apps_o_cb(user_data, result, registered_app,
                                registered_app_len):
     log.debug(
         f"got {LOCAL_QUEUES[f'{str(id(self))}_auth_registered_apps_o_cb'].get_nowait()}"
     )
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     user_data = self if user_data == self.ffi_auth.NULL else self.ffi_auth.from_handle(
         user_data)
     if o_cb:
         o_cb(user_data, result, registered_app, registered_app_len)
Exemple #12
0
 def _auth_rm_revoked_app_o_cb(user_data ,result):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result)
Exemple #13
0
 def _encode_containers_resp_o_cb(user_data ,result ,response):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result ,response)
Exemple #14
0
 def _auth_flush_app_revocation_queue_o_cb(user_data ,result):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result)
Exemple #15
0
 def _auth_init_logging_o_cb(user_data ,result):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result)
Exemple #16
0
 def _auth_decode_ipc_msg_o_err(user_data ,result ,response):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_err:
         o_err(user_data ,result ,response)
Exemple #17
0
 def _auth_set_additional_search_path_o_cb(user_data ,result):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result)
Exemple #18
0
 def _auth_exe_file_stem_o_cb(user_data ,result ,filename):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result ,filename)
Exemple #19
0
 def _auth_output_log_path_o_cb(user_data ,result ,log_path):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result ,log_path)
Exemple #20
0
 def _auth_registered_apps_o_cb(user_data ,result ,registered_app ,registered_app_len):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result ,registered_app ,registered_app_len)
Exemple #21
0
 def _auth_apps_accessing_mutable_data_o_cb(user_data ,result ,app_access ,app_access_len):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result ,app_access ,app_access_len)
Exemple #22
0
 def _open_uri_o_cb(user_data, result):
     safeUtils.checkResult(result, self.ffi_sysUri, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data, result)
Exemple #23
0
 def _create_acc_o_cb(user_data ,result ,authenticator):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result ,authenticator)
Exemple #24
0
 def _auth_account_info_o_cb(user_data ,result ,account_info):
     safeUtils.checkResult(result, self.ffi_auth, user_data)
     self.queue.put('gotResult')
     if o_cb:
         o_cb(user_data ,result ,account_info)