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. [SOLVED] Is QSslKey dependent on OpenSSL?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Is QSslKey dependent on OpenSSL?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • X Offline
    X Offline
    XGuy
    wrote on last edited by
    #1

    in my application i create a QSslKey then check if it was null or not.

    @QSslKey key(this->getKey(), QSsl::Rsa, QSsl::Pem, QSsl::PrivateKey, pass);
    // check If key is null
    if (key.isNull())
    {
    .
    .
    .
    }
    @
    on a machine with openssl installed this never gives me null, but on a machine without openssl it always returns key is null!
    I'm running the app on a win7

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      bq. Is QSslKey dependent on OpenSSL?

      Yes, it is. QSslSocket::supportsSsl() must be true for the majority of functions in the class to do anything to change the default isNull == true state.

      1 Reply Last reply
      0
      • X Offline
        X Offline
        XGuy
        wrote on last edited by
        #3

        Thank you.

        1 Reply Last reply
        0

        • Login

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