Exchange an HTTP request non-blockingly and decode the response body as ASN.1.
Declared in <openssl/http.h>
int
OSSL_HTTP_REQ_CTX_nbio_d2i(
OSSL_HTTP_REQ_CTX* rctx,
ASN1_VALUE** pval,
ASN1_ITEM const* it);
1 on completion with success, 0 on failure, or -1 if the I/O would block (retry later).
| Name | Description |
|---|---|
| rctx | Request context prepared with headers/body; may need multiple calls when BIOs would block. |
| pval | Destination for the decoded ASN.1 value (type described by it). |
| it | ASN.1 item descriptor used to decode the HTTP response body. |