Skip to content

Commit c103123

Browse files
committed
MINOR: acme: remove acme_req_auth() and use acme_post_as_get() instead
acme_req_auth() is only a call to acme_post_as_get() now, there's no reason to keep the function. This patch removes it.
1 parent 08d664b commit c103123

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/acme.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,16 +1318,6 @@ int acme_post_as_get(struct task *task, struct acme_ctx *ctx, struct ist url, ch
13181318
return ret;
13191319
}
13201320

1321-
1322-
/*
1323-
* Get an Auth URL
1324-
*/
1325-
int acme_req_auth(struct task *task, struct acme_ctx *ctx, struct acme_auth *auth, char **errmsg)
1326-
{
1327-
return acme_post_as_get(task, ctx, auth->auth, errmsg);
1328-
1329-
}
1330-
13311321
int acme_res_auth(struct task *task, struct acme_ctx *ctx, struct acme_auth *auth, char **errmsg)
13321322
{
13331323
struct httpclient *hc;
@@ -1898,7 +1888,7 @@ struct task *acme_process(struct task *task, void *context, unsigned int state)
18981888
break;
18991889
case ACME_AUTH:
19001890
if (http_st == ACME_HTTP_REQ) {
1901-
if (acme_req_auth(task, ctx, ctx->next_auth, &errmsg) != 0)
1891+
if (acme_post_as_get(task, ctx, ctx->next_auth->auth, &errmsg) != 0)
19021892
goto retry;
19031893
}
19041894
if (http_st == ACME_HTTP_RES) {

0 commit comments

Comments
 (0)