Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCoap on OS-X is missing DTLS support -> QT_CONFIG(dtls) == false

QtCoap on OS-X is missing DTLS support -> QT_CONFIG(dtls) == false

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 177 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Frime
    wrote on last edited by
    #1

    I want to play around with the QtCOAP plugin. Unfortunately the DTLS support is missing on my OS-X Catalina. All I got is this error:

    qt.coap.connection: DTLS is disabled, falling back to QtCoap::NoSecurity mode.

    I have fully installed Qt 5.14.1 (with sources) with the online installer and compiled the COAP Plugin afterwards by myself with the prebuilt qmake.

    The DTLS specific parts in the QtCoap code are wrapped within
    #if QT_CONFIG(dtls) blocks
    (e.g. qcoapqudpconnection_p.h) . Which are resolved to false.

    What do I need to do to enable DTLS support for QtCoap?
    Thanks in advance!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From a quick look at the sources, it seems that DTLS is currently only available using OpenSSL. By default Qt is built using the SecureTranport framework on macOS which is the official cryptographic library for that OS.

      You can rebuild the qtbase module to use OpenSSL instead but ensure to install the latest version of the 1.1 series.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved