Update contrib.
2 #define __CERTINFO_H__/*
3 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
5 * This component and the accompanying materials are made available
6 * under the terms of the License "Eclipse Public License v1.0"
7 * which accompanies this distribution, and is available
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
10 * Initial Contributors:
11 * Nokia Corporation - initial contribution.
21 #include "x509utils.h"
28 * The owner of a certificate.
31 enum TCertificateOwnerType
38 const TUint32 KMaxCertLabelLength = 64;
39 typedef TBuf<KMaxCertLabelLength> TCertLabel;
40 void EncodeHuman(REncodeWriteStream& aStream,const TCertLabel &aLabel);
41 void DecodeHuman(RDecodeReadStream& aStream,TCertLabel &aLabel);
46 CertInfo(bool aSwiMode);
48 void Encode(REncodeWriteStream &aWriteStream);
49 void Decode(RDecodeReadStream &aReadStream);
51 TUint32 CertSize() const;
52 void SetCertSize(TUint32 aSize);
54 const TCertLabel &Label() const;
57 TCertificateFormat CertificateFormat() const;
59 KeyIdentifierObject &SubjectKeyId();
60 const KeyIdentifierObject &SubjectKeyId() const;
61 KeyIdentifierObject &IssuerKeyId();
62 const KeyIdentifierObject &IssuerKeyId() const;
65 TUint32 OutputCertificateId() const;
66 void SetOutputCertificateId(TUint32 aId);
68 TCertificateOwnerType CertificateOwnerType() const;
71 EncDecObject<TUint8> iTmpCombinedDeletableAndFormat;
72 EncDecEnum<TUint8> iDeletable;
73 EncDecEnum<TUint8> iFormat; // TCertificateFormat
75 EncDecObject<TInt> iSize;
76 EncDecObject<TCertLabel> iLabel;
77 EncDecObject<TInt> iReadCertificateId; // Read from binary, written to human
78 EncDecObject<TInt> iWriteCertificateId; // Written to binary
79 EncDecEnum<TUint8> iCertificateOwnerType; // TCertificateOwnerType
80 EncDecObject<KeyIdentifierObject> iSubjectKeyId;
81 EncDecObject<KeyIdentifierObject> iIssuerKeyId;