qssl.sip 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. // qssl.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtNetwork Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  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. %If (PyQt_SSL)
  22. namespace QSsl
  23. {
  24. %TypeHeaderCode
  25. #include <qssl.h>
  26. %End
  27. enum KeyType
  28. {
  29. PrivateKey,
  30. PublicKey,
  31. };
  32. enum EncodingFormat
  33. {
  34. Pem,
  35. Der,
  36. };
  37. enum KeyAlgorithm
  38. {
  39. Opaque,
  40. Rsa,
  41. Dsa,
  42. Ec,
  43. Dh,
  44. %If (Qt_6_11_0 -)
  45. MlDsa,
  46. %End
  47. };
  48. enum AlternativeNameEntryType
  49. {
  50. EmailEntry,
  51. DnsEntry,
  52. IpAddressEntry,
  53. };
  54. enum SslProtocol
  55. {
  56. UnknownProtocol,
  57. TlsV1_0,
  58. TlsV1_0OrLater,
  59. TlsV1_1,
  60. TlsV1_1OrLater,
  61. TlsV1_2,
  62. TlsV1_2OrLater,
  63. AnyProtocol,
  64. SecureProtocols,
  65. DtlsV1_0,
  66. DtlsV1_0OrLater,
  67. DtlsV1_2,
  68. DtlsV1_2OrLater,
  69. TlsV1_3,
  70. TlsV1_3OrLater,
  71. };
  72. enum SslOption /BaseType=Flag/
  73. {
  74. SslOptionDisableEmptyFragments,
  75. SslOptionDisableSessionTickets,
  76. SslOptionDisableCompression,
  77. SslOptionDisableServerNameIndication,
  78. SslOptionDisableLegacyRenegotiation,
  79. SslOptionDisableSessionSharing,
  80. SslOptionDisableSessionPersistence,
  81. SslOptionDisableServerCipherPreference,
  82. };
  83. typedef QFlags<QSsl::SslOption> SslOptions;
  84. enum class AlertLevel
  85. {
  86. Warning,
  87. Fatal,
  88. Unknown,
  89. };
  90. enum class AlertType
  91. {
  92. CloseNotify,
  93. UnexpectedMessage,
  94. BadRecordMac,
  95. RecordOverflow,
  96. DecompressionFailure,
  97. HandshakeFailure,
  98. NoCertificate,
  99. BadCertificate,
  100. UnsupportedCertificate,
  101. CertificateRevoked,
  102. CertificateExpired,
  103. CertificateUnknown,
  104. IllegalParameter,
  105. UnknownCa,
  106. AccessDenied,
  107. DecodeError,
  108. DecryptError,
  109. ExportRestriction,
  110. ProtocolVersion,
  111. InsufficientSecurity,
  112. InternalError,
  113. InappropriateFallback,
  114. UserCancelled,
  115. NoRenegotiation,
  116. MissingExtension,
  117. UnsupportedExtension,
  118. CertificateUnobtainable,
  119. UnrecognizedName,
  120. BadCertificateStatusResponse,
  121. BadCertificateHashValue,
  122. UnknownPskIdentity,
  123. CertificateRequired,
  124. NoApplicationProtocol,
  125. UnknownAlertMessage,
  126. };
  127. %If (Qt_6_1_0 -)
  128. enum class ImplementedClass
  129. {
  130. Key,
  131. Certificate,
  132. Socket,
  133. DiffieHellman,
  134. EllipticCurve,
  135. Dtls,
  136. %If (Qt_6_2_0 -)
  137. DtlsCookie,
  138. %End
  139. };
  140. %End
  141. %If (Qt_6_1_0 -)
  142. enum class SupportedFeature
  143. {
  144. CertificateVerification,
  145. ClientSideAlpn,
  146. ServerSideAlpn,
  147. Ocsp,
  148. Psk,
  149. SessionTicket,
  150. Alerts,
  151. };
  152. %End
  153. };
  154. %End