Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > dbf69eaa13c86c67c80d31d9cbb7847c > files > 2008

qtbase5-doc-5.9.4-1.2.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- ssl.qdoc -->
  <title>Secure Sockets Layer (SSL) Classes | Qt Network 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtnetwork-index.html">Qt Network</a></td><td >Secure Sockets Layer (SSL) Classes</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#enabling-and-disabling-ssl-support">Enabling and Disabling SSL Support</a></li>
<li class="level1"><a href="#import-and-export-restrictions">Import and Export Restrictions</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Secure Sockets Layer (SSL) Classes</h1>
<span class="subtitle"></span>
<!-- $$$ssl.html-description -->
<div class="descr"> <a name="details"></a>
<p>The classes below provide support for secure network communication using the Secure Sockets Layer (SSL) protocol, using the <a href="https://www.openssl.org/">OpenSSL Toolkit</a> to perform encryption and protocol handling.</p>
<p>From Qt version 5.2 onwards, the officially supported version for OpenSSL is 1.0&#x2e;0 or later. Versions &gt;= 0.9&#x2e;7 and &lt; 1.0&#x2e;0 might work, but are not guaranteed to work.</p>
<div class="table"><table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="qssl.html">QSsl</a></p></td><td class="tblDescr"><p>Declares enums common to all SSL classes in Qt Network</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qsslcertificate.html">QSslCertificate</a></p></td><td class="tblDescr"><p>Convenient API for an X509 certificate</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qsslcertificateextension.html">QSslCertificateExtension</a></p></td><td class="tblDescr"><p>API for accessing the extensions of an X509 certificate</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qsslcipher.html">QSslCipher</a></p></td><td class="tblDescr"><p>Represents an SSL cryptographic cipher</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qsslconfiguration.html">QSslConfiguration</a></p></td><td class="tblDescr"><p>Holds the configuration and state of an SSL connection</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qssldiffiehellmanparameters.html">QSslDiffieHellmanParameters</a></p></td><td class="tblDescr"><p>Interface for Diffie-Hellman parameters for servers</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qsslellipticcurve.html">QSslEllipticCurve</a></p></td><td class="tblDescr"><p>Represents an elliptic curve for use by elliptic-curve cipher algorithms</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qsslerror.html">QSslError</a></p></td><td class="tblDescr"><p>SSL error</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qsslkey.html">QSslKey</a></p></td><td class="tblDescr"><p>Interface for private and public keys</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qsslpresharedkeyauthenticator.html">QSslPreSharedKeyAuthenticator</a></p></td><td class="tblDescr"><p>Authentication data for pre shared keys (PSK) ciphersuites</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qsslsocket.html">QSslSocket</a></p></td><td class="tblDescr"><p>SSL encrypted socket for both clients and servers</p></td></tr>
</table></div>
<a name="enabling-and-disabling-ssl-support"></a>
<h2 id="enabling-and-disabling-ssl-support">Enabling and Disabling SSL Support</h2>
<p>When building Qt from source, the configuration system checks for the presence of the <code>openssl/opensslv.h</code> header provided by source or developer packages of OpenSSL.</p>
<p>By default, an SSL-enabled Qt library dynamically loads any installed OpenSSL library at run-time. However, it is possible to link against the library at compile-time by configuring Qt with the <code>-openssl-linked</code> option.</p>
<p>When building a version of Qt linked against OpenSSL, the build system will attempt to link with libssl and libcrypt libraries located in the default location on the developer's system. This location is configurable: set the <code>OPENSSL_LIBS</code> environment variable to contain the linker options required to link Qt against the installed library. For example, on a Unix/Linux system:</p>
<pre class="cpp">

  OPENSSL_LIBS<span class="operator">=</span><span class="char">'-L/opt/ssl/lib -lssl -lcrypto'</span> <span class="operator">.</span><span class="operator">/</span>configure <span class="operator">-</span>openssl<span class="operator">-</span>linked

</pre>
<p>To disable SSL support in a Qt build, configure Qt with the <code>-no-openssl</code> option.</p>
<a name="import-and-export-restrictions"></a>
<h2 id="import-and-export-restrictions">Import and Export Restrictions</h2>
<p>Due to import and export restrictions in some parts of the world, we are unable to supply the OpenSSL Toolkit with Qt packages. Developers wishing to use SSL communication in their deployed applications should either ensure that their users have the appropriate libraries installed, or they should consult a suitably qualified legal professional to ensure that applications using code from the OpenSSL project are correctly certified for import and export in relevant regions of the world.</p>
</div>
<!-- @@@ssl.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>