os/security/cryptoservices/certificateandkeymgmt/x509/X509time.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200 (2014-06-10)
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 1998-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 the License "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: 
    15 * This file contains the definitions of X509 certificate objects.
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @internalTechnology
    23 */
    24 
    25 #ifndef __X509TIME_H__
    26 #define __X509TIME_H__
    27 
    28 #include <e32base.h>
    29 #include <e32std.h>
    30 #include <asn1dec.h>
    31 
    32 class TASN1DecX509Time
    33 
    34 	{
    35 public:
    36 	TASN1DecX509Time();			
    37 	TTime DecodeDERL(const TDesC8& aSource,TInt& aPos);
    38 	TTime DecodeDERL(const TASN1DecGeneric& aSource);	
    39 	TInt EncodeDER(TDes8& aDestination,TInt& aPos);
    40 	TTime& GetTimeL(void);
    41 	TInt LengthDERContent(void) const;
    42 private:
    43 	TTime DecodeContentsL(const TASN1DecGeneric& aSource);
    44 	};
    45 
    46 #endif