MCPcopy Index your code
hub / github.com/MapServer/MapServer / msGetCURLAuthType

Function msGetCURLAuthType

maphttp.c:275–292  ·  view source on GitHub ↗

* msGetCURLAuthType() * * Returns the equivalent CURL CURLAUTH_ constant given a * MS_HTTP_AUTH_TYPE, or CURLAUTH_BASIC if no match is found. **********************************************************************/

Source from the content-addressed store, hash-verified

273 * MS_HTTP_AUTH_TYPE, or CURLAUTH_BASIC if no match is found.
274 **********************************************************************/
275long msGetCURLAuthType(enum MS_HTTP_AUTH_TYPE authType)
276{
277 switch (authType)
278 {
279 case MS_BASIC:
280 return CURLAUTH_BASIC;
281 case MS_DIGEST:
282 return CURLAUTH_DIGEST;
283 case MS_NTLM:
284 return CURLAUTH_NTLM;
285 case MS_ANY:
286 return CURLAUTH_ANY;
287 case MS_ANYSAFE:
288 return CURLAUTH_ANYSAFE;
289 default:
290 return CURLAUTH_BASIC;
291 }
292}
293
294/**********************************************************************
295 * msHTTPExecuteRequests()

Callers 1

msHTTPExecuteRequestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected