Separate OpenSSL engine configuration for Phase 2

I fixed the engine issue in phase2 of EAP-TTLS. The problem was that you
only defined one engine variable, which was read already in phase1. I
defined some new variables:

engine2
engine2_id
pin2

and added support to read those in phase2 wheres all the engine
variables without number are only read in phase1. That solved it and I
am now able to use an engine also in EAP-TTLS phase2.
This commit is contained in:
Carolin Latze 2008-11-18 16:53:32 +02:00 committed by Jouni Malinen
parent 9ef21b2fef
commit 98842d51ec
6 changed files with 63 additions and 6 deletions

View file

@ -36,7 +36,8 @@ static void * eap_tls_init(struct eap_sm *sm)
struct eap_peer_config *config = eap_get_config(sm);
if (config == NULL ||
((sm->init_phase2 ? config->private_key2 : config->private_key)
== NULL && config->engine == 0)) {
== NULL &&
(sm->init_phase2 ? config->engine2 : config->engine) == 0)) {
wpa_printf(MSG_INFO, "EAP-TLS: Private key not configured");
return NULL;
}