]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set correct curl option for TLS SRP auth
authorNick Porter <nick@portercomputing.co.uk>
Tue, 31 Dec 2024 08:57:15 +0000 (08:57 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 31 Dec 2024 08:57:15 +0000 (08:57 +0000)
src/modules/rlm_rest/rest.c

index 4e23b01e7d9692eda495af3b0cade3f38a9f6ca9..db2192a30ae0e18ba5fb1fa71bed6f6298782a6c 100644 (file)
@@ -1955,7 +1955,7 @@ do {\
                        if (call_env->request.username) SET_AUTH_OPTION(CURLOPT_USERNAME, call_env->request.username->vb_strvalue);
                        if (call_env->request.password) SET_AUTH_OPTION(CURLOPT_PASSWORD, call_env->request.password->vb_strvalue);
                } else if (auth == REST_HTTP_AUTH_TLS_SRP) {
-                       SET_AUTH_OPTION(CURLOPT_TLSAUTH_TYPE, http_curl_auth[auth]);
+                       SET_AUTH_OPTION(CURLOPT_TLSAUTH_TYPE, "SRP");
                        if (call_env->request.username) SET_AUTH_OPTION(CURLOPT_TLSAUTH_USERNAME, call_env->request.username->vb_strvalue);
                        if (call_env->request.password) SET_AUTH_OPTION(CURLOPT_TLSAUTH_PASSWORD, call_env->request.password->vb_strvalue);
                }