epoc32/include/ssl_compatibility.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 // Copyright (c) 2005-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 //
    15 
    16 
    17 #ifndef __TCPSSLCOMPATIBILITY_H__
    18 #define __TCPSSLCOMPATIBILITY_H__
    19 
    20 // TcertInfo was originately part of certman.h
    21 
    22 /** 
    23 * Class to hold the DN (Distinguished Name) information. 
    24 * @publishedAll 
    25 * @deprecated  Deprecated. Do not Use.
    26 * @since v6.0 
    27 */
    28 class TDNInfo
    29 {
    30 public:
    31 	/** DN country string. */
    32 	TBuf8<4> iCountry;
    33 	/** DN organisation unit. */
    34 	TBuf8<64> iOrganizationUnit;
    35 	/** DN orginasation. */
    36 	TBuf8<64> iOrganization;
    37 	/** DN common name. */
    38 	TBuf8<64> iCommonName;
    39 	/** DN locality. */
    40 	TBuf8<128> iLocality;
    41 };
    42 
    43 /**
    44 * Class to hold the certificate information. 
    45 * @since v6.0 
    46 * @publishedAll
    47 * @deprecated  Deprecated. Do not Use.
    48 */
    49 class TCertInfo
    50 {
    51 public:
    52 	/** Certificate's fingerprint. */
    53 	TBuf8<20> iFingerprint;
    54 	/** Certificate's serial number. */
    55 	TBuf8<32> iSerialNo;
    56 	/** Certificate's public key. */
    57 	TBuf8<300> iPublicKey;
    58 	/** Certificate's version. */
    59 	TInt iVersionNo;
    60 	/** Certificate's Public Key Algorithm, using the TPublicKeyAlg enum. */
    61 	/*TPublicKeyAlg*/TInt iPkAlg;
    62 	/** Certificate's start validity date. */
    63 	TTime iStartValDate;
    64 	/** Certificate's end validity date. */
    65 	TTime iEndValDate;
    66 	/** Subject DN Information. */
    67 	TDNInfo iSubjectDNInfo;
    68 	/** Issuer DN Information. */
    69 	TDNInfo iIssuerDNInfo;
    70 	/** DNS name. */
    71 	TBuf<128> iDNSName;
    72 	TInt iDigAlg;              
    73 private:
    74 	TBuf8<246> iSpare;
    75 
    76 };
    77 
    78 #endif // __TCPSSLCOMPATIBILITY_H__