ASN1_OCTET_STRING_set

Copy data of length len into an ASN.1 OCTET STRING.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_OCTET_STRING_set(
    ASN1_OCTET_STRING* str,
    unsigned char const* data,
    int len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
strOctet string whose content is replaced.
dataBytes to copy into str.
lenNumber of bytes at data.