Lines Matching refs:conf
1322 struct eap_peer_config *conf)
1327 struct eap_method_type *m = conf->eap_methods;
1364 os_free(conf->identity);
1365 conf->identity = os_malloc(1 + imsi_len);
1366 if (conf->identity == NULL) {
1374 conf->identity[0] = '1';
1377 conf->identity[0] = '0';
1380 conf->identity[0] = '6';
1383 os_memcpy(conf->identity + 1, imsi, imsi_len);
1384 conf->identity_len = 1 + imsi_len;
1391 struct eap_peer_config *conf)
1393 if (scard_set_pin(sm->scard_ctx, conf->pin)) {
1398 os_free(conf->pin);
1399 conf->pin = NULL;
1410 struct eap_peer_config *conf)
1412 if (eap_sm_set_scard_pin(sm, conf))
1415 return eap_sm_imsi_identity(sm, conf);
1913 * @conf: EAP configuration
1924 void *msg_ctx, struct eap_config *conf)
1936 sm->wps = conf->wps;
1940 tlsconf.opensc_engine_path = conf->opensc_engine_path;
1941 tlsconf.pkcs11_engine_path = conf->pkcs11_engine_path;
1942 tlsconf.pkcs11_module_path = conf->pkcs11_module_path;
1943 tlsconf.openssl_ciphers = conf->openssl_ciphers;
1949 tlsconf.cert_in_cb = conf->cert_in_cb;
2910 int eap_is_wps_pbc_enrollee(struct eap_peer_config *conf)
2912 if (conf->identity_len != WSC_ID_ENROLLEE_LEN ||
2913 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))
2916 if (conf->phase1 == NULL || os_strstr(conf->phase1, "pbc=1") == NULL)
2923 int eap_is_wps_pin_enrollee(struct eap_peer_config *conf)
2925 if (conf->identity_len != WSC_ID_ENROLLEE_LEN ||
2926 os_memcmp(conf->identity, WSC_ID_ENROLLEE, WSC_ID_ENROLLEE_LEN))
2929 if (conf->phase1 == NULL || os_strstr(conf->phase1, "pin=") == NULL)