Lines Matching refs:foreground_fd
71 int foreground_fd;
343 context->foreground_fd = -1;
431 context->foreground_fd = fd[0];
472 if (type == OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY && context->foreground_fd >= 0)
481 if (send_control (context->foreground_fd, COMMAND_VERIFY) == -1
482 || send_string (context->foreground_fd, username) == -1
483 || send_string (context->foreground_fd, password) == -1
484 || send_string (context->foreground_fd, common_name) == -1)
490 const int status = recv_control (context->foreground_fd);
509 if (context->foreground_fd >= 0)
512 if (send_control (context->foreground_fd, COMMAND_EXIT) == -1)
519 close (context->foreground_fd);
520 context->foreground_fd = -1;
532 if (context && context->foreground_fd >= 0)
534 send_control (context->foreground_fd, COMMAND_EXIT);
535 close (context->foreground_fd);
536 context->foreground_fd = -1;