<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html><head><title>QSsl Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } td.postheader { font-family: sans-serif } tr.address { font-family: sans-serif } body { background: #ffffff; color: black; } </style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QSsl Class Reference<br /><sup><sup>[<a href="qtnetwork.html">QtNetwork</a> module]</sup></sup></h1><p>The QSsl namespace declares enums common to all SSL classes in <a href="qtnetwork.html">QtNetwork</a>. <a href="#details">More...</a></p> <h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qssl.html#AlternateNameEntryType-enum">AlternateNameEntryType</a></b> { EmailEntry, DnsEntry }</li><li><div class="fn" />enum <b><a href="qssl.html#EncodingFormat-enum">EncodingFormat</a></b> { Pem, Der }</li><li><div class="fn" />enum <b><a href="qssl.html#KeyAlgorithm-enum">KeyAlgorithm</a></b> { Rsa, Dsa }</li><li><div class="fn" />enum <b><a href="qssl.html#KeyType-enum">KeyType</a></b> { PrivateKey, PublicKey }</li><li><div class="fn" />enum <b><a href="qssl.html#SslProtocol-enum">SslProtocol</a></b> { SslV3, SslV2, TlsV1, AnyProtocol, UnknownProtocol }</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QSsl namespace declares enums common to all SSL classes in <a href="qtnetwork.html">QtNetwork</a>.</p> <hr /><h2>Type Documentation</h2><h3 class="fn"><a name="AlternateNameEntryType-enum" />QSsl.AlternateNameEntryType</h3><p>Describes the key types for alternate name entries in <a href="qsslcertificate.html">QSslCertificate</a>.</p> <table class="valuelist"> <tr class="odd"> <td /> </tr> <tr> <th class="tblConst">Constant</th> <th class="tblval">Value</th> <th class="tbldscr">Description</th> </tr> <tr> <td class="topAlign"><tt>QSsl.EmailEntry</tt></td> <td class=" topAlign"><tt>0</tt></td> <td class="topAlign">An email entry; the entry contains an email address that the certificate is valid for.</td> </tr> <tr> <td class="topAlign"><tt>QSsl.DnsEntry</tt></td> <td class=" topAlign"><tt>1</tt></td> <td class="topAlign">A DNS host name entry; the entry contains a host name entry that the certificate is valid for. The entry may contain wildcards.</td> </tr> </table> <p>See also <a href="qsslcertificate.html#alternateSubjectNames">QSslCertificate.alternateSubjectNames</a>().</p> <h3 class="fn"><a name="EncodingFormat-enum" />QSsl.EncodingFormat</h3><p>Describes supported encoding formats for certificates and keys.</p> <table class="valuelist"> <tr class="odd"> <td /> </tr> <tr> <th class="tblConst">Constant</th> <th class="tblval">Value</th> <th class="tbldscr">Description</th> </tr> <tr> <td class="topAlign"><tt>QSsl.Pem</tt></td> <td class=" topAlign"><tt>0</tt></td> <td class="topAlign">The PEM format.</td> </tr> <tr> <td class="topAlign"><tt>QSsl.Der</tt></td> <td class=" topAlign"><tt>1</tt></td> <td class="topAlign">The DER format.</td> </tr> </table> <h3 class="fn"><a name="KeyAlgorithm-enum" />QSsl.KeyAlgorithm</h3><p>Describes the different key algorithms supported by <a href="qsslkey.html">QSslKey</a>.</p> <table class="valuelist"> <tr class="odd"> <td /> </tr> <tr> <th class="tblConst">Constant</th> <th class="tblval">Value</th> <th class="tbldscr">Description</th> </tr> <tr> <td class="topAlign"><tt>QSsl.Rsa</tt></td> <td class=" topAlign"><tt>0</tt></td> <td class="topAlign">The RSA algorithm.</td> </tr> <tr> <td class="topAlign"><tt>QSsl.Dsa</tt></td> <td class=" topAlign"><tt>1</tt></td> <td class="topAlign">The DSA algorithm.</td> </tr> </table> <h3 class="fn"><a name="KeyType-enum" />QSsl.KeyType</h3><p>Describes the two types of keys <a href="qsslkey.html">QSslKey</a> supports.</p> <table class="valuelist"> <tr class="odd"> <td /> </tr> <tr> <th class="tblConst">Constant</th> <th class="tblval">Value</th> <th class="tbldscr">Description</th> </tr> <tr> <td class="topAlign"><tt>QSsl.PrivateKey</tt></td> <td class=" topAlign"><tt>0</tt></td> <td class="topAlign">A private key.</td> </tr> <tr> <td class="topAlign"><tt>QSsl.PublicKey</tt></td> <td class=" topAlign"><tt>1</tt></td> <td class="topAlign">A public key.</td> </tr> </table> <h3 class="fn"><a name="SslProtocol-enum" />QSsl.SslProtocol</h3><p>Describes the protocol of the cipher.</p> <table class="valuelist"> <tr class="odd"> <td /> </tr> <tr> <th class="tblConst">Constant</th> <th class="tblval">Value</th> <th class="tbldscr">Description</th> </tr> <tr> <td class="topAlign"><tt>QSsl.SslV3</tt></td> <td class=" topAlign"><tt>0</tt></td> <td class="topAlign">SSLv3 - the default protocol.</td> </tr> <tr> <td class="topAlign"><tt>QSsl.SslV2</tt></td> <td class=" topAlign"><tt>1</tt></td> <td class="topAlign">SSLv2</td> </tr> <tr> <td class="topAlign"><tt>QSsl.TlsV1</tt></td> <td class=" topAlign"><tt>2</tt></td> <td class="topAlign">TLSv1</td> </tr> <tr> <td class="topAlign"><tt>QSsl.UnknownProtocol</tt></td> <td class=" topAlign"><tt>-1</tt></td> <td class="topAlign">The cipher's protocol cannot be determined.</td> </tr> <tr> <td class="topAlign"><tt>QSsl.AnyProtocol</tt></td> <td class=" topAlign"><tt>3</tt></td> <td class="topAlign">The socket understands SSLv2, SSLv3, and TLSv1. This value is used by <a href="qsslsocket.html">QSslSocket</a> only.</td> </tr> </table> <p>Note: most servers using SSL understand both versions (2 and 3), but it is recommended to use the latest version only for security reasons. However, SSL and TLS are not compatible with each other: if you get unexpected handshake failures, verify that you chose the correct setting for your protocol.</p> <address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.8.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2011</td><td align="right" width="25%">Qt 4.7.1</td></tr></table></div></address></body></html>