1 /* |
|
2 * Copyright (c) 2001-2010 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: Data type for EAP-settings configuration on Symbian. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 44 % |
|
20 */ |
|
21 |
|
22 #include <e32debug.h> |
|
23 #include <EapSettings.h> |
|
24 |
|
25 #include "EapTraceSymbian.h" |
|
26 #include "eap_am_export.h" |
|
27 |
|
28 //------------------------------------------------------------------------------------- |
|
29 |
|
30 EAP_FUNC_EXPORT EapCertificateEntry::EapCertificateEntry() |
|
31 : iCertType(ENone) |
|
32 , iSubjectNamePresent(EFalse) |
|
33 , iIssuerNamePresent(EFalse) |
|
34 , iSerialNumberPresent(EFalse) |
|
35 , iThumbprintPresent(EFalse) |
|
36 , iLabelPresent(EFalse) |
|
37 , iPrimaryNamePresent(EFalse) |
|
38 , iSecondaryNamePresent(EFalse) |
|
39 , iIsEnabledPresent(EFalse) |
|
40 , iSubjectKeyIdPresent(EFalse) |
|
41 , iIsValid(EFalse) |
|
42 { |
|
43 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::EapCertificateEntry(): this=0x%08x"), |
|
44 this)); |
|
45 EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: EapCertificateEntry::EapCertificateEntry()")); |
|
46 } |
|
47 |
|
48 //------------------------------------------------------------------------------------- |
|
49 |
|
50 EAP_FUNC_EXPORT EapCertificateEntry::~EapCertificateEntry() |
|
51 { |
|
52 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::~EapCertificateEntry(): this=0x%08x"), |
|
53 this)); |
|
54 EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: EapCertificateEntry::~EapCertificateEntry()")); |
|
55 } |
|
56 |
|
57 //------------------------------------------------------------------------------------- |
|
58 |
|
59 EAP_FUNC_EXPORT void EapCertificateEntry::trace() const |
|
60 { |
|
61 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iCertType=%d"), |
|
62 iCertType)); |
|
63 |
|
64 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iSubjectNamePresent=%d"), |
|
65 iSubjectNamePresent)); |
|
66 if (iSubjectNamePresent) |
|
67 { |
|
68 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EapCertificateEntry::trace(): iSubjectName", |
|
69 iSubjectName.Ptr(), |
|
70 iSubjectName.Size())); |
|
71 } |
|
72 |
|
73 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iIssuerNamePresent=%d"), |
|
74 iIssuerNamePresent)); |
|
75 if (iIssuerNamePresent) |
|
76 { |
|
77 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EapCertificateEntry::trace(): iIssuerName", |
|
78 iIssuerName.Ptr(), |
|
79 iIssuerName.Size())); |
|
80 } |
|
81 |
|
82 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iSerialNumberPresent=%d"), |
|
83 iSerialNumberPresent)); |
|
84 if (iSerialNumberPresent) |
|
85 { |
|
86 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EapCertificateEntry::trace(): iSerialNumber", |
|
87 iSerialNumber.Ptr(), |
|
88 iSerialNumber.Size())); |
|
89 } |
|
90 |
|
91 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iThumbprintPresent=%d"), |
|
92 iThumbprintPresent)); |
|
93 if (iThumbprintPresent) |
|
94 { |
|
95 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EapCertificateEntry::trace(): iThumbprint", |
|
96 iThumbprint.Ptr(), |
|
97 iThumbprint.Size())); |
|
98 } |
|
99 |
|
100 |
|
101 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iLabelPresent=%d"), |
|
102 iLabelPresent)); |
|
103 if (iLabelPresent) |
|
104 { |
|
105 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EapCertificateEntry::trace(): iLabel", |
|
106 iLabel.Ptr(), |
|
107 iLabel.Size())); |
|
108 } |
|
109 |
|
110 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iPrimaryNamePresent=%d"), |
|
111 iPrimaryNamePresent)); |
|
112 if (iPrimaryNamePresent) |
|
113 { |
|
114 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EapCertificateEntry::trace(): iPrimaryName", |
|
115 iPrimaryName.Ptr(), |
|
116 iPrimaryName.Size())); |
|
117 } |
|
118 |
|
119 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iSecondaryNamePresent=%d"), |
|
120 iSecondaryNamePresent)); |
|
121 if (iSecondaryNamePresent) |
|
122 { |
|
123 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EapCertificateEntry::trace(): iSecondaryName", |
|
124 iSecondaryName.Ptr(), |
|
125 iSecondaryName.Size())); |
|
126 } |
|
127 |
|
128 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iIsEnabledPresent=%d"), |
|
129 iIsEnabledPresent)); |
|
130 if (iIsEnabledPresent) |
|
131 { |
|
132 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iIsEnabled=%d"), |
|
133 iIsEnabled)); |
|
134 } |
|
135 |
|
136 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iSubjectKeyIdPresent=%d"), |
|
137 iSubjectKeyIdPresent)); |
|
138 if (iSubjectKeyIdPresent) |
|
139 { |
|
140 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EapCertificateEntry::trace(): iSubjectKeyId", |
|
141 iSubjectKeyId.Ptr(), |
|
142 iSubjectKeyId.Size())); |
|
143 } |
|
144 |
|
145 EAP_TRACE_DEBUG_SYMBIAN((_L("EapCertificateEntry::trace(): iIsValid=%d"), |
|
146 iIsValid)); |
|
147 } |
|
148 |
|
149 //------------------------------------------------------------------------------------- |
|
150 |
|
151 EAP_FUNC_EXPORT EapCertificateEntry * EapCertificateEntry::Copy() |
|
152 { |
|
153 EapCertificateEntry * const entry = new EapCertificateEntry; |
|
154 if (entry == 0) |
|
155 { |
|
156 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::Copy(): No memory.\n"))); |
|
157 return 0; |
|
158 } |
|
159 |
|
160 *entry = *this; |
|
161 |
|
162 if (entry->iIsValid == EFalse) |
|
163 { |
|
164 delete entry; |
|
165 |
|
166 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::Copy(): No memory.\n"))); |
|
167 return 0; |
|
168 } |
|
169 |
|
170 return entry; |
|
171 } |
|
172 |
|
173 //------------------------------------------------------------------------------------- |
|
174 |
|
175 EAP_FUNC_EXPORT EapCertificateEntry &EapCertificateEntry::operator = (const EapCertificateEntry &right_type_value) |
|
176 { |
|
177 if (this == &right_type_value) |
|
178 { |
|
179 return *this; |
|
180 } |
|
181 |
|
182 iIsValid = EFalse; |
|
183 |
|
184 |
|
185 SetCertType(right_type_value.GetCertType()); |
|
186 |
|
187 if (right_type_value.GetSubjectNamePresent()) |
|
188 { |
|
189 if (SetSubjectName(*right_type_value.GetSubjectName()) != KErrNone) |
|
190 { |
|
191 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetSubjectName(): No memory.\n"))); |
|
192 return *this; |
|
193 } |
|
194 } |
|
195 |
|
196 if (right_type_value.GetIssuerNamePresent()) |
|
197 { |
|
198 if (SetIssuerName(*right_type_value.GetIssuerName()) != KErrNone) |
|
199 { |
|
200 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetIssuerName(): No memory.\n"))); |
|
201 return *this; |
|
202 } |
|
203 } |
|
204 |
|
205 if (right_type_value.GetSerialNumberPresent()) |
|
206 { |
|
207 if (SetSerialNumber(*right_type_value.GetSerialNumber()) != KErrNone) |
|
208 { |
|
209 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetSerialNumber(): No memory.\n"))); |
|
210 return *this; |
|
211 } |
|
212 } |
|
213 |
|
214 if (right_type_value.GetThumbprintPresent()) |
|
215 { |
|
216 if (SetThumbprint(*right_type_value.GetThumbprint()) != KErrNone) |
|
217 { |
|
218 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetThumbprint(): No memory.\n"))); |
|
219 return *this; |
|
220 } |
|
221 } |
|
222 |
|
223 |
|
224 if (right_type_value.GetLabelPresent()) |
|
225 { |
|
226 if (SetLabel(*right_type_value.GetLabel()) != KErrNone) |
|
227 { |
|
228 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetLabel(): No memory.\n"))); |
|
229 return *this; |
|
230 } |
|
231 } |
|
232 |
|
233 if (right_type_value.GetPrimaryNamePresent()) |
|
234 { |
|
235 if (SetPrimaryName(*right_type_value.GetPrimaryName()) != KErrNone) |
|
236 { |
|
237 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetPrimaryName(): No memory.\n"))); |
|
238 return *this; |
|
239 } |
|
240 } |
|
241 |
|
242 if (right_type_value.GetSecondaryNamePresent()) |
|
243 { |
|
244 if (SetSecondaryName(*right_type_value.GetSecondaryName()) != KErrNone) |
|
245 { |
|
246 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetSecondaryName(): No memory.\n"))); |
|
247 return *this; |
|
248 } |
|
249 } |
|
250 |
|
251 if (right_type_value.GetIsEnabledPresent()) |
|
252 { |
|
253 if (SetIsEnabled(right_type_value.GetIsEnabled()) != KErrNone) |
|
254 { |
|
255 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetIsEnabled(): No memory.\n"))); |
|
256 return *this; |
|
257 } |
|
258 } |
|
259 |
|
260 if (right_type_value.GetSubjectKeyIdPresent()) |
|
261 { |
|
262 if (SetSubjectKeyId(right_type_value.GetSubjectKeyId()) != KErrNone) |
|
263 { |
|
264 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::operator = (): SetSubjectKeyId(): No memory.\n"))); |
|
265 return *this; |
|
266 } |
|
267 } |
|
268 |
|
269 iIsValid = ETrue; |
|
270 |
|
271 return *this; |
|
272 } |
|
273 |
|
274 //------------------------------------------------------------------------------------- |
|
275 |
|
276 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetSubjectNamePresent() const |
|
277 { |
|
278 return iSubjectNamePresent; |
|
279 } |
|
280 |
|
281 //------------------------------------------------------------------------------------- |
|
282 |
|
283 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetIssuerNamePresent() const |
|
284 { |
|
285 return iIssuerNamePresent; |
|
286 } |
|
287 |
|
288 //------------------------------------------------------------------------------------- |
|
289 |
|
290 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetSerialNumberPresent() const |
|
291 { |
|
292 return iSerialNumberPresent; |
|
293 } |
|
294 |
|
295 //------------------------------------------------------------------------------------- |
|
296 |
|
297 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetThumbprintPresent() const |
|
298 { |
|
299 return iThumbprintPresent; |
|
300 } |
|
301 |
|
302 //------------------------------------------------------------------------------------- |
|
303 |
|
304 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetLabelPresent() const |
|
305 { |
|
306 return iLabelPresent; |
|
307 } |
|
308 |
|
309 //------------------------------------------------------------------------------------- |
|
310 |
|
311 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetPrimaryNamePresent() const |
|
312 { |
|
313 return iPrimaryNamePresent; |
|
314 } |
|
315 |
|
316 //------------------------------------------------------------------------------------- |
|
317 |
|
318 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetSecondaryNamePresent() const |
|
319 { |
|
320 return iSecondaryNamePresent; |
|
321 } |
|
322 |
|
323 //------------------------------------------------------------------------------------- |
|
324 |
|
325 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetIsEnabledPresent() const |
|
326 { |
|
327 return iIsEnabledPresent; |
|
328 } |
|
329 |
|
330 //------------------------------------------------------------------------------------- |
|
331 |
|
332 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetSubjectKeyIdPresent() const |
|
333 { |
|
334 return iSubjectKeyIdPresent; |
|
335 } |
|
336 |
|
337 //------------------------------------------------------------------------------------- |
|
338 |
|
339 EAP_FUNC_EXPORT void EapCertificateEntry::SetSubjectNamePresent() |
|
340 { |
|
341 iSubjectNamePresent = ETrue; |
|
342 } |
|
343 |
|
344 //------------------------------------------------------------------------------------- |
|
345 |
|
346 EAP_FUNC_EXPORT void EapCertificateEntry::SetIssuerNamePresent() |
|
347 { |
|
348 iIssuerNamePresent = ETrue; |
|
349 } |
|
350 |
|
351 //------------------------------------------------------------------------------------- |
|
352 |
|
353 EAP_FUNC_EXPORT void EapCertificateEntry::SetSerialNumberPresent() |
|
354 { |
|
355 iSerialNumberPresent = ETrue; |
|
356 } |
|
357 |
|
358 //------------------------------------------------------------------------------------- |
|
359 |
|
360 EAP_FUNC_EXPORT void EapCertificateEntry::SetThumbprintPresent() |
|
361 { |
|
362 iThumbprintPresent = ETrue; |
|
363 } |
|
364 |
|
365 //------------------------------------------------------------------------------------- |
|
366 |
|
367 EAP_FUNC_EXPORT void EapCertificateEntry::SetLabelPresent() |
|
368 { |
|
369 iLabelPresent = ETrue; |
|
370 } |
|
371 |
|
372 //------------------------------------------------------------------------------------- |
|
373 |
|
374 EAP_FUNC_EXPORT void EapCertificateEntry::SetPrimaryNamePresent() |
|
375 { |
|
376 iPrimaryNamePresent = ETrue; |
|
377 } |
|
378 |
|
379 //------------------------------------------------------------------------------------- |
|
380 |
|
381 EAP_FUNC_EXPORT void EapCertificateEntry::SetSecondaryNamePresent() |
|
382 { |
|
383 iSecondaryNamePresent = ETrue; |
|
384 } |
|
385 |
|
386 //------------------------------------------------------------------------------------- |
|
387 |
|
388 EAP_FUNC_EXPORT void EapCertificateEntry::SetIsEnabledPresent() |
|
389 { |
|
390 iIsEnabledPresent = ETrue; |
|
391 } |
|
392 |
|
393 //------------------------------------------------------------------------------------- |
|
394 |
|
395 EAP_FUNC_EXPORT void EapCertificateEntry::SetSubjectKeyIdPresent() |
|
396 { |
|
397 iSubjectKeyIdPresent = ETrue; |
|
398 } |
|
399 |
|
400 //------------------------------------------------------------------------------------- |
|
401 |
|
402 EAP_FUNC_EXPORT EapCertificateEntry::TCertType EapCertificateEntry::GetCertType() const |
|
403 { |
|
404 return iCertType; |
|
405 } |
|
406 |
|
407 //------------------------------------------------------------------------------------- |
|
408 |
|
409 EAP_FUNC_EXPORT const TDes * EapCertificateEntry::GetSubjectName() const |
|
410 { |
|
411 return &iSubjectName; |
|
412 } |
|
413 |
|
414 //------------------------------------------------------------------------------------- |
|
415 |
|
416 EAP_FUNC_EXPORT const TDes * EapCertificateEntry::GetIssuerName() const |
|
417 { |
|
418 return &iIssuerName; |
|
419 } |
|
420 |
|
421 //------------------------------------------------------------------------------------- |
|
422 |
|
423 EAP_FUNC_EXPORT const TDes * EapCertificateEntry::GetSerialNumber() const |
|
424 { |
|
425 return &iSerialNumber; |
|
426 } |
|
427 |
|
428 //------------------------------------------------------------------------------------- |
|
429 |
|
430 EAP_FUNC_EXPORT const TDes * EapCertificateEntry::GetThumbprint() const |
|
431 { |
|
432 return &iThumbprint; |
|
433 } |
|
434 |
|
435 //------------------------------------------------------------------------------------- |
|
436 |
|
437 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetCertType(const TCertType & aType) |
|
438 { |
|
439 iCertType = aType; |
|
440 |
|
441 return KErrNone; |
|
442 } |
|
443 |
|
444 //------------------------------------------------------------------------------------- |
|
445 |
|
446 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetSubjectName(const TBuf<KGeneralStringMaxLength> & aSubjectName) |
|
447 { |
|
448 iSubjectName.Copy(aSubjectName); |
|
449 if (iSubjectName.Length() != aSubjectName.Length()) |
|
450 { |
|
451 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::SetSubjectName(): iSubjectName.Copy(): No memory.\n"))); |
|
452 return KErrNoMemory; |
|
453 } |
|
454 |
|
455 iSubjectNamePresent = ETrue; |
|
456 |
|
457 return KErrNone; |
|
458 } |
|
459 |
|
460 //------------------------------------------------------------------------------------- |
|
461 |
|
462 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetIssuerName(const TBuf<KGeneralStringMaxLength> & aIssuerName) |
|
463 { |
|
464 iIssuerName.Copy(aIssuerName); |
|
465 if (iIssuerName.Length() != aIssuerName.Length()) |
|
466 { |
|
467 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::SetIssuerName(): iIssuerName.Copy(): No memory.\n"))); |
|
468 return KErrNoMemory; |
|
469 } |
|
470 |
|
471 iIssuerNamePresent = ETrue; |
|
472 |
|
473 return KErrNone; |
|
474 } |
|
475 |
|
476 //------------------------------------------------------------------------------------- |
|
477 |
|
478 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetSerialNumber(const TBuf<KGeneralStringMaxLength> & aSerialNumber) |
|
479 { |
|
480 iSerialNumber.Copy(aSerialNumber); |
|
481 if (iSerialNumber.Length() != aSerialNumber.Length()) |
|
482 { |
|
483 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::SetSerialNumber(): iSerialNumber.Copy(): No memory.\n"))); |
|
484 return KErrNoMemory; |
|
485 } |
|
486 |
|
487 iSerialNumberPresent = ETrue; |
|
488 |
|
489 return KErrNone; |
|
490 } |
|
491 |
|
492 //------------------------------------------------------------------------------------- |
|
493 |
|
494 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetThumbprint(const TBuf<KThumbprintMaxLength> & aThumbprint) |
|
495 { |
|
496 iThumbprint.Copy(aThumbprint); |
|
497 if (iThumbprint.Length() != aThumbprint.Length()) |
|
498 { |
|
499 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::SetThumbprint(): iThumbprint.Copy(): No memory.\n"))); |
|
500 return KErrNoMemory; |
|
501 } |
|
502 |
|
503 iThumbprintPresent = ETrue; |
|
504 |
|
505 return KErrNone; |
|
506 } |
|
507 |
|
508 //------------------------------------------------------------------------------------- |
|
509 |
|
510 EAP_FUNC_EXPORT const TDes * EapCertificateEntry::GetLabel() const |
|
511 { |
|
512 return &iLabel; |
|
513 } |
|
514 |
|
515 //------------------------------------------------------------------------------------- |
|
516 |
|
517 EAP_FUNC_EXPORT const TKeyIdentifier & EapCertificateEntry::GetSubjectKeyId() const |
|
518 { |
|
519 return iSubjectKeyId; |
|
520 } |
|
521 |
|
522 //------------------------------------------------------------------------------------- |
|
523 |
|
524 EAP_FUNC_EXPORT const TDes * EapCertificateEntry::GetPrimaryName() const |
|
525 { |
|
526 return &iPrimaryName; |
|
527 } |
|
528 |
|
529 //------------------------------------------------------------------------------------- |
|
530 |
|
531 EAP_FUNC_EXPORT const TDes * EapCertificateEntry::GetSecondaryName() const |
|
532 { |
|
533 return &iSecondaryName; |
|
534 } |
|
535 |
|
536 //------------------------------------------------------------------------------------- |
|
537 |
|
538 EAP_FUNC_EXPORT TDes * EapCertificateEntry::GetLabelWritable() |
|
539 { |
|
540 return &iLabel; |
|
541 } |
|
542 |
|
543 //------------------------------------------------------------------------------------- |
|
544 |
|
545 EAP_FUNC_EXPORT TKeyIdentifier * EapCertificateEntry::GetSubjectKeyIdWritable() |
|
546 { |
|
547 return &iSubjectKeyId; |
|
548 } |
|
549 |
|
550 //------------------------------------------------------------------------------------- |
|
551 |
|
552 EAP_FUNC_EXPORT TDes * EapCertificateEntry::GetPrimaryNameWritable() |
|
553 { |
|
554 return &iPrimaryName; |
|
555 } |
|
556 |
|
557 //------------------------------------------------------------------------------------- |
|
558 |
|
559 EAP_FUNC_EXPORT TDes * EapCertificateEntry::GetSecondaryNameWritable() |
|
560 { |
|
561 return &iSecondaryName; |
|
562 } |
|
563 |
|
564 //------------------------------------------------------------------------------------- |
|
565 |
|
566 EAP_FUNC_EXPORT TDes * EapCertificateEntry::GetSubjectNameWritable() |
|
567 { |
|
568 return &iSubjectName; |
|
569 } |
|
570 |
|
571 //------------------------------------------------------------------------------------- |
|
572 |
|
573 EAP_FUNC_EXPORT TDes * EapCertificateEntry::GetIssuerNameWritable() |
|
574 { |
|
575 return &iIssuerName; |
|
576 } |
|
577 |
|
578 //------------------------------------------------------------------------------------- |
|
579 |
|
580 EAP_FUNC_EXPORT TDes * EapCertificateEntry::GetSerialNumberWritable() |
|
581 { |
|
582 return &iSerialNumber; |
|
583 } |
|
584 |
|
585 //------------------------------------------------------------------------------------- |
|
586 |
|
587 EAP_FUNC_EXPORT TDes * EapCertificateEntry::GetThumbprintWritable() |
|
588 { |
|
589 return &iThumbprint; |
|
590 } |
|
591 |
|
592 //------------------------------------------------------------------------------------- |
|
593 |
|
594 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetIsEnabled() const |
|
595 { |
|
596 return iIsEnabled; |
|
597 } |
|
598 |
|
599 //------------------------------------------------------------------------------------- |
|
600 |
|
601 EAP_FUNC_EXPORT TBool EapCertificateEntry::GetIsValid() const |
|
602 { |
|
603 return iIsValid; |
|
604 } |
|
605 |
|
606 //------------------------------------------------------------------------------------- |
|
607 |
|
608 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetLabel(const TCertLabel & aLabel) |
|
609 { |
|
610 iLabel.Copy(aLabel); |
|
611 if (iLabel.Length() != aLabel.Length()) |
|
612 { |
|
613 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::SetLabel(): iLabel.Copy(): No memory.\n"))); |
|
614 return KErrNoMemory; |
|
615 } |
|
616 |
|
617 iLabelPresent = ETrue; |
|
618 |
|
619 return KErrNone; |
|
620 } |
|
621 |
|
622 //------------------------------------------------------------------------------------- |
|
623 |
|
624 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetPrimaryName(const TBuf<KMaxCertNameLength> & aPrimaryName) |
|
625 { |
|
626 iPrimaryName.Copy(aPrimaryName); |
|
627 if (iPrimaryName.Length() != aPrimaryName.Length()) |
|
628 { |
|
629 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::SetPrimaryName(): iPrimaryName.Copy(): No memory.\n"))); |
|
630 return KErrNoMemory; |
|
631 } |
|
632 |
|
633 iPrimaryNamePresent = ETrue; |
|
634 |
|
635 return KErrNone; |
|
636 } |
|
637 |
|
638 //------------------------------------------------------------------------------------- |
|
639 |
|
640 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetSecondaryName(const TBuf<KMaxCertNameLength> & aSecondaryName) |
|
641 { |
|
642 iSecondaryName.Copy(aSecondaryName); |
|
643 if (iSecondaryName.Length() != aSecondaryName.Length()) |
|
644 { |
|
645 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::SetSecondaryName(): iSecondaryName.Copy(): No memory.\n"))); |
|
646 return KErrNoMemory; |
|
647 } |
|
648 |
|
649 iSecondaryNamePresent = ETrue; |
|
650 |
|
651 return KErrNone; |
|
652 } |
|
653 |
|
654 //------------------------------------------------------------------------------------- |
|
655 |
|
656 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetSubjectKeyId(const TKeyIdentifier & aSubjectKeyId) |
|
657 { |
|
658 iSubjectKeyId.Copy(aSubjectKeyId); |
|
659 if (iSubjectKeyId.Length() != aSubjectKeyId.Length()) |
|
660 { |
|
661 EAP_TRACE_DEBUG_SYMBIAN((_L("ERROR: EapCertificateEntry::SetSubjectKeyId(): iSubjectKeyId.Copy(): No memory.\n"))); |
|
662 return KErrNoMemory; |
|
663 } |
|
664 |
|
665 iSubjectKeyIdPresent = ETrue; |
|
666 |
|
667 return KErrNone; |
|
668 } |
|
669 |
|
670 //------------------------------------------------------------------------------------- |
|
671 |
|
672 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetIsEnabled(const TBool aIsEnabled) |
|
673 { |
|
674 iIsEnabled = aIsEnabled; |
|
675 iIsEnabledPresent = ETrue; |
|
676 |
|
677 return KErrNone; |
|
678 } |
|
679 |
|
680 //------------------------------------------------------------------------------------- |
|
681 |
|
682 EAP_FUNC_EXPORT TInt EapCertificateEntry::SetIsValid(const TBool aIsValid) |
|
683 { |
|
684 iIsValid = aIsValid; |
|
685 |
|
686 return KErrNone; |
|
687 } |
|
688 |
|
689 //------------------------------------------------------------------------------------- |
|
690 //------------------------------------------------------------------------------------- |
|
691 //------------------------------------------------------------------------------------- |
|
692 |
|
693 EAP_FUNC_EXPORT EAPSettings::EAPSettings() |
|
694 : iEAPExpandedType(*(EapExpandedTypeNone.GetType())) |
|
695 , iUseAutomaticCACertificatePresent(EFalse) |
|
696 , iUseAutomaticCACertificate(EFalse) |
|
697 , iUseAutomaticUsernamePresent(EFalse) |
|
698 , iUseAutomaticUsername(EFalse) |
|
699 , iUseAutomaticRealmPresent(EFalse) |
|
700 , iUsernamePresent(EFalse) |
|
701 , iPasswordExistPresent(EFalse) |
|
702 , iPasswordExist(EFalse) |
|
703 , iPasswordPresent(EFalse) |
|
704 , iRealmPresent(EFalse) |
|
705 , iUsePseudonymsPresent(EFalse) |
|
706 , iUsePseudonyms(EFalse) |
|
707 , iVerifyServerRealmPresent(EFalse) |
|
708 , iVerifyServerRealm(EFalse) |
|
709 , iRequireClientAuthenticationPresent(EFalse) |
|
710 , iRequireClientAuthentication(EFalse) |
|
711 , iSessionValidityTimePresent(EFalse) |
|
712 , iSessionValidityTime(0ul) |
|
713 , iCipherSuitesPresent(EFalse) |
|
714 , iCipherSuites(1) |
|
715 , iPEAPVersionsPresent(EFalse) |
|
716 , iPEAPv0Allowed(EFalse) |
|
717 , iPEAPv1Allowed(EFalse) |
|
718 , iPEAPv2Allowed(EFalse) |
|
719 , iCertificatesPresent(EFalse) |
|
720 , iCertificates(1) |
|
721 , iEnabledEncapsulatedEAPExpandedTypesPresent(EFalse) |
|
722 , iEnabledEncapsulatedEAPExpandedTypes(1) |
|
723 , iDisabledEncapsulatedEAPExpandedTypesPresent(EFalse) |
|
724 , iDisabledEncapsulatedEAPExpandedTypes(1) |
|
725 , iAuthProvModeAllowedPresent(EFalse) |
|
726 , iAuthProvModeAllowed(EFalse) |
|
727 , iUnauthProvModeAllowedPresent(EFalse) |
|
728 , iUnauthProvModeAllowed(EFalse) |
|
729 , iPACGroupReferencePresent(EFalse) |
|
730 , iWarnADHPNoPACPresent(EFalse) |
|
731 , iWarnADHPNoPAC(EFalse) |
|
732 , iWarnADHPNoMatchingPACPresent(EFalse) |
|
733 , iWarnADHPNoMatchingPAC(EFalse) |
|
734 , iWarnNotDefaultServerPresent(EFalse) |
|
735 , iWarnNotDefaultServer(EFalse) |
|
736 , iShowPassWordPromptPresent(EFalse) |
|
737 , iShowPassWordPrompt(EFalse) |
|
738 , iUseIdentityPrivacyPresent(EFalse) |
|
739 , iUseIdentityPrivacy(EFalse) |
|
740 { |
|
741 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::EAPSettings(): this=0x%08x"), |
|
742 this)); |
|
743 EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: EAPSettings::EAPSettings()")); |
|
744 } |
|
745 |
|
746 //------------------------------------------------------------------------------------- |
|
747 |
|
748 EAP_FUNC_EXPORT EAPSettings::~EAPSettings() |
|
749 { |
|
750 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::~EAPSettings(): this=0x%08x"), |
|
751 this)); |
|
752 EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: EAPSettings::~EAPSettings()")); |
|
753 |
|
754 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::~EAPSettings(): calls iCipherSuites.Close()"))); |
|
755 iCipherSuites.Close(); // The Close() function must be called before RArray object is destroyed. |
|
756 |
|
757 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::~EAPSettings(): calls iCertificates.ResetAndDestroy()"))); |
|
758 iCertificates.ResetAndDestroy(); // ResetAndDestroy() function must be called because the objects represented by the array need to be deleted before the array object is destroyed. |
|
759 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::~EAPSettings(): calls iCertificates.Close()"))); |
|
760 iCertificates.Close(); // The Close() function must be called before RPointerArray object is destroyed. |
|
761 |
|
762 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::~EAPSettings(): calls iEnabledEncapsulatedEAPExpandedTypes.Close()"))); |
|
763 iEnabledEncapsulatedEAPExpandedTypes.Close(); // The Close() function must be called before RArray object is destroyed. |
|
764 |
|
765 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::~EAPSettings(): calls iDisabledEncapsulatedEAPExpandedTypes.Close()"))); |
|
766 iDisabledEncapsulatedEAPExpandedTypes.Close(); // The Close() function must be called before RArray object is destroyed. |
|
767 } |
|
768 |
|
769 //------------------------------------------------------------------------------------- |
|
770 |
|
771 EAP_FUNC_EXPORT void EAPSettings::trace() const |
|
772 { |
|
773 TUint ind = 0ul; |
|
774 |
|
775 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iEAPExpandedType=0xfe%06x%08x"), |
|
776 iEAPExpandedType.GetVendorId(), |
|
777 iEAPExpandedType.GetVendorType())); |
|
778 |
|
779 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUseAutomaticCACertificatePresent=%d"), |
|
780 iUseAutomaticCACertificatePresent)); |
|
781 if (iUseAutomaticCACertificatePresent) |
|
782 { |
|
783 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUseAutomaticCACertificate=%d"), |
|
784 iUseAutomaticCACertificate) ); |
|
785 } |
|
786 |
|
787 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUseAutomaticUsernamePresent=%d"), |
|
788 iUseAutomaticUsernamePresent)); |
|
789 if (iUseAutomaticUsernamePresent) |
|
790 { |
|
791 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUseAutomaticUsername=%d"), |
|
792 iUseAutomaticUsername) ); |
|
793 } |
|
794 |
|
795 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUseAutomaticRealmPresent=%d"), |
|
796 iUseAutomaticRealmPresent)); |
|
797 if (iUseAutomaticRealmPresent) |
|
798 { |
|
799 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUseAutomaticRealm=%d"), |
|
800 iUseAutomaticRealm) ); |
|
801 } |
|
802 |
|
803 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUsernamePresent=%d"), |
|
804 iUsernamePresent)); |
|
805 if (iUsernamePresent) |
|
806 { |
|
807 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EAPSettings::trace(): iUsername", |
|
808 iUsername.Ptr(), |
|
809 iUsername.Size())); |
|
810 } |
|
811 |
|
812 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iPasswordExistPresent=%d"), |
|
813 iPasswordExistPresent)); |
|
814 if (iPasswordExistPresent) |
|
815 { |
|
816 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iPasswordExist=%d"), |
|
817 iPasswordExist) ); |
|
818 } |
|
819 |
|
820 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iPasswordPresent=%d"), |
|
821 iPasswordPresent)); |
|
822 if (iPasswordPresent) |
|
823 { |
|
824 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EAPSettings::trace(): iPassword", |
|
825 iPassword.Ptr(), |
|
826 iPassword.Size())); |
|
827 } |
|
828 |
|
829 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iRealmPresent=%d"), |
|
830 iRealmPresent)); |
|
831 if (iRealmPresent) |
|
832 { |
|
833 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EAPSettings::trace(): iRealm", |
|
834 iRealm.Ptr(), |
|
835 iRealm.Size())); |
|
836 } |
|
837 |
|
838 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUsePseudonymsPresent=%d"), |
|
839 iUsePseudonymsPresent)); |
|
840 if (iUsePseudonymsPresent) |
|
841 { |
|
842 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUsePseudonyms=%d"), |
|
843 iUsePseudonyms) ); |
|
844 } |
|
845 |
|
846 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iVerifyServerRealmPresent=%d"), |
|
847 iVerifyServerRealmPresent)); |
|
848 if (iVerifyServerRealmPresent) |
|
849 { |
|
850 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iVerifyServerRealm=%d"), |
|
851 iVerifyServerRealm)); |
|
852 } |
|
853 |
|
854 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iRequireClientAuthenticationPresent=%d"), |
|
855 iRequireClientAuthenticationPresent)); |
|
856 if (iRequireClientAuthenticationPresent) |
|
857 { |
|
858 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iRequireClientAuthentication=%d"), |
|
859 iRequireClientAuthentication)); |
|
860 } |
|
861 |
|
862 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iSessionValidityTimePresent=%d"), |
|
863 iSessionValidityTimePresent)); |
|
864 if (iSessionValidityTimePresent) |
|
865 { |
|
866 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iSessionValidityTime=%d"), |
|
867 iSessionValidityTime)); |
|
868 } |
|
869 |
|
870 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iCipherSuitesPresent=%d"), |
|
871 iCipherSuitesPresent)); |
|
872 if (iCipherSuitesPresent) |
|
873 { |
|
874 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iCipherSuites=%d"), |
|
875 iCipherSuites.Count())); |
|
876 for (ind = 0ul; ind < iCipherSuites.Count(); ++ind) |
|
877 { |
|
878 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iCipherSuites[%d]=%d"), |
|
879 ind, |
|
880 iCipherSuites[ind])); |
|
881 } |
|
882 } |
|
883 |
|
884 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iPEAPVersionsPresent=%d"), |
|
885 iPEAPVersionsPresent)); |
|
886 if (iPEAPVersionsPresent) |
|
887 { |
|
888 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iPEAPv0Allowed=%d"), |
|
889 iPEAPv0Allowed)); |
|
890 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iPEAPv1Allowed=%d"), |
|
891 iPEAPv1Allowed)); |
|
892 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iPEAPv2Allowed=%d"), |
|
893 iPEAPv2Allowed)); |
|
894 } |
|
895 |
|
896 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iCertificatesPresent=%d"), |
|
897 iCertificatesPresent)); |
|
898 if (iCertificatesPresent) |
|
899 { |
|
900 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iCertificates=%d"), |
|
901 iCertificates.Count())); |
|
902 for (ind = 0ul; ind < iCertificates.Count(); ++ind) |
|
903 { |
|
904 iCertificates[ind]->trace(); |
|
905 } |
|
906 } |
|
907 |
|
908 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iEnabledEncapsulatedEAPExpandedTypesPresent=%d"), |
|
909 iEnabledEncapsulatedEAPExpandedTypesPresent)); |
|
910 if (iEnabledEncapsulatedEAPExpandedTypesPresent) |
|
911 { |
|
912 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iEnabledEncapsulatedEAPExpandedTypes=%d"), |
|
913 iEnabledEncapsulatedEAPExpandedTypes.Count())); |
|
914 for (ind = 0ul; ind < iEnabledEncapsulatedEAPExpandedTypes.Count(); ++ind) |
|
915 { |
|
916 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iEnabledEncapsulatedEAPExpandedTypes[%d]=0xfe%06x%08x"), |
|
917 ind, |
|
918 iEnabledEncapsulatedEAPExpandedTypes[ind].GetVendorId(), |
|
919 iEnabledEncapsulatedEAPExpandedTypes[ind].GetVendorType())); |
|
920 } |
|
921 } |
|
922 |
|
923 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iDisabledEncapsulatedEAPExpandedTypesPresent=%d"), |
|
924 iDisabledEncapsulatedEAPExpandedTypesPresent)); |
|
925 if (iDisabledEncapsulatedEAPExpandedTypesPresent) |
|
926 { |
|
927 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iDisabledEncapsulatedEAPExpandedTypes=%d"), |
|
928 iDisabledEncapsulatedEAPExpandedTypes.Count())); |
|
929 for (ind = 0ul; ind < iDisabledEncapsulatedEAPExpandedTypes.Count(); ++ind) |
|
930 { |
|
931 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iDisabledEncapsulatedEAPExpandedTypes[%d]=0xfe%06x%08x"), |
|
932 ind, |
|
933 iDisabledEncapsulatedEAPExpandedTypes[ind].GetVendorId(), |
|
934 iDisabledEncapsulatedEAPExpandedTypes[ind].GetVendorType())); |
|
935 } |
|
936 } |
|
937 |
|
938 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iAuthProvModeAllowedPresent=%d"), |
|
939 iAuthProvModeAllowedPresent)); |
|
940 if (iAuthProvModeAllowedPresent) |
|
941 { |
|
942 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iAuthProvModeAllowed=%d"), |
|
943 iAuthProvModeAllowed)); |
|
944 } |
|
945 |
|
946 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUnauthProvModeAllowedPresent=%d"), |
|
947 iUnauthProvModeAllowedPresent)); |
|
948 if (iUnauthProvModeAllowedPresent) |
|
949 { |
|
950 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUnauthProvModeAllowed=%d"), |
|
951 iUnauthProvModeAllowed)); |
|
952 } |
|
953 |
|
954 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iPACGroupReferencePresent=%d"), |
|
955 iPACGroupReferencePresent)); |
|
956 if (iPACGroupReferencePresent) |
|
957 { |
|
958 EAP_TRACE_DATA_DEBUG_SYMBIAN(("EAPSettings::trace(): iPACGroupReference", |
|
959 iPACGroupReference.Ptr(), |
|
960 iPACGroupReference.Size())); |
|
961 } |
|
962 |
|
963 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iWarnADHPNoPACPresent=%d"), |
|
964 iWarnADHPNoPACPresent)); |
|
965 if (iWarnADHPNoPACPresent) |
|
966 { |
|
967 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iWarnADHPNoPAC=%d"), |
|
968 iWarnADHPNoPAC)); |
|
969 } |
|
970 |
|
971 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iWarnADHPNoMatchingPACPresent=%d"), |
|
972 iWarnADHPNoMatchingPACPresent)); |
|
973 if (iWarnADHPNoMatchingPACPresent) |
|
974 { |
|
975 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iWarnADHPNoMatchingPAC=%d"), |
|
976 iWarnADHPNoMatchingPAC)); |
|
977 } |
|
978 |
|
979 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iWarnNotDefaultServerPresent=%d"), |
|
980 iWarnNotDefaultServerPresent)); |
|
981 if (iWarnNotDefaultServerPresent) |
|
982 { |
|
983 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iWarnNotDefaultServer=%d"), |
|
984 iWarnNotDefaultServer)); |
|
985 } |
|
986 |
|
987 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iShowPassWordPromptPresent=%d"), |
|
988 iShowPassWordPromptPresent)); |
|
989 if (iShowPassWordPromptPresent) |
|
990 { |
|
991 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iShowPassWordPrompt=%d"), |
|
992 iShowPassWordPrompt)); |
|
993 } |
|
994 |
|
995 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUseIdentityPrivacyPresent=%d"), |
|
996 iUseIdentityPrivacyPresent)); |
|
997 if (iUseIdentityPrivacyPresent) |
|
998 { |
|
999 EAP_TRACE_DEBUG_SYMBIAN((_L("EAPSettings::trace(): iUseIdentityPrivacy=%d"), |
|
1000 iUseIdentityPrivacy)); |
|
1001 } |
|
1002 } |
|
1003 |
|
1004 //------------------------------------------------------------------------------------- |
|
1005 // end of file |
|