add @since in the doc
Vincent On Tue, 1 Mar 2011, Enlightenment SVN wrote: > Log: > ecore: add ecore_con_url_ssl_verify_peer_set patch by Raoul Hecky. > > > Author: cedric > Date: 2011-03-01 01:51:51 -0800 (Tue, 01 Mar 2011) > New Revision: 57448 > Trac: http://trac.enlightenment.org/e/changeset/57448 > > Modified: > trunk/ecore/ChangeLog trunk/ecore/src/lib/ecore_con/Ecore_Con.h > trunk/ecore/src/lib/ecore_con/ecore_con_url.c > > Modified: trunk/ecore/ChangeLog > =================================================================== > --- trunk/ecore/ChangeLog 2011-03-01 09:25:29 UTC (rev 57447) > +++ trunk/ecore/ChangeLog 2011-03-01 09:51:51 UTC (rev 57448) > @@ -72,3 +72,7 @@ > 2011-02-27 Jihoon Kim > > * Add ecore_imf_context_preedit_string_with_attributes_get API. > + > +2011-03-01 Raoul Hecky > + > + * Add ecore_con_url_ssl_verify_peer_set API. > > Modified: trunk/ecore/src/lib/ecore_con/Ecore_Con.h > =================================================================== > --- trunk/ecore/src/lib/ecore_con/Ecore_Con.h 2011-03-01 09:25:29 UTC (rev > 57447) > +++ trunk/ecore/src/lib/ecore_con/Ecore_Con.h 2011-03-01 09:51:51 UTC (rev > 57448) > @@ -577,6 +577,9 @@ > const char * const > cookiejar_file); > EAPI void ecore_con_url_cookies_jar_write(Ecore_Con_Url > *url_con); > > +EAPI void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url > *url_con, > + Eina_Bool verify); > + > /** > * @} > */ > > Modified: trunk/ecore/src/lib/ecore_con/ecore_con_url.c > =================================================================== > --- trunk/ecore/src/lib/ecore_con/ecore_con_url.c 2011-03-01 09:25:29 UTC > (rev 57447) > +++ trunk/ecore/src/lib/ecore_con/ecore_con_url.c 2011-03-01 09:51:51 UTC > (rev 57448) > @@ -1403,6 +1403,42 @@ > } > > /** > + * Toggle libcurl's verify peer's certificate option. > + * > + * If @p verify is @c EINA_TRUE, libcurl will verify > + * the authenticity of the peer's certificate, otherwise > + * it will not. Default behavior of libcurl is to check > + * peer's certificate. > + * > + * @param url_con Ecore_Con_Url instance which will be acted upon. > + * @param verify Whether or not libcurl will check peer's certificate. > + */ > +EAPI void > +ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con, > + Eina_Bool verify) > +{ > +#ifdef HAVE_CURL > + if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL)) > + { > + ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, > + "ecore_con_url_ssl_verify_peer_set"); > + return; > + } > + > + if (url_con->active) > + return; > + > + if (!url_con->url) > + return; > + > + curl_easy_setopt(url_con->curl_easy, CURLOPT_SSL_VERIFYPEER, (int)verify); > +#else > + (void)url_con; > + (void)verify; > +#endif > +} > + > +/** > * @} > */ > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
