cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Location to curl-ca-bundle.crt

From: Mohit Anchlia <mohitanchlia_at_gmail.com>
Date: Wed, 22 Nov 2006 12:35:11 -0800

Problem is this application is already in production and we don't want to
re-compile the applicationa and go through whole process. Is there a way to
set environment variable that libcurl could use at runtime to override the
default position of curl-ca-bundle.crt. Or anything else that you suggest
that doesn't involve re-compilation.

On 11/19/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Fri, 17 Nov 2006, Mohit Anchlia wrote:
>
> > I am using libcurl on UNIX How can I dynmically change the location of
> > curl-ca-bundle.crt file. Currently it's embedded within libcurl library.
> Now
> > I want to move my .crt file to some other location. Is there any
> > *environment variable* that I can use without having to change the code.
> I
> > don't want to use easy_set_option as it's a shared/reusable code.
>
> What? The dynamic way is to use the easy_set_option! Your app could easily
> getenv() any environment variable or whatever you like, and use that to
> point
> out the path.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2006-11-22