comparison src/master/login-process.c @ 615:0d852af6842e HEAD

Master process generates DH/RSA parameters now and stores them into file which login processes read. Added setting for regeneration interval. Some other SSL cleanups. Also fixed default login process path to be ../run/dovecot/login/ like example config file said, instead of just ../run/dovecot/ which it actually was until now.
author Timo Sirainen <tss@iki.fi>
date Sun, 17 Nov 2002 11:42:07 +0200
parents e60620644af3
children 90a65c017bf0
comparison
equal deleted inserted replaced
614:e60620644af3 615:0d852af6842e
310 if (set_ssl_key_file != NULL) { 310 if (set_ssl_key_file != NULL) {
311 putenv((char *) t_strconcat("SSL_KEY_FILE=", 311 putenv((char *) t_strconcat("SSL_KEY_FILE=",
312 set_ssl_key_file, NULL)); 312 set_ssl_key_file, NULL));
313 } 313 }
314 314
315 if (set_ssl_parameters_file != NULL) {
316 putenv((char *) t_strconcat("SSL_PARAM_FILE=",
317 set_ssl_parameters_file, NULL));
318 }
319
315 if (set_disable_plaintext_auth) 320 if (set_disable_plaintext_auth)
316 putenv("DISABLE_PLAINTEXT_AUTH=1"); 321 putenv("DISABLE_PLAINTEXT_AUTH=1");
317 322
318 if (set_login_process_per_connection) { 323 if (set_login_process_per_connection) {
319 putenv("PROCESS_PER_CONNECTION=1"); 324 putenv("PROCESS_PER_CONNECTION=1");
329 334
330 execv(set_login_executable, (char **) argv); 335 execv(set_login_executable, (char **) argv);
331 336
332 i_fatal("execv(%s) failed: %m", argv[0]); 337 i_fatal("execv(%s) failed: %m", argv[0]);
333 return -1; 338 return -1;
339 }
340
341 void login_process_abormal_exit(pid_t pid __attr_unused__)
342 {
343 /* don't start raising the process count if they're dying all
344 the time */
345 wanted_processes_count = 0;
334 } 346 }
335 347
336 static void login_hash_cleanup(void *key __attr_unused__, void *value, 348 static void login_hash_cleanup(void *key __attr_unused__, void *value,
337 void *context __attr_unused__) 349 void *context __attr_unused__)
338 { 350 {