ASN1_BIT_STRING_set_bit

Set or clear a single bit in an ASN.1 BIT STRING.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_BIT_STRING_set_bit(
    ASN1_BIT_STRING* a,
    int n,
    int value);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
aBit string to update (resized as needed).
nZero-based bit index to change.
valueNonzero to set the bit, or 0 to clear it.