Lines Matching defs:ChildSaSession

174   IKEV2_CHILD_SA_SESSION    *ChildSaSession;
190 // Create a new ChildSaSession and initiate the common parameters.
192 ChildSaSession = Ikev2ChildSaSessionAlloc (UdpService, SaSession);
194 if (ChildSaSession == NULL) {
201 ChildSaSession->Spd = SpdEntry;
202 ChildSaCommon = &ChildSaSession->SessionCommon;
209 ChildSaSession->ProtoId = SpdEntry->Selector->NextLayerProtocol;
213 ChildSaSession->LocalPort = SpdEntry->Selector->LocalPort;
217 ChildSaSession->RemotePort = SpdEntry->Selector->RemotePort;
220 // Initiate the SAD data parameters of the ChildSaSession.
222 ChildSaSession->SaData = Ikev2InitializeSaData (ChildSaCommon);
223 if (ChildSaSession->SaData == NULL) {
230 IkePacket = mIkev2CreateChild.Generator ((UINT8 *) ChildSaSession, NULL);
244 // Insert the ChildSaSession into processing child SA list.
246 Ikev2ChildSaSessionInsert (&SaSession->ChildSaSessionList, ChildSaSession);
249 // TODO: Rekeying IkeSaSession or ChildSaSession, NOT support yet.
252 // Rekey ChildSa, set ChildSaSession->State and pass over ChildSaSession
261 if (ChildSaSession->SaData != NULL) {
262 FreePool (ChildSaSession->SaData);
265 if (ChildSaSession->SessionCommon.TimeoutEvent != NULL) {
266 gBS->CloseEvent (ChildSaSession->SessionCommon.TimeoutEvent);
273 Ikev2ChildSaSessionFree (ChildSaSession);
303 IKEV2_CHILD_SA_SESSION *ChildSaSession;
345 ChildSaSession = IKEV2_CHILD_SA_SESSION_BY_DEL_SA (Entry);
346 ChildSaSession->SessionCommon.State = IkeStateSaDeleting;
351 IkePacket = mIkev2Info.Generator ((UINT8 *) ChildSaSession, NULL);
361 Status = Ikev2SendIkePacket (UdpService, (UINT8 *) &ChildSaSession->SessionCommon, IkePacket, 0);
404 IKEV2_CHILD_SA_SESSION *ChildSaSession;
417 ChildSaSession = NULL;
489 // If the IkeSaSession is responder, here will create the first ChildSaSession.
498 ChildSaSession = Ikev2ChildSaSessionCreate (IkeSaSession, UdpService);
499 ChildSaCommon = &ChildSaSession->SessionCommon;
513 // If the IkeSaSession is initiator, here will create the first ChildSaSession.
522 ChildSaSession = Ikev2ChildSaSessionCreate (IkeSaSession, UdpService);
523 ChildSaCommon = &ChildSaSession->SessionCommon;
528 ChildSaSession->SaData = Ikev2InitializeSaData (ChildSaCommon);
575 ChildSaSession = IKEV2_CHILD_SA_SESSION_BY_IKE_SA (IkeSaSession->ChildSaSessionList.BackLink);
578 ChildSaSession->LocalPeerSpi,
581 Ikev2ChildSaSessionReg (ChildSaSession, Private);
587 if (ChildSaSession != NULL) {
591 RemoveEntryList (&ChildSaSession->ByIkeSa);
592 Ikev2ChildSaSessionFree (ChildSaSession);