1 /****************************************************************************
3 ** Copyright (C) 2015 The Qt Company Ltd.
4 ** Contact: http://www.qt.io/licensing/
6 ** This file is part of the documentation of the Qt Toolkit.
8 ** $QT_BEGIN_LICENSE:FDL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see http://www.qt.io/terms-conditions. For further
15 ** information use the contact form at http://www.qt.io/contact-us.
17 ** GNU Free Documentation License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Free
19 ** Documentation License version 1.3 as published by the Free Software
20 ** Foundation and appearing in the file included in the packaging of
21 ** this file. Please review the following information to ensure
22 ** the GNU Free Documentation License version 1.3 requirements
23 ** will be met: http://www.gnu.org/copyleft/fdl.html.
26 ****************************************************************************/
30 \title Secure Sockets Layer (SSL) Classes
31 \brief Classes for secure communication over network sockets.
36 The classes below provide support for secure network communication using
37 the Secure Sockets Layer (SSL) protocol, using the \l{OpenSSL Toolkit} to
38 perform encryption and protocol handling.
40 See the \l{General Qt Requirements} page for information about the
41 versions of OpenSSL that are known to work with Qt.
43 \section1 Enabling and Disabling SSL Support
45 When building Qt from source, the configuration system checks for the presence
46 of the \c{openssl/opensslv.h} header provided by source or developer packages
49 By default, an SSL-enabled Qt library dynamically loads any installed OpenSSL
50 library at run-time. However, it is possible to link against the library at
51 compile-time by configuring Qt with the \c{-openssl-linked} option.
53 When building a version of Qt linked against OpenSSL, the build system will
54 attempt to link with libssl and libcrypt libraries located in the default
55 location on the developer's system. This location is configurable:
56 set the \c OPENSSL_LIBS environment variable to contain the linker options
57 required to link Qt against the installed library. For example, on a Unix/Linux
61 OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked
64 To disable SSL support in a Qt build, configure Qt with the \c{-no-openssl}
67 \section1 Licensing Information
69 \note Due to import and export restrictions in some parts of the world, we
70 are unable to supply the OpenSSL Toolkit with Qt packages. Developers wishing
71 to use SSL communication in their deployed applications should either ensure
72 that their users have the appropriate libraries installed, or they should
73 consult a suitably qualified legal professional to ensure that applications
74 using code from the OpenSSL project are correctly certified for import
75 and export in relevant regions of the world.
77 When the QtNetwork module is built with SSL support, the library is linked
78 against OpenSSL in a way that requires OpenSSL license compliance.