[#ASN1_BIT_STRING_set]
= ASN1&lowbar;BIT&lowbar;STRING&lowbar;set
:mrdocs:

Replace the raw bit&hyphen;string payload of an ASN1&lowbar;BIT&lowbar;STRING&period;

== Synopsis

Declared in `&lt;openssl&sol;asn1&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;BIT&lowbar;STRING&lowbar;set(
    xref:ASN1_BIT_STRING.adoc[ASN1&lowbar;BIT&lowbar;STRING]* a,
    unsigned char* d,
    int length);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Bit string to update&period;
| *d*
| Bytes to copy into the string (treated as the bit&hyphen;string content octets)&period;
| *length*
| Number of bytes at `d,` or &hyphen;1 to use strlen on `d&period;`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
