pass auth_str to uclient_new()
[project/uclient.git] / uclient.c
index b020ad0..2e3d3ae 100644 (file)
--- a/uclient.c
+++ b/uclient.c
@@ -112,12 +112,12 @@ free:
        return NULL;
 }
 
        return NULL;
 }
 
-struct uclient *uclient_new(const char *url_str, const struct uclient_cb *cb)
+struct uclient *uclient_new(const char *url_str, const char *auth_str, const struct uclient_cb *cb)
 {
        struct uclient *cl;
        struct uclient_url *url;
 
 {
        struct uclient *cl;
        struct uclient_url *url;
 
-       url = uclient_get_url(url_str, NULL);
+       url = uclient_get_url(url_str, auth_str);
        if (!url)
                return NULL;
 
        if (!url)
                return NULL;