2021-01-10 14:31:33 +01:00
|
|
|
const { ipcMain } = require('electron');
|
2021-04-02 18:47:04 +02:00
|
|
|
const {
|
|
|
|
hardwareCryptoDeleteKey,
|
|
|
|
hardwareEncrypt,
|
|
|
|
hardwareDecrypt
|
|
|
|
} = require('./ipc-handlers/hardware-crypto');
|
2021-03-28 18:41:31 +02:00
|
|
|
const { spawnProcess } = require('./ipc-handlers/spawn-process');
|
2021-02-08 22:49:53 +01:00
|
|
|
const { nativeModuleCall } = require('./ipc-handlers/native-module-host-proxy');
|
2021-01-10 14:31:33 +01:00
|
|
|
|
|
|
|
module.exports.setupIpcHandlers = () => {
|
2021-04-02 18:47:04 +02:00
|
|
|
ipcMain.handle('hardwareCryptoDeleteKey', hardwareCryptoDeleteKey);
|
2021-01-30 18:39:25 +01:00
|
|
|
ipcMain.handle('hardwareEncrypt', hardwareEncrypt);
|
|
|
|
ipcMain.handle('hardwareDecrypt', hardwareDecrypt);
|
2021-03-28 18:41:31 +02:00
|
|
|
ipcMain.handle('spawnProcess', spawnProcess);
|
2021-02-08 22:49:53 +01:00
|
|
|
ipcMain.on('nativeModuleCall', nativeModuleCall);
|
2021-01-10 14:31:33 +01:00
|
|
|
};
|