summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-09-27 11:22:22 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2018-09-27 11:30:19 +0200
commitf19ff5312b4547793a8a2d8b94fde9d6c4b5137c (patch)
treecdfc4618bf2ce22fd3ee82644c2c6a58d377affc /src/lib/ecore_con
parent6f339cdc2a0e614fb41b898f54d6221f1bf4709b (diff)
ecore_con: Add docs for ecore_con legacy functions
Summary: Find docs of missing legacy functions from 9c33623(ecore: add ecore_con_url_ssl_ca_set.), 40edc9c(ecore: add ecore_con_url_ssl_verify_peer_set patch by Raoul Hecky.) and add them. Test Plan: make doc Reviewers: cedric, Hermet, segfaultxavi Reviewed By: segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7117
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/Ecore_Con.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/ecore_con/Ecore_Con.h b/src/lib/ecore_con/Ecore_Con.h
index ea3e223480..f919158b48 100644
--- a/src/lib/ecore_con/Ecore_Con.h
+++ b/src/lib/ecore_con/Ecore_Con.h
@@ -2283,8 +2283,38 @@ EAPI Eina_Bool ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con
2283 */ 2283 */
2284EAPI void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con); 2284EAPI void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con);
2285 2285
2286/**
2287 * Toggle libcurl's verify peer's certificate option.
2288 *
2289 * If @p verify is @c EINA_TRUE, libcurl will verify
2290 * the authenticity of the peer's certificate, otherwise
2291 * it will not. Default behavior of libcurl is to check
2292 * peer's certificate.
2293 *
2294 * @param url_con Ecore_Con_Url instance which will be acted upon.
2295 * @param verify Whether or not libcurl will check peer's certificate.
2296 * @since 1.1.0
2297 */
2286EAPI void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con, 2298EAPI void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con,
2287 Eina_Bool verify); 2299 Eina_Bool verify);
2300/**
2301 * Set a custom CA to trust for SSL/TLS connections.
2302 *
2303 * Specify the path of a file (in PEM format) containing one or more
2304 * CA certificate(s) to use for the validation of the server certificate.
2305 *
2306 * This function can also disable CA validation if @p ca_path is @c NULL.
2307 * However, the server certificate still needs to be valid for the connection
2308 * to succeed (i.e., the certificate must concern the server the
2309 * connection is made to).
2310 *
2311 * @param url_con Connection object that will use the custom CA.
2312 * @param ca_path Path to a CA certificate(s) file or @c NULL to disable
2313 * CA validation.
2314 *
2315 * @return @c 0 on success. When cURL is used, non-zero return values
2316 * are equal to cURL error codes.
2317 */
2288EAPI int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con, 2318EAPI int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con,
2289 const char *ca_path); 2319 const char *ca_path);
2290 2320