sxw97
Hi,
I need to increase the user password buffer size to pass in a token. Currently this buffer size is set to be 128 bytes. I made the following two changes:
#define USER_PASS_LEN 4096 misc.h
#define TLS_CHANNEL_BUF_SIZE 4096 common.h
It looks like the client side is able to send the password to the server. But the server side still cannot handle it. It gives the following error:
May 22 03:24:43 ip-10-112-0-55 openvpn[15043]: 10.112.0.105:56226 TLS Error: Auth Username/Password was not provided by peer
May 22 03:24:43 ip-10-112-0-55 openvpn[15043]: 10.112.0.105:56226 TLS Error: TLS handshake failed
May 22 03:24:43 ip-10-112-0-55 openvpn[15043]: 10.112.0.105:56226 Fatal TLS error (check_tls_errors_co), restarting
May 22 03:24:43 ip-10-112-0-55 openvpn[15043]: 10.112.0.105:56226 SIGUSR1[soft,tls-error] received, client-instance restarting
If I pass in a password that is less than 128 bytes, everything works.
Could someone please help point out what else needs to be changed so that the server side can handle password longer than 128 bytes?
Thanks so much!
Sherry