-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from hannesm/no-temp-file
avoid temporary file creation on macos, revise interface
- Loading branch information
Showing
5 changed files
with
35 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
val trust_anchor_filename : unit -> (string, [> `Msg of string ]) result | ||
(** Attempts to discover the trust anchor file on this host system. *) | ||
|
||
val trust_anchor : | ||
val authenticator : | ||
?crls:X509.CRL.t list -> | ||
?hash_whitelist:Mirage_crypto.Hash.hash list -> | ||
unit -> | ||
(X509.Authenticator.t, [> `Msg of string ]) result | ||
(** Detects root CAs in the operating system's trust store. | ||
(** [authenticator ~crls ~hash_whitelist ()] detects the root CAs (trust | ||
anchors) in the operating system's trust store using {!trust_anchors}. It | ||
constructs an authenticator with the current timestamp {!Ptime_clock.now}, | ||
and the provided [~crls] and [~hash_whitelist] arguments, to be used for | ||
{!Tls.Config.client}. | ||
Returns [Error `Msg msg] if detection did not succeed. *) | ||
|
||
val trust_anchors : unit -> (string, [> `Msg of string ]) result | ||
(** [trust_anchors ()] detects the root CAs (trust anchors) in the operating | ||
system's trust store. | ||
The successful result is a list of pem-encoded X509 certificates. *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters