Lines Matching defs:conf
979 struct eap_peer_config *conf)
984 struct eap_method_type *m = conf->eap_methods;
1021 os_free(conf->identity);
1022 conf->identity = os_malloc(1 + imsi_len);
1023 if (conf->identity == NULL) {
1031 conf->identity[0] = '1';
1034 conf->identity[0] = '0';
1037 conf->identity[0] = '6';
1040 os_memcpy(conf->identity + 1, imsi, imsi_len);
1041 conf->identity_len = 1 + imsi_len;
1050 struct eap_peer_config *conf)
1053 if (scard_set_pin(sm->scard_ctx, conf->pin)) {
1058 os_free(conf->pin);
1059 conf->pin = NULL;
1072 struct eap_peer_config *conf)
1075 if (eap_sm_set_scard_pin(sm, conf))
1078 return eap_sm_imsi_identity(sm, conf);
1353 * @conf: EAP configuration
1364 void *msg_ctx, struct eap_config *conf)
1376 sm->wps = conf->wps;
1379 tlsconf.opensc_engine_path = conf->opensc_engine_path;
1380 tlsconf.pkcs11_engine_path = conf->pkcs11_engine_path;
1381 tlsconf.pkcs11_module_path = conf->pkcs11_module_path;
1387 tlsconf.cert_in_cb = conf->cert_in_cb;
2295 int eap_is_wps_pbc_enrollee(struct eap_peer_config *conf)
2297 if (conf->identity_len != WSC_ID_ENROLLEE_LEN ||
2298 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))
2301 if (conf->phase1 == NULL || os_strstr(conf->phase1, "pbc=1") == NULL)
2308 int eap_is_wps_pin_enrollee(struct eap_peer_config *conf)
2310 if (conf->identity_len != WSC_ID_ENROLLEE_LEN ||
2311 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))
2314 if (conf->phase1 == NULL || os_strstr(conf->phase1, "pin=") == NULL)