cURL / Mailing Lists / curl-library / Single Mail


Re: Using libcurl from a pam module

From: Daniel Stenberg <>
Date: Wed, 16 Jan 2013 11:02:53 +0100 (CET)

On Tue, 15 Jan 2013, Jason Borden wrote:

> I'm writing a pam authentication module and would like to use libcurl to
> query a web service api. My only issue is that since pam modules are invoked
> by single or multithreaded applications, there isn't a way for me to run
> curl_global_init before the invoking application starts their threads. Am I
> just out of luck using libcurl or is there a way I can still make it work?

That restriction is unfortunately enforced upon us by third party libraries,
not by anything we can control. So if your module wants to use OpenSSL, or
whatever, that requirement will be there no matter which other transfer
library you use...

List admin:
Received on 2013-01-16