From: Daniel Stenberg Date: Fri, 12 Jun 2009 07:59:16 GMT Subject: Re: [PATCH 1/2] http.c: prompt for SSL client certificate password Message-ID: In-Reply-To: <7vprdaarka.fsf@alter.siamese.dyndns.org> On Thu, 11 Jun 2009, Junio C Hamano wrote: > #if !defined(CURLOPT_KEYPASSWD) > # if defined(CURLOPT_SSLKEYPASSWD) > # define CURLOPT_KEYTPASSWD CURLOPT_SSLKEYPASSWD > # elif defined(CURLOPT_SSLCERTPASSWD > # define CURLOPT_KEYTPASSWD CURLOPT_SSLCERTPASSWD > # endif > #endif Just note that these CURLOPT_* symbols provided by libcurl are enums, not defines, so unfortunately you can't do it this exact #ifdef way. -- / daniel.haxx.se