ASYNC_WAIT_CTX_get_fd

Look up the wait file descriptor registered under key.

Synopsis

Declared in <openssl/async.h>

int
ASYNC_WAIT_CTX_get_fd(
    ASYNC_WAIT_CTX* ctx,
    void const* key,
    int* fd,
    void** custom_data);

Return Value

1 if a matching fd was found, or 0 otherwise.

Parameters

NameDescription
ctxWait context to query.
keyUnique key previously passed to ASYNC_WAIT_CTX_set_wait_fd.
fdReceives the registered OSSL_ASYNC_FD on success.
custom_dataReceives the custom_data pointer registered with the fd, or NULL.