Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: remove old arg from manager_connect #156

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gsad.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ exec_gmp_post (http_connection_t *con, gsad_connection_info_t *con_info,
}

/* Connect to manager */
switch (manager_connect (credentials, &connection, response_data))
switch (manager_connect (credentials, &connection))
{
case 0:
break;
Expand Down Expand Up @@ -1284,7 +1284,7 @@ exec_gmp_get (http_connection_t *con, gsad_connection_info_t *con_info,
}

/* Connect to manager */
switch (manager_connect (credentials, &connection, response_data))
switch (manager_connect (credentials, &connection))
{
case 0:
break;
Expand Down
4 changes: 1 addition & 3 deletions src/gsad_gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -17023,14 +17023,12 @@ login (http_connection_t *con, params_t *params,
*
* @param[in] credentials Username and password for authentication.
* @param[out] connection Connection to Manager on success.
* @param[out] response_data Extra data return for the HTTP response.
*
* @return 0 success, 1 if manager closed connection, 2 if auth failed,
* 3 on timeout, 4 failed to connect, -1 on error
*/
int
manager_connect (credentials_t *credentials, gvm_connection_t *connection,
cmd_response_data_t *response_data)
manager_connect (credentials_t *credentials, gvm_connection_t *connection)
{
gmp_authenticate_info_opts_t auth_opts;

Expand Down
2 changes: 1 addition & 1 deletion src/gsad_gmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void
gmp_init (const gchar *, const gchar *, int);

int
manager_connect (credentials_t *, gvm_connection_t *, cmd_response_data_t *);
manager_connect (credentials_t *, gvm_connection_t *);

char *
clone_gmp (gvm_connection_t *, credentials_t *, params_t *,
Expand Down
2 changes: 1 addition & 1 deletion src/gsad_http_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ handle_system_report (http_connection_t *connection, const char *method,
response_data = cmd_response_data_new ();

/* Connect to manager */
switch (manager_connect (credentials, &con, response_data))
switch (manager_connect (credentials, &con))
{
case 0: /* success */
res = get_system_report_gmp_from_url (
Expand Down