OSSL_HTTP_REQ_CTX_nbio_d2i

Exchange an HTTP request non-blockingly and decode the response body as ASN.1.

Synopsis

Declared in <openssl/http.h>

int
OSSL_HTTP_REQ_CTX_nbio_d2i(
    OSSL_HTTP_REQ_CTX* rctx,
    ASN1_VALUE** pval,
    ASN1_ITEM const* it);

Return Value

1 on completion with success, 0 on failure, or -1 if the I/O would block (retry later).

Parameters

NameDescription
rctxRequest context prepared with headers/body; may need multiple calls when BIOs would block.
pvalDestination for the decoded ASN.1 value (type described by it).
itASN.1 item descriptor used to decode the HTTP response body.