mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 05:41:26 +02:00
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.
This commit is contained in:
parent
08d664b17c
commit
c103123c9e
12
src/acme.c
12
src/acme.c
@ -1318,16 +1318,6 @@ end:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Get an Auth URL
|
|
||||||
*/
|
|
||||||
int acme_req_auth(struct task *task, struct acme_ctx *ctx, struct acme_auth *auth, char **errmsg)
|
|
||||||
{
|
|
||||||
return acme_post_as_get(task, ctx, auth->auth, errmsg);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
int acme_res_auth(struct task *task, struct acme_ctx *ctx, struct acme_auth *auth, char **errmsg)
|
int acme_res_auth(struct task *task, struct acme_ctx *ctx, struct acme_auth *auth, char **errmsg)
|
||||||
{
|
{
|
||||||
struct httpclient *hc;
|
struct httpclient *hc;
|
||||||
@ -1898,7 +1888,7 @@ re:
|
|||||||
break;
|
break;
|
||||||
case ACME_AUTH:
|
case ACME_AUTH:
|
||||||
if (http_st == ACME_HTTP_REQ) {
|
if (http_st == ACME_HTTP_REQ) {
|
||||||
if (acme_req_auth(task, ctx, ctx->next_auth, &errmsg) != 0)
|
if (acme_post_as_get(task, ctx, ctx->next_auth->auth, &errmsg) != 0)
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
if (http_st == ACME_HTTP_RES) {
|
if (http_st == ACME_HTTP_RES) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user