ASN1_BIT_STRING_get_bit

Test whether bit n is set in an ASN.1 BIT STRING.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_BIT_STRING_get_bit(
    ASN1_BIT_STRING const* a,
    int n);

Return Value

1 if the bit is set, or 0 if clear / out of range / a is NULL.

Parameters

NameDescription
aBit string to query; NULL or short strings are treated as clear.
nZero-based bit index.