networksecurity/tls/inc/SSL.H
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // SSL exported functions. 
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20 */
       
    21 
       
    22 #ifndef __TCPSSL_H__
       
    23 #define __TCPSSL_H__
       
    24 
       
    25 #include <in_sock.h>
       
    26 #include <sslerr.h>
       
    27 
       
    28 #include <ssl_compatibility.h>
       
    29 
       
    30 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    31 #include <ssl_internal.h>
       
    32 #endif
       
    33 
       
    34 /**
       
    35  * @publishedAll
       
    36  * @released
       
    37  *
       
    38  * Enable the use of TLS_RSA_WITH_NULL_MD5 and TLS_RSA_WITH_NULL_SHA ciphersuites
       
    39  * These ciphersuites use NULL encryption and therefore offer no protection against evesdropping.
       
    40  * Server authentication (and client, if a client certificate is used) is performed and data integrity
       
    41  * is still checked.
       
    42  *
       
    43  * (Ciphersuite TLS_NULL_WITH_NULL_NULL is never supported).
       
    44  *
       
    45  * An argument of 0 disables the ciphersuites and non-zero enables them.
       
    46 */
       
    47 const TUint KSoEnableNullCiphers = 0x408;				//< Enable/disable NULL ciphers
       
    48 
       
    49 /**
       
    50  * @publishedAll
       
    51  * @released
       
    52  *
       
    53  * Set the PSK Key Exchange configuration. Argument is a TPckgBuf<MSoPskKeyHandler *>.
       
    54  * The structure and buffers will be copied.
       
    55  *
       
    56  * @see MSoPskKeyHandler
       
    57 */
       
    58 const TUint KSoPskConfig = 0x409;				//< Set PSK key exchange configuration
       
    59 
       
    60 /**
       
    61  * @publishedAll
       
    62  * @released
       
    63  *
       
    64  * Set the list of server names to be passed to the server in the ClientHello as described in RFC3546 "Server Name Indication".
       
    65  * The argument should be a TPckgBuf<CDesC8Array *>.
       
    66 */
       
    67 const TUint KSoServerNameIndication = 0x40a;				//< Set Server Name Indication
       
    68 
       
    69 #endif