End-to-end secure connection in heterogeneous networks for critical scenarios