Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
26 #ifndef __OCSPSUPPORT_H__
27 #define __OCSPSUPPORT_H__
30 // file duplicated from \\swi\\inc
34 /// The name of the OCSP Support Server
35 _LIT(KOcspSupportServerName,"!OCSPSUPPORTSERVER");
37 /// The name of the OCSP Support Executable
38 _LIT(KOcspSupportServerExeName,"OCSPSUPPORT");
40 /// The name of the OCSP Support Thread
41 _LIT(KOcspSupportServerThreadName,"OCSPSUPPORTSERVER-THREAD");
43 /// The current version of the OCSP Support Server
44 const TInt KOcspSupportServerVersionMajor=0;
45 const TInt KOcspSupportServerVersionMinor=1;
46 const TInt KOcspSupportServerVersionBuild=0;
49 * This class is a handle to the server, which uses HTTP to make the OCSP request
51 class ROcspHandler : public RSessionBase
53 static const TInt KDefaultBufferSize;
55 /// Connect to the server
58 /// Close the connection tothe server
61 /// Cancel the OCSP request
65 * Get the response data from the OCSP request. This is only valid when SendRequest
66 * has been called, and completed with no error. Ownership is transferred to client.
68 * @param aIapOut The IAP that was used in this request
69 * @return The body of the OCSP response
71 TPtrC8 GetResponseL(TUint32& aIapOut) const;
74 * Send an OCSP request, using the server.
75 * @param aUri The URI of the server to send the request to.
76 * @param aRequest The request data to send.
77 * @param aTimeout The request timeout value in milliseconds
78 * @param aIap The IAP to use for this OCSP request
79 * @param aStatus Request status. On completion contains an error code.
81 void SendRequest(const TDesC8& aUri, const TDesC8& aRequest, const TInt aTimeout, TUint32 aIap, TRequestStatus& aStatus);
84 /// Starts the server which carries out the requests
88 mutable HBufC8* iResultData;
93 #endif // #ifndef __OCSPSUPPORT_H__