Lines Matching refs:rmsel

200 rmconf_match_type(rmsel, rmconf)
201 struct rmconfselector *rmsel;
207 if ((rmsel->flags & GETRMCONF_F_NO_ANONYMOUS) &&
209 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
214 if ((rmsel->flags & GETRMCONF_F_NO_PASSIVE) && rmconf->passive){
215 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
223 if (rmsel->remote != NULL) {
225 if (cmpsaddr(rmsel->remote, rmconf->remote) == CMPSADDR_MISMATCH){
226 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
237 if (rmsel->etype != ISAKMP_ETYPE_NONE) {
238 tmp=rmconf_match_etype_and_approval(rmconf, rmsel->etype,
239 rmsel->approval);
241 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
242 "Not matched: etype (%d)/approval mismatch (%d).\n", rmsel->etype, tmp);
249 if (rmsel->identity != NULL && rmconf->verify_identifier) {
250 if (rmconf_match_identity(rmconf, rmsel->identity) != 0){
251 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
259 if (rmsel->certificate_request != NULL) {
260 if (oakley_get_certtype(rmsel->certificate_request) !=
262 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
267 if (rmsel->certificate_request->l > 1) {
271 if (rmsel->certificate_request->l - 1 != issuer->l ||
272 memcmp(rmsel->certificate_request->v + 1,
275 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
282 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
294 void rmconf_selector_from_ph1(rmsel, iph1)
295 struct rmconfselector *rmsel;
298 memset(rmsel, 0, sizeof(*rmsel));
299 rmsel->flags = 0;
300 rmsel->remote = iph1->remote;
301 rmsel->etype = iph1->etype;
302 rmsel->approval = iph1->approval;
303 rmsel->identity = iph1->id_p;
304 rmsel->certificate_request = iph1->cr_p;
308 enumrmconf(rmsel, enum_func, enum_arg)
309 struct rmconfselector *rmsel;
317 plog(LLV_DEBUG2, LOCATION, rmsel->remote,
322 if (rmsel != NULL) {
323 if (rmconf_match_type(rmsel, p) == MATCH_NONE){
324 plog(LLV_DEBUG2, LOCATION, rmsel->remote,