/* Function for processing the BLE_GAP_EVT_SEC_REQUEST event from the SoftDevice.  */
static void sec_request_process(ble_gap_evt_t *p_gap_evt)
/* Function for processing the BLE_GAP_EVT_SEC_REQUEST event from the SoftDevice.  */
static void sec_request_process(ble_gap_evt_t *p_gap_evt)
{
    smd_evt_t evt =
    {
        .evt_id = SMD_EVT_SLAVE_SECURITY_REQ,
        .conn_handle = p_gap_evt->conn_handle,
        .params =
        {
            .slave_security_req =
            {
                .bond = p_gap_evt->params.sec_request.bond,
                .mitm = p_gap_evt->params.sec_request.mitm,
            }
        }
    };
    evt_send(&evt);
    return;
}