-
Notifications
You must be signed in to change notification settings - Fork 68
/
reader.mli
31 lines (23 loc) · 1.93 KB
/
reader.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
val parse_version : string -> (Core.tls_version, [> `Decode of string ]) result
val parse_any_version : string -> (Core.tls_any_version, [> `Decode of string ]) result
val parse_record : string ->
([ `Record of (Core.tls_hdr * string) * string
| `Fragment of string
], [> `Unexpected of [> `Content_type of int ]
| `Protocol_version of [> `Unknown_record of int * int ]
| `Record_overflow of int ]) result
val parse_handshake_frame : string -> (string option * string)
val parse_handshake : string -> (Core.tls_handshake, [> `Decode of string ]) result
val parse_alert : string -> (Core.tls_alert, [> `Decode of string ]) result
val parse_change_cipher_spec : string -> (unit, [> `Decode of string ]) result
val parse_certificate_request : string -> (Packet.client_certificate_type list * string list, [> `Decode of string ]) result
val parse_certificate_request_1_2 : string -> (Packet.client_certificate_type list * Core.signature_algorithm list * string list, [> `Decode of string ]) result
val parse_certificate_request_1_3 : string -> (string option * Core.certificate_request_extension list, [> `Decode of string ]) result
val parse_certificates : string -> (string list, [> `Decode of string ]) result
val parse_certificates_1_3 : string -> (string * (string * 'a list) list, [> `Decode of string ]) result
val parse_client_dh_key_exchange : string -> (string, [> `Decode of string ]) result
val parse_client_ec_key_exchange : string -> (string, [> `Decode of string ]) result
val parse_dh_parameters : string -> (Core.dh_parameters * string * string, [> `Decode of string ]) result
val parse_ec_parameters : string -> ([ `X25519 | `P256 | `P384 | `P521 ] * string * string * string, [> `Decode of string ]) result
val parse_digitally_signed : string -> (string, [> `Decode of string ]) result
val parse_digitally_signed_1_2 : string -> (Core.signature_algorithm * string, [> `Decode of string ]) result