Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Ssh_agentSourceidentitys are returned when querying for identities, i.e. * in Ssh_agent_identities_answer when responding to * Ssh_agentc_request_identities.
Flags for what hashing algorithm is desired when doing a signing request. * SHA1 is assumed otherwise.
type ssh_agent_request_type = [ | `Ssh_agentc_request_identities| `Ssh_agentc_sign_request| `Ssh_agentc_extension| `Ssh_agentc_successable ]ssh_agent_request_type is used in the below GADTs for enforcing protocol * semantics. It represents types of requests. The `Ssh_agentc_successable * type is a generalization of all requests that expect either success or * failure.
type _ ssh_agent_request = | Ssh_agentc_request_identities : [ `Ssh_agentc_request_identities ]
ssh_agent_request| Ssh_agentc_sign_request : Pubkey.t
* string
* Ssh_agent__.Protocol_number.sign_flag list -> [ `Ssh_agentc_sign_request ]
ssh_agent_request| Ssh_agentc_add_identity : {privkey : Privkey.t;key_comment : string;} -> [ `Ssh_agentc_successable ] ssh_agent_request| Ssh_agentc_remove_identity : Pubkey.t -> [ `Ssh_agentc_successable ]
ssh_agent_request| Ssh_agentc_remove_all_identities : [ `Ssh_agentc_successable ]
ssh_agent_request| Ssh_agentc_add_smartcard_key : {} -> [ `Ssh_agentc_successable ] ssh_agent_request| Ssh_agentc_remove_smartcard_key : {} -> [ `Ssh_agentc_successable ] ssh_agent_request| Ssh_agentc_lock : string -> [ `Ssh_agentc_successable ] ssh_agent_request| Ssh_agentc_unlock : string -> [ `Ssh_agentc_successable ] ssh_agent_request| Ssh_agentc_add_id_constrained : {privkey : Privkey.t;key_comment : string;key_constraints : key_constraint list;} -> [ `Ssh_agentc_successable ] ssh_agent_request| Ssh_agentc_add_smartcard_key_constrained : {smartcard_id : string;smartcard_pin : string;smartcard_constraints : key_constraint list;} -> [ `Ssh_agentc_successable ] ssh_agent_request| Ssh_agentc_extension : {} -> [ `Ssh_agentc_extension ] ssh_agent_requesttype _ ssh_agent_response = | Ssh_agent_failure : [< ssh_agent_request_type ] ssh_agent_response| Ssh_agent_success : [ `Ssh_agentc_successable ] ssh_agent_response| Ssh_agent_extension_failure : [ `Ssh_agentc_extension ] ssh_agent_response| Ssh_agent_extension_blob : string -> [ `Ssh_agentc_extension ]
ssh_agent_responseGeneric uninterpreted response - it's up to the library user to interpret * the message body.
*)| Ssh_agent_identities_answer : identity list -> [ `Ssh_agentc_request_identities ]
ssh_agent_response| Ssh_agent_sign_response : string -> [ `Ssh_agentc_sign_request ]
ssh_agent_responsetype any_ssh_agent_response = | Any_response : 'a ssh_agent_response -> any_ssh_agent_responseAny function that takes a request and returns a valid response for the * request type
is_extension_request request returns true if request is * Ssh_agentc_extension. Useful for passing ~extension to * ssh_agent_message.
val unpack_any_response :
'a ssh_agent_request ->
any_ssh_agent_response ->
('a ssh_agent_response, string) resultunpack_any_response request response unpacks response if it is a valid * response type with regard to request, otherwise Error is returned.
sign privkey flags blob returns a signature of blob using privkey * respecting the hashing algorithms specified by flags. Currently, only RSA * signatures are supported.
string_of_tbs to_be_signed is the string representation of to_be_signed * that must be signed by to_be_signed.Pubkey.signature_key in order to * create a valid certificate.