equal
deleted
inserted
replaced
26 #include <RequestContext.h> |
26 #include <RequestContext.h> |
27 #include <ManagementContext.h> |
27 #include <ManagementContext.h> |
28 |
28 |
29 #include <e32std.h> |
29 #include <e32std.h> |
30 #include <ssl.h> |
30 #include <ssl.h> |
|
31 #include <x509cert.h> |
31 |
32 |
32 // CONSTANTS |
33 // CONSTANTS |
33 // MACROS |
34 // MACROS |
34 // DATA TYPES |
35 // DATA TYPES |
35 // FUNCTION PROTOTYPES |
36 // FUNCTION PROTOTYPES |
142 * @param aCertInfo Certificate info |
143 * @param aCertInfo Certificate info |
143 * @param aRole Role for certificate |
144 * @param aRole Role for certificate |
144 * @return Symbian error code |
145 * @return Symbian error code |
145 */ |
146 */ |
146 IMPORT_C TInt CertificateRole( TCertInfo& aCertInfo, TRole& aRole); |
147 IMPORT_C TInt CertificateRole( TCertInfo& aCertInfo, TRole& aRole); |
|
148 |
|
149 /** |
|
150 * AddServerCert sets the certificate received from |
|
151 * server and makes it as trusted. |
|
152 * @param aCert certificate recieved for storage |
|
153 * @return KErrNone Symbian error code |
|
154 */ |
|
155 IMPORT_C TInt AddServerCert(const CX509Certificate& aCert, TDes& aLabel); |
|
156 |
|
157 |
|
158 /** |
|
159 * RemoveServerCert removes the certificate stored |
|
160 * in the cert store. |
|
161 * @param aLabel label of certificate to be removed |
|
162 * @return KErrNone Symbian error code |
|
163 */ |
|
164 IMPORT_C TInt RemoveServerCert(const TDesC& aLabel = KNullDesC); |
147 }; |
165 }; |
148 |
166 |
149 /** |
167 /** |
150 * RPolicyRequest class to handle policy request sessions |
168 * RPolicyRequest class to handle policy request sessions |
151 */ |
169 */ |