equal
deleted
inserted
replaced
22 #include "ikev1timeout.h" |
22 #include "ikev1timeout.h" |
23 #include "ikev1negotiation.h" |
23 #include "ikev1negotiation.h" |
24 #include "ikev1payload.h" |
24 #include "ikev1payload.h" |
25 #include "ikev1isakmpstream.h" |
25 #include "ikev1isakmpstream.h" |
26 #include "ikepolparser.h" |
26 #include "ikepolparser.h" |
|
27 |
|
28 |
|
29 CAuthDialogInfo::~CAuthDialogInfo() |
|
30 { |
|
31 delete iUsername; |
|
32 delete iSecret; |
|
33 } |
|
34 |
|
35 |
|
36 void CAuthDialogInfo::SetUserName( HBufC8* aUserName ) |
|
37 { |
|
38 delete iUsername; |
|
39 iUsername = aUserName; |
|
40 } |
|
41 |
|
42 |
|
43 void CAuthDialogInfo::SetSecret( HBufC8* aSecret ) |
|
44 { |
|
45 delete iSecret; |
|
46 iSecret = aSecret; |
|
47 } |
27 |
48 |
28 |
49 |
29 // |
50 // |
30 // Class that implements IKE CRACK authentication method |
51 // Class that implements IKE CRACK authentication method |
31 // |
52 // |
516 } |
537 } |
517 |
538 |
518 // |
539 // |
519 // The implementation for class MIkeDialogComplete virtual function |
540 // The implementation for class MIkeDialogComplete virtual function |
520 // |
541 // |
521 TInt CIKECRACKNegotiation::DialogCompleteL(CIkev1Dialog* /*aDialog*/, TAny* aUserInfo, |
542 TInt CIKECRACKNegotiation::DialogCompleteL( |
522 HBufC8* aUsername, HBufC8* aSecret, HBufC8* aDomain) |
543 TAny* aUserInfo, HBufC8* aUsername, HBufC8* aSecret) |
523 { |
544 { |
524 /*--------------------------------------------------------------------------- |
545 /*--------------------------------------------------------------------------- |
525 * |
546 * |
526 * A response received from client user (through asynchronous dialog) |
547 * A response received from client user (through asynchronous dialog) |
527 * This method is introduced as a TUserCallback for CGetIKEPassword dialog |
548 * This method is introduced as a TUserCallback for CGetIKEPassword dialog |
539 { |
560 { |
540 obj_id = info->GetObjId(); |
561 obj_id = info->GetObjId(); |
541 DEBUG_LOG1(_L("Preparing to call AuthDialogCompletedL(), ObjId = %x"), obj_id); |
562 DEBUG_LOG1(_L("Preparing to call AuthDialogCompletedL(), ObjId = %x"), obj_id); |
542 if ( obj_id == DIALOG_INFO_ID ) |
563 if ( obj_id == DIALOG_INFO_ID ) |
543 { |
564 { |
544 info->iUsername = aUsername; |
565 info->SetUserName( aUsername ); |
545 info->iSecret = aSecret; |
566 info->SetSecret( aSecret ); |
546 info->iDomain = aDomain; |
|
547 obj_id = info->PluginSession()->AuthDialogCompletedL(info); |
567 obj_id = info->PluginSession()->AuthDialogCompletedL(info); |
548 } |
568 } |
549 } |
569 } |
550 |
570 |
551 return obj_id; |
571 return obj_id; |
552 } |
572 } |
553 |
|
554 |
|