From b97f4a2c13de920be1c2c763eb6fec34c680bae3 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Sun, 11 Jan 2015 00:26:14 +0200 Subject: [PATCH] http: remove domain parameter --- src/core/sipe-core.c | 1 - src/core/sipe-http-request.c | 4 ---- src/core/sipe-http.h | 4 +--- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/core/sipe-core.c b/src/core/sipe-core.c index 3a0d92bb..4a8beeb0 100644 --- a/src/core/sipe-core.c +++ b/src/core/sipe-core.c @@ -445,7 +445,6 @@ void sipe_core_email_authentication(struct sipe_core_private *sipe_private, { if (sipe_private->email_authuser) { sipe_http_request_authentication(request, - sipe_private->email_authdomain, sipe_private->email_authuser, sipe_private->email_password); } diff --git a/src/core/sipe-http-request.c b/src/core/sipe-http-request.c index d9e205da..c029c614 100644 --- a/src/core/sipe-http-request.c +++ b/src/core/sipe-http-request.c @@ -66,7 +66,6 @@ struct sipe_http_request { gchar *content_type; /* NULL if body == NULL */ gchar *authorization; - const gchar *domain; /* not copied */ const gchar *user; /* not copied */ const gchar *password; /* not copied */ @@ -566,7 +565,6 @@ struct sipe_http_request *sipe_http_request_new(struct sipe_core_private *sipe_p /* default authentication */ if (!SIPE_CORE_PRIVATE_FLAG_IS(SSO)) sipe_http_request_authentication(req, - sipe_private->authdomain, sipe_private->authuser, sipe_private->password); @@ -624,12 +622,10 @@ void sipe_http_request_allow_redirect(struct sipe_http_request *request) } void sipe_http_request_authentication(struct sipe_http_request *request, - const gchar *domain, const gchar *user, const gchar *password) { request->flags |= SIPE_HTTP_REQUEST_FLAG_AUTHDATA; - request->domain = domain; request->user = user; request->password = password; } diff --git a/src/core/sipe-http.h b/src/core/sipe-http.h index 861b4f50..829fc2c7 100644 --- a/src/core/sipe-http.h +++ b/src/core/sipe-http.h @@ -3,7 +3,7 @@ * * pidgin-sipe * - * Copyright (C) 2013 SIPE Project + * Copyright (C) 2013-2015 SIPE Project * * * This program is free software; you can redistribute it and/or modify @@ -155,11 +155,9 @@ void sipe_http_request_allow_redirect(struct sipe_http_request *request); * Provide authentication information for HTTP request * * @param request pointer to opaque HTTP request data structure - * @param domain domain name (MUST stay valid for duration of request!) * @param user user name (MUST stay valid for duration of request!) * @param password Password (MUST stay valid for duration of request!) */ void sipe_http_request_authentication(struct sipe_http_request *request, - const gchar *domain, const gchar *user, const gchar *password); -- 2.11.4.GIT