[#ASN1_BIT_STRING_set_bit] = ASN1_BIT_STRING_set_bit :mrdocs: Set or clear a single bit in an ASN.1 BIT STRING. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_BIT_STRING_set_bit( xref:ASN1_BIT_STRING.adoc[ASN1_BIT_STRING]* a, int n, int value); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *a* | Bit string to update (resized as needed). | *n* | Zero‐based bit index to change. | *value* | Nonzero to set the bit, or 0 to clear it. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#