secureswitools/swisistools/source/sisxlibrary/certchaindata.h
changeset 26 04d4a7bbc3e0
parent 0 ba25891c3a9e
equal deleted inserted replaced
25:98b66e4fb0be 26:04d4a7bbc3e0
    58 	/**
    58 	/**
    59 	 * Adds the write the package details into the stream.
    59 	 * Adds the write the package details into the stream.
    60 	 * @param aStream - Stream in which the package entries need to be written.
    60 	 * @param aStream - Stream in which the package entries need to be written.
    61 	 * @param aVerbose - If this option is set then detail description of pkg
    61 	 * @param aVerbose - If this option is set then detail description of pkg
    62 	 * 			will be written into the stream.
    62 	 * 			will be written into the stream.
       
    63 	 * @param aCompatible - Flag to notify AddPackageEntry that Dumpsis works in the original,compatible mode
       
    64 	 * or in the new way.
    63 	 */
    65 	 */
    64 	void AddPackageEntry(std::wostream& aStream, bool aVerbose) const;
    66 	void AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const;
    65 
    67 
    66 private:
    68 private:
    67 	CSISBlob		iCertificateData;
    69 	CSISBlob		iCertificateData;
    68 	};
    70 	};
    69 
    71 
    89 	{
    91 	{
    90 	return "Certificate Chain";
    92 	return "Certificate Chain";
    91 	}
    93 	}
    92 
    94 
    93 
    95 
    94 inline void CCertChainData::AddPackageEntry(std::wostream& aStream, bool aVerbose) const
    96 inline void CCertChainData::AddPackageEntry(std::wostream& aStream, bool aVerbose, bool aCompatible) const
    95 	{
    97 	{
    96 	if(aVerbose)
    98 	if(aVerbose)
    97 		{
    99 		{
    98 		aStream << L"; Certificate chain of " << iCertificateData.Size() << L" bytes" << std::endl;
   100 		aStream << L"; Certificate chain of " << iCertificateData.Size() << L" bytes" << std::endl;
    99 		}
   101 		}