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;
|
||||
} AuthParse_t;
|
||||
|
||||
typedef struct {
|
||||
struct AuthHost_t
|
||||
{
|
||||
char *scheme;
|
||||
char *authority;
|
||||
Dlist *realms;
|
||||
} AuthHost_t;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
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 */
|
||||
if (!(host = Auth_host_by_url(data->url))) {
|
||||
/* create a new host */
|
||||
host = dNew(AuthHost_t, 1);
|
||||
host = std::make_unique< AuthHost_t >().release();
|
||||
host->scheme = dStrdup(URL_SCHEME(data->url));
|
||||
host->authority = dStrdup(URL_AUTHORITY(data->url));
|
||||
host->realms = dList_new(1);
|
||||
|
||||
Reference in New Issue
Block a user