cURL / Mailing Lists / curl-library / Single Mail

curl-library

How does curl-lib deal with authentication?

From: Peter Spierenburg <ionlyusethisaddressforlists_at_gmail.com>
Date: Tue, 13 Jan 2009 00:24:46 -0700

Greetings,

I've been reading the curl-lib documentation in order to understand
how curl handles authentication. In particular, I'm looking at:

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

which appears to control, among other things, authentication
parameters like username and password. It seems that one option is to
have libcurl read usernames and passwords from a plaintext file on the
local filesystem. Apparently, this is how 'git' uses it. I however,
cannot, in good conscience, ask my users to put their passwords in a
plaintext file.

Instead, is there a mechanism that I can use to establish a callback
function to ask the user for their credentials?

Peter.
Received on 2009-01-13