Skip to main content

Module transport

Module transport 

Source
Expand description

HTTP transport of the PKI messages.

ETSI TS 102 941 V2.2.1 Annex C: requests are HTTP POSTs to the access point of the EA / AA (application/x-its-request, response application/x-its-response). Annexes D and E: CTL, CRL and ECTL are fetched with HTTP GET from the DC / CPOC. The transport is a trait so that tests (and other carriers) can replace it.

Structs§

HttpTransport
ureq transport with a timeout.
PkiTransportError
The PKI could not be reached or answered with an HTTP error.
Retry
A RetryPolicy with the clock and the wait it runs on.
RetryPolicy
Repetition of a request whose response is not received (ETSI TS 103 601 V2.1.1 clauses 5.1.4 and 5.2.4): the same message is sent again th1 seconds after the previous transmission (timer T1 / T4), at most n1 times in all (N1 / N2), and not after th2 seconds from the first one (T2 / T5, TH2 > TH1 x N1; NOTE 1 recommends 60 minutes).

Traits§

PkiTransport
Carrier of the PKI messages.

Functions§

post_with_retry
POST body (always the same message) until a response is received, following retry (one transmission when None). The error when no response came: the caller then drops the request and its session key (clause 5.1.2, case 2).

Type Aliases§

PkiSleep
Wait (seconds) between two transmissions of a request.