| 211 | } |
| 212 | |
| 213 | std::shared_ptr<OHDLink> OHDInterface::get_link_handle() { |
| 214 | if (m_ethernet_link) { |
| 215 | m_console->warn("Using alternative Link: Ethernet"); |
| 216 | return m_ethernet_link; |
| 217 | } |
| 218 | if (m_wb_link) { |
| 219 | // m_console->warn("Using Link: OpenHD-WifiBroadCast"); |
| 220 | return m_wb_link; |
| 221 | } |
| 222 | if (m_microhard_link) { |
| 223 | m_console->warn("Using alternative Link: Microhard"); |
| 224 | return m_microhard_link; |
| 225 | } |
| 226 | return nullptr; |
| 227 | } |
| 228 | |
| 229 | void OHDInterface::generate_keys_from_pw_if_exists_and_delete() { |
| 230 | // Make sure this stupid sodium init has been called |