]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acme: remove acme_req_auth() and use acme_post_as_get() instead
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 23 Jul 2025 12:05:16 +0000 (14:05 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 23 Jul 2025 14:07:03 +0000 (16:07 +0200)
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.

src/acme.c

index 147038ddce8b67debfe5a0c78d37499e270658d4..ca3179c8af2ed9fe4cd15928d690c00c026f62f5 100644 (file)
@@ -1318,16 +1318,6 @@ end:
        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)
 {
        struct httpclient *hc;
@@ -1898,7 +1888,7 @@ re:
                break;
                case ACME_AUTH:
                        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;
                        }
                        if (http_st == ACME_HTTP_RES) {