AuthHost_t has been C++ified for decl.
This commit is contained in:
+4
-3
@@ -37,11 +37,12 @@ typedef struct {
|
|||||||
enum AuthParseDigestQOP_t qop;
|
enum AuthParseDigestQOP_t qop;
|
||||||
} AuthParse_t;
|
} AuthParse_t;
|
||||||
|
|
||||||
typedef struct {
|
struct AuthHost_t
|
||||||
|
{
|
||||||
char *scheme;
|
char *scheme;
|
||||||
char *authority;
|
char *authority;
|
||||||
Dlist *realms;
|
Dlist *realms;
|
||||||
} AuthHost_t;
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const AuthParse_t *auth_parse;
|
const AuthParse_t *auth_parse;
|
||||||
@@ -547,7 +548,7 @@ static void Auth_do_auth_dialog_cb(const char *user, const char *password,
|
|||||||
/* find or create the host */
|
/* find or create the host */
|
||||||
if (!(host = Auth_host_by_url(data->url))) {
|
if (!(host = Auth_host_by_url(data->url))) {
|
||||||
/* create a new host */
|
/* create a new host */
|
||||||
host = dNew(AuthHost_t, 1);
|
host = std::make_unique< AuthHost_t >().release();
|
||||||
host->scheme = dStrdup(URL_SCHEME(data->url));
|
host->scheme = dStrdup(URL_SCHEME(data->url));
|
||||||
host->authority = dStrdup(URL_AUTHORITY(data->url));
|
host->authority = dStrdup(URL_AUTHORITY(data->url));
|
||||||
host->realms = dList_new(1);
|
host->realms = dList_new(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user