Skip to main content

Crate hns_dane_engine_ffi

Crate hns_dane_engine_ffi 

Source
Expand description

Versioned C ABI for hns_dane_engine.

Every entry point catches Rust panics. Pointer validity, allocation ownership, and buffer lengths remain explicit caller obligations documented in include/hns_dane_engine.h.

Structs§

HnsDaneAttempt
Opaque admitted-attempt handle declaration.
HnsDaneEngine
Opaque engine handle declaration.
HnsDanePolicyV1
Versioned C policy structure.
HnsDanePolicyV2
Versioned C policy structure with recursive-HNS-DoH requester consent.
HnsDaneProviderAuthority
Opaque authorized provider-context handle declaration.
HnsDaneProviderAuthorityInfoV1
Immutable typed bindings carried by one authorized provider context.
HnsDaneResultV1
Versioned validated response summary.
HnsDaneTransportContextV1
Versioned transport identity context.

Enums§

HnsDaneStatus
C ABI status.

Constants§

ABI_IDENTITY_CAPACITY
Maximum bytes in each fixed-size C transport identity.
ABI_VERSION
C ABI version implemented by this library.
POLICY_ABI_VERSION_V2
Policy ABI version that exposes recursive-HNS-DoH requester consent.
PREREQUISITES_ALL_VERIFIED
All caller-supplied prerequisite bits required before local DANE matching.
PROVIDER_AUTHORITY_ABI_VERSION_V1
Provider-authority consumer ABI version.

Functions§

hns_dane_engine_provider_v1_abi_version
Return the provider-authority consumer ABI version without dereferencing caller memory.
hns_dane_engine_provider_v1_authority_copy_host⚠
Copy the exact canonical logical-origin host from an opaque authority.
hns_dane_engine_provider_v1_authority_destroy⚠
Destroy an opaque provider-authority handle.
hns_dane_engine_provider_v1_authority_get_info⚠
Read immutable typed bindings from an opaque provider authority.
hns_dane_engine_provider_v1_authority_is_current⚠
Check an opaque authority against its retained engine and trusted time.
hns_dane_engine_v1_abi_version
Return the ABI version without dereferencing caller memory.
hns_dane_engine_v1_admit⚠
Admit one exact class-IN query on one transport.
hns_dane_engine_v1_advance_authority⚠
Advance the explicit authority state machine.
hns_dane_engine_v1_attempt_destroy⚠
Destroy an admitted attempt.
hns_dane_engine_v1_create⚠
Create an engine.
hns_dane_engine_v1_destroy⚠
Destroy an engine returned by the create function.
hns_dane_engine_v1_export_policy⚠
Export the versioned persistent policy blob.
hns_dane_engine_v1_get_policy⚠
Read the policy-V1 projection.
hns_dane_engine_v1_set_policy⚠
Replace policy through the V1 fail-closed boundary.
hns_dane_engine_v1_transport_at⚠
Read one current transport candidate by index.
hns_dane_engine_v1_transport_count⚠
Return the number of currently ordered transport candidates.
hns_dane_engine_v1_validate_response⚠
Parse, correlate, and locally match one TLSA response and certificate.
hns_dane_engine_v2_abi_version
Return the policy-v2 ABI version without dereferencing caller memory.
hns_dane_engine_v2_get_policy⚠
Read typed current policy, including recursive-HNS-DoH requester consent.
hns_dane_engine_v2_set_policy⚠
Replace typed policy, including recursive-HNS-DoH requester consent.
provider_authority_into_ffi
Move an authorized Rust context into a caller-owned opaque C handle.