comparison src/login-common/main.c @ 9984:097588a7903c HEAD

lib-auth: Changed API to connect to only a single specified auth socket. Login processes now always connect to socket called "auth".
author Timo Sirainen <tss@iki.fi>
date Wed, 07 Oct 2009 17:46:14 -0400
parents 0d5d10a3273c
children 45cdc5539c93
comparison
equal deleted inserted replaced
9983:9716b5a4b14a 9984:097588a7903c
135 } 135 }
136 136
137 master_service_set_avail_overflow_callback(master_service, 137 master_service_set_avail_overflow_callback(master_service,
138 client_destroy_oldest); 138 client_destroy_oldest);
139 139
140 auth_client = auth_client_new((unsigned int)getpid()); 140 auth_client = auth_client_init("auth", (unsigned int)getpid(), FALSE);
141 auth_client_set_connect_notify(auth_client, auth_connect_notify, NULL); 141 auth_client_set_connect_notify(auth_client, auth_connect_notify, NULL);
142 142
143 clients_init(); 143 clients_init();
144 login_proxy_init(); 144 login_proxy_init();
145 master_auth_init(master_service); 145 master_auth_init(master_service);
149 { 149 {
150 ssl_proxy_deinit(); 150 ssl_proxy_deinit();
151 login_proxy_deinit(); 151 login_proxy_deinit();
152 152
153 if (auth_client != NULL) 153 if (auth_client != NULL)
154 auth_client_free(&auth_client); 154 auth_client_deinit(&auth_client);
155 clients_deinit(); 155 clients_deinit();
156 156
157 if (anvil_fd != -1) { 157 if (anvil_fd != -1) {
158 if (close(anvil_fd) < 0) 158 if (close(anvil_fd) < 0)
159 i_error("close(anvil) failed: %m"); 159 i_error("close(anvil) failed: %m");