Skip to content

Declared in <galanthus/c_api/gln_capi.h>.

GLN_API gln_status_t GLN_CALL gln_create_file_key_store(
    const char*       in_key_blob_path,
    const char*       in_sidecar_key_path_or_null,
    gln_key_store_t** out_store,
    gln_error_t*      out_error);
  • Family: Create and open functions
  • Return type: gln_status_t

Purpose

Creates a built-in file-backed EBICS key store on supported builds.

Use gln_create_key_store instead when the caller supplies a key-store vtable.

Return

Returns GLN_OK on success and a non-OK gln_status_t value on failure.

TypeNullabilityOwnership
gln_status_tvaluevalue

Parameters

NameDirectionTypeNullabilityOwnership
in_key_blob_pathinputconst char*nonnullborrowed
in_sidecar_key_path_or_nullinputconst char*nullableborrowed
out_storeoutputgln_key_store_t**nonnulltransferred_out
out_erroroutputgln_error_t*nullablecaller_allocated_output

Platform Support

The built-in file key store is supported on Windows x64 builds.

On other platforms, after validating the error slot and required arguments, the function clears *out_store when possible, writes a not_supported error when out_error is usable, and returns GLN_ERR_NOT_SUPPORTED.

Paths And Ownership

in_key_blob_path is required. in_sidecar_key_path_or_null may be NULL.

On Windows x64, the implementation copies the supplied paths into std::filesystem::path values while constructing the file key store; the caller retains ownership of the C strings.

On success, out_store receives a caller-owned key-store handle that must be released with gln_destroy_key_store.

Failure Cases

The call returns GLN_ERR_INVALID_ARG when in_key_blob_path or out_store is NULL.

out_error may be NULL; if it is non-NULL, its struct_size must describe a valid gln_error_t.

See Also