<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- qsslerror.cpp --> <head> <title>Qt 4.6: QSslError Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <a name="//apple_ref/cpp/cl//QSslError"></a> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QSslError Class Reference<br /><span class="small-subtitle">[<a href="qtnetwork.html">QtNetwork</a> module]</span> </h1> <p>The QSslError class provides an SSL error. <a href="#details">More...</a></p> <pre> #include <QSslError></pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p> <p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p> <p>This class was introduced in Qt 4.3.</p> <ul> <li><a href="qsslerror-members.html">List of all members, including inherited members</a></li> </ul> <hr /> <a name="public-types"></a> <h2>Public Types</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#SslError-enum">SslError</a></b> { NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey, ..., NoSslSupport }</td></tr> </table> <hr /> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#QSslError">QSslError</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#QSslError-2">QSslError</a></b> ( SslError <i>error</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#QSslError-3">QSslError</a></b> ( SslError <i>error</i>, const QSslCertificate & <i>certificate</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#QSslError-4">QSslError</a></b> ( const QSslError & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#dtor.QSslError">~QSslError</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QSslCertificate </td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#certificate">certificate</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">SslError </td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#error">error</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#errorString">errorString</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#operator-not-eq">operator!=</a></b> ( const QSslError & <i>other</i> ) const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QSslError & </td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#operator-eq">operator=</a></b> ( const QSslError & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qsslerror.html#operator-eq-eq">operator==</a></b> ( const QSslError & <i>other</i> ) const</td></tr> </table> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QSslError class provides an SSL error.</p> <p>QSslError provides a simple API for managing errors during <a href="qsslsocket.html">QSslSocket</a>'s SSL handshake.</p> <p>See also <a href="qsslsocket.html">QSslSocket</a>, <a href="qsslcertificate.html">QSslCertificate</a>, and <a href="qsslcipher.html">QSslCipher</a>.</p> <hr /> <h2>Member Type Documentation</h2> <a name="//apple_ref/cpp/tag/QSslError/SslError"></a> <a name="//apple_ref/cpp/econst/QSslError/NoError"></a> <a name="//apple_ref/cpp/econst/QSslError/UnableToGetIssuerCertificate"></a> <a name="//apple_ref/cpp/econst/QSslError/UnableToDecryptCertificateSignature"></a> <a name="//apple_ref/cpp/econst/QSslError/UnableToDecodeIssuerPublicKey"></a> <a name="//apple_ref/cpp/econst/QSslError/CertificateSignatureFailed"></a> <a name="//apple_ref/cpp/econst/QSslError/CertificateNotYetValid"></a> <a name="//apple_ref/cpp/econst/QSslError/CertificateExpired"></a> <a name="//apple_ref/cpp/econst/QSslError/InvalidNotBeforeField"></a> <a name="//apple_ref/cpp/econst/QSslError/InvalidNotAfterField"></a> <a name="//apple_ref/cpp/econst/QSslError/SelfSignedCertificate"></a> <a name="//apple_ref/cpp/econst/QSslError/SelfSignedCertificateInChain"></a> <a name="//apple_ref/cpp/econst/QSslError/UnableToGetLocalIssuerCertificate"></a> <a name="//apple_ref/cpp/econst/QSslError/UnableToVerifyFirstCertificate"></a> <a name="//apple_ref/cpp/econst/QSslError/CertificateRevoked"></a> <a name="//apple_ref/cpp/econst/QSslError/InvalidCaCertificate"></a> <a name="//apple_ref/cpp/econst/QSslError/PathLengthExceeded"></a> <a name="//apple_ref/cpp/econst/QSslError/InvalidPurpose"></a> <a name="//apple_ref/cpp/econst/QSslError/CertificateUntrusted"></a> <a name="//apple_ref/cpp/econst/QSslError/CertificateRejected"></a> <a name="//apple_ref/cpp/econst/QSslError/SubjectIssuerMismatch"></a> <a name="//apple_ref/cpp/econst/QSslError/AuthorityIssuerSerialNumberMismatch"></a> <a name="//apple_ref/cpp/econst/QSslError/NoPeerCertificate"></a> <a name="//apple_ref/cpp/econst/QSslError/HostNameMismatch"></a> <a name="//apple_ref/cpp/econst/QSslError/UnspecifiedError"></a> <a name="//apple_ref/cpp/econst/QSslError/NoSslSupport"></a> <h3 class="fn"><a name="SslError-enum"></a>enum QSslError::SslError</h3> <p>Describes all recognized errors that can occur during an SSL handshake.</p> <p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="40%"> <tr><th width="60%">Constant</th><th width="40%">Value</th></tr> <tr><td valign="top"><tt>QSslError::NoError</tt></td><td align="center" valign="top"><tt>0</tt></td></tr> <tr><td valign="top"><tt>QSslError::UnableToGetIssuerCertificate</tt></td><td align="center" valign="top"><tt>1</tt></td></tr> <tr><td valign="top"><tt>QSslError::UnableToDecryptCertificateSignature</tt></td><td align="center" valign="top"><tt>2</tt></td></tr> <tr><td valign="top"><tt>QSslError::UnableToDecodeIssuerPublicKey</tt></td><td align="center" valign="top"><tt>3</tt></td></tr> <tr><td valign="top"><tt>QSslError::CertificateSignatureFailed</tt></td><td align="center" valign="top"><tt>4</tt></td></tr> <tr><td valign="top"><tt>QSslError::CertificateNotYetValid</tt></td><td align="center" valign="top"><tt>5</tt></td></tr> <tr><td valign="top"><tt>QSslError::CertificateExpired</tt></td><td align="center" valign="top"><tt>6</tt></td></tr> <tr><td valign="top"><tt>QSslError::InvalidNotBeforeField</tt></td><td align="center" valign="top"><tt>7</tt></td></tr> <tr><td valign="top"><tt>QSslError::InvalidNotAfterField</tt></td><td align="center" valign="top"><tt>8</tt></td></tr> <tr><td valign="top"><tt>QSslError::SelfSignedCertificate</tt></td><td align="center" valign="top"><tt>9</tt></td></tr> <tr><td valign="top"><tt>QSslError::SelfSignedCertificateInChain</tt></td><td align="center" valign="top"><tt>10</tt></td></tr> <tr><td valign="top"><tt>QSslError::UnableToGetLocalIssuerCertificate</tt></td><td align="center" valign="top"><tt>11</tt></td></tr> <tr><td valign="top"><tt>QSslError::UnableToVerifyFirstCertificate</tt></td><td align="center" valign="top"><tt>12</tt></td></tr> <tr><td valign="top"><tt>QSslError::CertificateRevoked</tt></td><td align="center" valign="top"><tt>13</tt></td></tr> <tr><td valign="top"><tt>QSslError::InvalidCaCertificate</tt></td><td align="center" valign="top"><tt>14</tt></td></tr> <tr><td valign="top"><tt>QSslError::PathLengthExceeded</tt></td><td align="center" valign="top"><tt>15</tt></td></tr> <tr><td valign="top"><tt>QSslError::InvalidPurpose</tt></td><td align="center" valign="top"><tt>16</tt></td></tr> <tr><td valign="top"><tt>QSslError::CertificateUntrusted</tt></td><td align="center" valign="top"><tt>17</tt></td></tr> <tr><td valign="top"><tt>QSslError::CertificateRejected</tt></td><td align="center" valign="top"><tt>18</tt></td></tr> <tr><td valign="top"><tt>QSslError::SubjectIssuerMismatch</tt></td><td align="center" valign="top"><tt>19</tt></td></tr> <tr><td valign="top"><tt>QSslError::AuthorityIssuerSerialNumberMismatch</tt></td><td align="center" valign="top"><tt>20</tt></td></tr> <tr><td valign="top"><tt>QSslError::NoPeerCertificate</tt></td><td align="center" valign="top"><tt>21</tt></td></tr> <tr><td valign="top"><tt>QSslError::HostNameMismatch</tt></td><td align="center" valign="top"><tt>22</tt></td></tr> <tr><td valign="top"><tt>QSslError::UnspecifiedError</tt></td><td align="center" valign="top"><tt>-1</tt></td></tr> <tr><td valign="top"><tt>QSslError::NoSslSupport</tt></td><td align="center" valign="top"><tt>23</tt></td></tr> </table></p> <p>See also <a href="qsslerror.html#errorString">QSslError::errorString</a>().</p> <hr /> <h2>Member Function Documentation</h2> <a name="//apple_ref/cpp/instm/QSslError/QSslError"></a> <h3 class="fn"><a name="QSslError"></a>QSslError::QSslError ()</h3> <p>Constructs a <a href="qsslerror.html">QSslError</a> object with no error and default certificate.</p> <h3 class="fn"><a name="QSslError-2"></a>QSslError::QSslError ( <a href="qsslerror.html#SslError-enum">SslError</a> <i>error</i> )</h3> <p>Constructs a <a href="qsslerror.html">QSslError</a> object. The argument specifies the <i>error</i> that occurred.</p> <h3 class="fn"><a name="QSslError-3"></a>QSslError::QSslError ( <a href="qsslerror.html#SslError-enum">SslError</a> <i>error</i>, const <a href="qsslcertificate.html">QSslCertificate</a> & <i>certificate</i> )</h3> <p>Constructs a <a href="qsslerror.html">QSslError</a> object. The two arguments specify the <i>error</i> that occurred, and which <i>certificate</i> the error relates to.</p> <p>See also <a href="qsslcertificate.html">QSslCertificate</a>.</p> <h3 class="fn"><a name="QSslError-4"></a>QSslError::QSslError ( const QSslError & <i>other</i> )</h3> <p>Constructs an identical copy of <i>other</i>.</p> <a name="//apple_ref/cpp/instm/QSslError/~QSslError"></a> <h3 class="fn"><a name="dtor.QSslError"></a>QSslError::~QSslError ()</h3> <p>Destroys the <a href="qsslerror.html">QSslError</a> object.</p> <a name="//apple_ref/cpp/instm/QSslError/certificate"></a> <h3 class="fn"><a name="certificate"></a><a href="qsslcertificate.html">QSslCertificate</a> QSslError::certificate () const</h3> <p>Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.</p> <p>See also <a href="qsslerror.html#error">error</a>() and <a href="qsslerror.html#errorString">errorString</a>().</p> <a name="//apple_ref/cpp/instm/QSslError/error"></a> <h3 class="fn"><a name="error"></a><a href="qsslerror.html#SslError-enum">SslError</a> QSslError::error () const</h3> <p>Returns the type of the error.</p> <p>See also <a href="qsslerror.html#errorString">errorString</a>() and <a href="qsslerror.html#certificate">certificate</a>().</p> <a name="//apple_ref/cpp/instm/QSslError/errorString"></a> <h3 class="fn"><a name="errorString"></a><a href="qstring.html">QString</a> QSslError::errorString () const</h3> <p>Returns a short localized human-readable description of the error.</p> <p>See also <a href="qsslerror.html#error">error</a>() and <a href="qsslerror.html#certificate">certificate</a>().</p> <a name="//apple_ref/cpp/instm/QSslError/operator!="></a> <h3 class="fn"><a name="operator-not-eq"></a>bool QSslError::operator!= ( const QSslError & <i>other</i> ) const</h3> <p>Returns true if this error is not equal to <i>other</i>; otherwise returns false.</p> <p>This function was introduced in Qt 4.4.</p> <a name="//apple_ref/cpp/instm/QSslError/operator="></a> <h3 class="fn"><a name="operator-eq"></a>QSslError & QSslError::operator= ( const QSslError & <i>other</i> )</h3> <p>Assigns the contents of <i>other</i> to this error.</p> <p>This function was introduced in Qt 4.4.</p> <a name="//apple_ref/cpp/instm/QSslError/operator=="></a> <h3 class="fn"><a name="operator-eq-eq"></a>bool QSslError::operator== ( const QSslError & <i>other</i> ) const</h3> <p>Returns true if this error is equal to <i>other</i>; otherwise returns false.</p> <p>This function was introduced in Qt 4.4.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>