MCPcopy Create free account
hub / github.com/OSGeo/PROJ / proj_context_set_ca_bundle_path

Function proj_context_set_ca_bundle_path

src/filemanager.cpp:2207–2217  ·  view source on GitHub ↗

\brief Sets CA Bundle path. * * Those CA Bundle path will be used by PROJ when curl and PROJ_NETWORK * are enabled. * * If set on the default context, they will be inherited by contexts created * later. * * The path should be encoded in UTF-8. * * @param ctx PROJ context, or NULL for the default context. * @param path Path. May be NULL. * * @since PROJ 7.2 */

Source from the content-addressed store, hash-verified

2205 * @since PROJ 7.2
2206 */
2207void proj_context_set_ca_bundle_path(PJ_CONTEXT *ctx, const char *path) {
2208 if (!ctx)
2209 ctx = pj_get_default_ctx();
2210 if (!ctx)
2211 return;
2212 pj_load_ini(ctx);
2213 try {
2214 ctx->set_ca_bundle_path(path != nullptr ? path : "");
2215 } catch (const std::exception &) {
2216 }
2217}
2218
2219// ---------------------------------------------------------------------------
2220

Callers 1

TESTFunction · 0.85

Calls 3

pj_get_default_ctxFunction · 0.85
pj_load_iniFunction · 0.85
set_ca_bundle_pathMethod · 0.80

Tested by 1

TESTFunction · 0.68