ASN1_BIT_STRING_set_asc

Set or clear a named bit in an ASN.1 bit string using a name table.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_BIT_STRING_set_asc(
    ASN1_BIT_STRING* bs,
    char const* name,
    int value,
    BIT_STRING_BITNAME* tbl);

Return Value

1 on success, or 0 if name is not found in tbl.

Parameters

NameDescription
bsBit string to update.
nameBit name to look up in tbl.
valueNon-zero to set the bit, or 0 to clear it.
tblTable of bit names and bit numbers (BIT_STRING_BITNAME entries).