OpenHarmony中EAP-PEAP认证支持 GTC方式
1 问题现象
在EAP-PEAP phase2 设置GTC 方式时报下面的异常
Log中看WPA 的代码中需要增加进行修改,才能支持GTC认证
2 初步分析
eap_tls_common.c中eap_peer_select_phase2_methods 调用eap_get_phase2_type 函数
如果 method 为EAP_TYPE_NONE 是 会打印"TLS: Unsupported Phase2 EAP "
需要打开EAP-GTC的宏开关来支持GTC认证
3 解决方案
在 wpa_supplicant-2.9_standard/BUILD.gn b/wpa_supplicant-2.9_standard/BUILD.gn 文件
wpa_base_sources = [ 中增加
+ "$WPA_ROOT_DIR/src/eap_peer/eap_gtc.c",
ohos