<font color='black' size='2' face='Arial, Helvetica, sans-serif'>
<div style="font-family:arial,helvetica;font-size:10pt;color:black">

<div id="AOLMsgPart_1_b225e55e-2a80-4204-8acd-0d42a19ddc8c">

<font color="black" size="2" face="Arial, Helvetica, sans-serif"><span style="background-color: rgb(255, 255, 255); font-size: small; ">Hello Andreas,</span>

<div style="background-color: rgb(255, 255, 255); font-size: small; "><br>

</div>



<div style="background-color: rgb(255, 255, 255); font-size: small; ">I tried that but still no go:</div>



<div style="background-color: rgb(255, 255, 255); font-size: small; "><br>

</div>



<div style="background-color: rgb(255, 255, 255); font-size: small; ">

<div><span style="font-size: 10pt; "> |    af+type: OAKLEY_AUTHENTICATION_METHOD</span></div>



<div> |    length/value: 1</div>



<div> |    [1 is pre-shared key]</div>



<div> "x-ethernet0" #1: Can't authenticate: no preshared key found for '10.1.1.1' and '10.1.1.2'.  Attribute OAKLEY_AUTHENTICATION_METHOD</div>



<div> "x-ethernet0" #1: no acceptable Oakley Transform</div>



<div> "x-ethernet0" #1: sending notification NO_PROPOSAL_CHOSEN to 10.1.1.2:500</div>



<div><br>

</div>



<div>If I do</div>



<div><br>

</div>



<div>10.1.1.1 10.1.1.2 : PSK "test123" </div>



<div><br>

</div>



<div>then it works like a charm.</div>



<div><br>

</div>



<div>However, I took some time to look at the code and found this function:</div>



<div><br>

</div>



<div>

<div>const secret_t* match_secret(identification_t *my_id, identification_t *his_id, <span style="font-size: 10pt; ">secret_kind_t kind)</span></div>

</div>



<div><br>

</div>



<div>A part of this function is the following:</div>



<div><br>

</div>



<div>

<div>                        enumerator = s->ids->create_enumerator(s->ids);</div>



<div>                        while (enumerator->enumerate(enumerator, &id))</div>



<div>                        {</div>



<div>                                if (my_id->equals(my_id, id))</div>



<div>                                {</div>



<div>                                        match |= match_me;</div>



<div>                                }</div>



<div>                                if (his_id->equals(his_id, id))</div>



<div>                                {</div>



<div>                                        match |= match_him;</div>



<div>                                }</div>



<div>                        }</div>



<div>                        enumerator->destroy(enumerator);</div>

</div>



<div><br>

</div>



<div>Read some comments on the code and then i changed </div>



<div><span style="font-size: 10pt; ">     my_id->equals(...,...)</span></div>



<div><span style="font-size: 10pt; ">to</span></div>



<div><span style="font-size: 10pt; ">     </span><span style="font-size: 10pt; ">my_id->matches(....,....)</span></div>



<div><span style="font-size: 10pt; "><br>

</span></div>



<div><span style="font-size: 10pt; ">and now it recognizes the %any keyword properly.</span></div>



<div><span style="font-size: 10pt; "><br>

</span></div>



<div><span style="font-size: 10pt; ">But I'm not sure if I didn't break anything. What do you think about it?</span></div>



<div><span style="font-size: 10pt; "><br>

</span></div>



<div><span style="font-size: 10pt; ">By the way, strongswan v4.6.2</span></div>



<div><span style="font-size: 10pt; "><br>

</span></div>



<div><span style="font-size: 10pt; ">Thanks for your time</span></div>



<div><span style="font-size: 10pt; "><br>

</span></div>



<div><span style="font-size: 10pt; ">Germano Veit Michel</span></div>



<div style="clear: both; "><a href="mailto:germanovmichel@aim.com" style="color: blue; cursor: pointer; ">germanovmichel@aim.com</a><br>

</div>



<div><br>

</div>

</div>

<br>



<div style="clear:both">Germano Veit Michel<br>

germanovmichel@aim.com<br>

</div>

</font>
</div>
 <!-- end of AOLMsgPart_1_b225e55e-2a80-4204-8acd-0d42a19ddc8c -->
</div>
</font>