Verify that every set bit in a is allowed by the flags mask.
Declared in <openssl/asn1.h>
int
ASN1_BIT_STRING_check(
ASN1_BIT_STRING const* a,
unsigned char const* flags,
int flags_len);
1 if all set bits are allowed (or a is empty), or 0 if any disallowed bit is set.
| Name | Description |
|---|---|
| a | Bit string to check; NULL or empty is treated as valid. |
| flags | Byte mask of permitted bits (1 = allowed). |
| flags_len | Length of flags in bytes. |