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

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.

Created with MrDocs