OSSL_HTTP_close

Close the HTTP connection and free the request context.

Synopsis

Declared in <openssl/http.h>

int
OSSL_HTTP_close(
    OSSL_HTTP_REQ_CTX* rctx,
    int ok);

Return Value

1 if disconnect completed cleanly, or 0 if anything went wrong while closing.

Parameters

NameDescription
rctxContext from OSSL_HTTP_open()/OSSL_HTTP_transfer(); may be NULL.
ok1 if the transfer succeeded (passed to any BIO update callback), or 0 on error.