* msGetCURLAuthType() * * Returns the equivalent CURL CURLAUTH_ constant given a * MS_HTTP_AUTH_TYPE, or CURLAUTH_BASIC if no match is found. **********************************************************************/
| 273 | * MS_HTTP_AUTH_TYPE, or CURLAUTH_BASIC if no match is found. |
| 274 | **********************************************************************/ |
| 275 | long 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() |
no outgoing calls
no test coverage detected