curl-library
Re: Using libcurl from a pam module
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Jan 2013 11:02:53 +0100 (CET)
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...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-01-16