wifi: set TLS signature algorithm list param to the connection context

The signature algorithm list of SSL context is populated to
the SSL connection context in SSL_new(). wpa_supplicant set the
signature algorithm list to SSL context after SSL_new.
As a result, the desired signature algorithm list is not used in
current handshake, but in next handshake.

Instead of SSL_CTX_set_verify_algorithm_prefs, SSL_set_verify_algorithm_prefs
configures the signature algorithm list to the current connection context
directly.

Bug: 213288930
Test: connect to a SUITE-B network, connect to an EAP network,
      check signature algorithm lists in both client hello packets
      are correct.
Change-Id: Icb7ad1c79c5b129bc3350153775931708b98a146
1 file changed