Copy data of length len into an ASN.1 string.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_STRING_set(
    ASN1_STRING* str,
    void const* data,
    int len);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

str

String whose content is replaced with a copy of data.

data

Bytes to copy; may be a C string when len is ‐1.

len

Number of bytes at data, or ‐1 to use strlen(data).

Created with MrDocs