Lines Matching refs:newDirector

911    DIRRES *newDirector;  in check_resources()  local
916 newDirector = (DIRRES *)GetNextRes(R_DIRECTOR, NULL); in check_resources()
917 if (!newDirector) { in check_resources()
922 set_working_directory(newDirector->working_directory); in check_resources()
923 if (!newDirector->messages) { /* If message resource not specified */ in check_resources()
924 newDirector->messages = (MSGS *)GetNextRes(R_MSGS, NULL); in check_resources()
925 if (!newDirector->messages) { in check_resources()
930 if (!newDirector->catalog) { /* If catalog message resource not specified */ in check_resources()
931 newDirector->catalog = (CAT *)GetNextRes(R_CATALOG, NULL); in check_resources()
933 if (GetNextRes(R_DIRECTOR, (RES *)newDirector) != NULL) { in check_resources()
939 if (newDirector->tls_require) { in check_resources()
941 if (newDirector->tls_certfile || newDirector->tls_keyfile) { in check_resources()
942 newDirector->tls_enable = true; in check_resources()
950 need_tls = newDirector->tls_enable || newDirector->tls_authenticate; in check_resources()
952 if (!newDirector->tls_certfile && need_tls) { in check_resources()
954 newDirector->name(), configfile); in check_resources()
958 if (!newDirector->tls_keyfile && need_tls) { in check_resources()
960 newDirector->name(), configfile); in check_resources()
964 if ((!newDirector->tls_ca_certfile && !newDirector->tls_ca_certdir) && in check_resources()
965 need_tls && newDirector->tls_verify_peer) { in check_resources()
970 newDirector->name(), configfile); in check_resources()
979 newDirector->tls_ctx = new_tls_context(newDirector->tls_ca_certfile, in check_resources()
980 newDirector->tls_ca_certdir, newDirector->tls_certfile, in check_resources()
981 newDirector->tls_keyfile, NULL, NULL, newDirector->tls_dhfile, in check_resources()
982 newDirector->tls_verify_peer); in check_resources()
984 if (!newDirector->tls_ctx) { in check_resources()
986 newDirector->name(), configfile); in check_resources()
991 newDirector->psk_ctx = new_psk_context(newDirector->password); in check_resources()
993 if (OK && (need_tls == false && newDirector->tls_require)) { in check_resources()
994 if (!newDirector->psk_ctx) { in check_resources()
996 newDirector->hdr.name, configfile); in check_resources()
1341 init_msg(NULL, newDirector->messages); /* open daemon message handler */ in check_resources()