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

Name

Description

bs

Bit string to update.

name

Bit name to look up in tbl.

value

Non‐zero to set the bit, or 0 to clear it.

tbl

Table of bit names and bit numbers (BIT_STRING_BITNAME entries).

Created with MrDocs