equal
deleted
inserted
replaced
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
59 const TInt KErrSSLUnsupportedKey = SSL_ERROR_BASE - 7; |
59 const TInt KErrSSLUnsupportedKey = SSL_ERROR_BASE - 7; |
60 |
60 |
61 /** An invalid record was received. */ |
61 /** An invalid record was received. */ |
62 const TInt KErrSSLBadRecordHeader = SSL_ERROR_BASE - 8; |
62 const TInt KErrSSLBadRecordHeader = SSL_ERROR_BASE - 8; |
63 |
63 |
64 ///////////////////////////////////////////////////// |
64 // |
65 // Handshake related errors |
65 // Handshake related errors |
66 |
66 |
67 /** Invalid protocol version. */ |
67 /** Invalid protocol version. */ |
68 const TInt KErrSSLBadProtocolVersion = SSL_ERROR_BASE - 9; |
68 const TInt KErrSSLBadProtocolVersion = SSL_ERROR_BASE - 9; |
69 |
69 |
123 const TInt KErrSSLDllLeave = SSL_ERROR_BASE - 27; |
123 const TInt KErrSSLDllLeave = SSL_ERROR_BASE - 27; |
124 |
124 |
125 /** A leave occured in the SSL.dll. */ |
125 /** A leave occured in the SSL.dll. */ |
126 const TInt KErrSSLNullTlsSession = SSL_ERROR_BASE - 28; |
126 const TInt KErrSSLNullTlsSession = SSL_ERROR_BASE - 28; |
127 |
127 |
128 ///////////////////////////////////////////////////// |
128 // |
129 // These error codes are equivalent to the standard TLS protocol Alert message |
129 // These error codes are equivalent to the standard TLS protocol Alert message |
130 // errors as defined in the TLS RFC. They include all those defined in SSL3.0 |
130 // errors as defined in the TLS RFC. They include all those defined in SSL3.0 |
131 // The end number of each error is the same as per the RFC, so by using the |
131 // The end number of each error is the same as per the RFC, so by using the |
132 // SSL_ERROR_BASE and SSL_ALERT_BASE defines, errors codes can be constructed |
132 // SSL_ERROR_BASE and SSL_ALERT_BASE defines, errors codes can be constructed |
133 // directly from the field within an alert message. |
133 // directly from the field within an alert message. |