<DIV>&nbsp;</DIV>
<DIV><FONT size=2>Hi,All:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; As we know, if we use aggressive mode with x.509 cert in IKE phase one, pluto will </FONT></DIV>
<DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>not exchange both sides' certs. Now, I want the both sides exchange each other's cert in IKE </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>phase 1 using aggressive mode. Now I am modifying the source code to implement this. Now, I </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>have successfully make the initiator send the first packet which has a CR payload after the </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>ID payload and before VID payload. But, it seems like that the responsder does not accept </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>this packet. The log says "message ignored because it contains an unexpected payload types </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>ISAKMP_NEXT_CR". I have modify the function aggr_inI1_outR1_common() and </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>aggr_inI1_outR1_tail() in ipsec_doi.c to process the CR payload. But, according to the log, </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>I find that the log message comes from the following codes in function process_packet() in </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>demux.c<BR>{<BR>&nbsp;&nbsp;lset_t s = LELEM(np);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;if (LDISJOINT(s<BR>&nbsp;&nbsp;, needed | smc-&gt;opt_payloads| LELEM(ISAKMP_NEXT_N) | LELEM(ISAKMP_NEXT_D)))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loglog(RC_LOG_SERIOUS, "%smessage ignored because it "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "contains an unexpected payload type (%s)"<BR>&nbsp;&nbsp;&nbsp;, excuse, enum_show(&amp;payload_names, np));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SEND_NOTIFICATION(INVALID_PAYLOAD_TYPE);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;needed &amp;= ~s;<BR>}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Untill now, I do not have a clear thinking about the PROCESS of the INCOMING and </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>OUTCOMING IKE packet, just have a general profile. Does anyone can tell me what should I do </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>if I want to meet&nbsp; my require demands. I mean that just the general steps. For example, </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>which key files,key places and key data structures should be modified. Or does anyone can </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>tell me where to get the resources about openswan's source code analysis. There is too </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>little resources about openswan's source code on the Internet.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I will really appreciate your reply and any help~~~~~~~~<BR>Jacky </FONT></DIV><!-- CoreMail Version 3.1_dev Copyright (c) 2002-2007 www.mailtech.cn --></DIV>
<DIV>&nbsp;</DIV><br><!-- footer --><br><hr>
<a style="font-size:14px;line-height:15px; color:#000; text-decoration:none" href="http://www.126.com/" target="_blank"><span style="text-decoration:underline; color:blue">抢注!网易隆重推出新一代免费邮箱</span><span style="font-family:Tahoma; text-decoration:underline; color:blue">>></span> </a>