1// qssl.sip generated by MetaSIP
2//
3// This file is part of the QtNetwork Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQt5.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23%If (PyQt_SSL)
24
25namespace QSsl
26{
27%TypeHeaderCode
28#include <qssl.h>
29%End
30
31    enum KeyType
32    {
33        PrivateKey,
34        PublicKey,
35    };
36
37    enum EncodingFormat
38    {
39        Pem,
40        Der,
41    };
42
43    enum KeyAlgorithm
44    {
45        Opaque,
46        Rsa,
47        Dsa,
48%If (Qt_5_5_0 -)
49        Ec,
50%End
51%If (Qt_5_13_0 -)
52        Dh,
53%End
54    };
55
56    enum AlternativeNameEntryType
57    {
58        EmailEntry,
59        DnsEntry,
60%If (Qt_5_13_0 -)
61        IpAddressEntry,
62%End
63    };
64
65    enum SslProtocol
66    {
67        UnknownProtocol,
68        SslV3,
69        SslV2,
70        TlsV1_0,
71%If (Qt_5_5_0 -)
72        TlsV1_0OrLater,
73%End
74        TlsV1_1,
75%If (Qt_5_5_0 -)
76        TlsV1_1OrLater,
77%End
78        TlsV1_2,
79%If (Qt_5_5_0 -)
80        TlsV1_2OrLater,
81%End
82        AnyProtocol,
83        TlsV1SslV3,
84        SecureProtocols,
85%If (Qt_5_12_0 -)
86        DtlsV1_0,
87%End
88%If (Qt_5_12_0 -)
89        DtlsV1_0OrLater,
90%End
91%If (Qt_5_12_0 -)
92        DtlsV1_2,
93%End
94%If (Qt_5_12_0 -)
95        DtlsV1_2OrLater,
96%End
97%If (Qt_5_12_0 -)
98        TlsV1_3,
99%End
100%If (Qt_5_12_0 -)
101        TlsV1_3OrLater,
102%End
103    };
104
105    enum SslOption
106    {
107        SslOptionDisableEmptyFragments,
108        SslOptionDisableSessionTickets,
109        SslOptionDisableCompression,
110        SslOptionDisableServerNameIndication,
111        SslOptionDisableLegacyRenegotiation,
112%If (Qt_5_2_0 -)
113        SslOptionDisableSessionSharing,
114%End
115%If (Qt_5_2_0 -)
116        SslOptionDisableSessionPersistence,
117%End
118%If (Qt_5_6_0 -)
119        SslOptionDisableServerCipherPreference,
120%End
121    };
122
123    typedef QFlags<QSsl::SslOption> SslOptions;
124};
125
126%End
127%If (PyQt_SSL)
128QFlags<QSsl::SslOption> operator|(QSsl::SslOption f1, QFlags<QSsl::SslOption> f2);
129%End
130