javacommons/gcfprotocols/secureconnection/inc.linux/nativecertificatemanager.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Provides functionality for adding certificate ino cert store
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NATIVECERTIFICATEMANAGER_H
       
    20 #define NATIVECERTIFICATEMANAGER_H
       
    21 
       
    22 
       
    23 // CLASS DECLARATION
       
    24 
       
    25 /**
       
    26 *  Provides functionality for verifying a X509 certificate.
       
    27 */
       
    28 
       
    29 
       
    30 class NativeCertificateManager
       
    31 {
       
    32 public:
       
    33 
       
    34     /*
       
    35     * validateX509Certificate is called by nativesecureconnection when the ssl handshake happens.
       
    36     * In case of symbian when an X509 certificate is received, the fields are validated.
       
    37     * For linux currently there are not apis available for validation, so this function returns valid always.
       
    38     */
       
    39     static int validateX509Certificate(X509 *aCert)
       
    40     {
       
    41         return 0;
       
    42     }
       
    43 
       
    44 };
       
    45 
       
    46 
       
    47 #endif // NATIVECERTIFICATEMANAGER_H