ASN1_BIT_STRING_set

Replace the raw bit-string payload of an ASN1_BIT_STRING.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_BIT_STRING_set(
    ASN1_BIT_STRING* a,
    unsigned char* d,
    int length);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
aBit string to update.
dBytes to copy into the string (treated as the bit-string content octets).
lengthNumber of bytes at d, or -1 to use strlen on d.