Replace the raw bit-string payload of an ASN1_BIT_STRING.
Declared in <openssl/asn1.h>
int
ASN1_BIT_STRING_set(
ASN1_BIT_STRING* a,
unsigned char* d,
int length);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| a | Bit string to update. |
| d | Bytes to copy into the string (treated as the bit-string content octets). |
| length | Number of bytes at d, or -1 to use strlen on d. |