Replace the pointer at index i in a stack.

Synopsis

Declared in <openssl/stack.h>

void*
OPENSSL_sk_set(
    OPENSSL_STACK* st,
    int i,
    void const* data);

Return Value

Previous pointer at i, or NULL if i is out of range.

Parameters

Name

Description

st

Stack to update.

i

Zero‐based index of the slot to replace.

data

New element pointer stored at i.

Created with MrDocs