Verify that every set bit in a is allowed by the flags mask.
Synopsis
Declared in <openssl/asn1.h>
int
ASN1_BIT_STRING_check(
ASN1_BIT_STRING const* a,
unsigned char const* flags,
int flags_len);
Return Value
1 if all set bits are allowed (or a is empty), or 0 if any disallowed bit is set.
Parameters
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 |
Created with MrDocs