[#ASN1_STRING_length_set] = ASN1_STRING_length_set :mrdocs: Set the reported content length of an ASN.1 string without resizing its buffer (deprecated). == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] void ASN1_STRING_length_set( xref:ASN1_STRING.adoc[ASN1_STRING]* x, int n); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Description Prefer ASN1_STRING_set() or ASN1_STRING_set0(), which keep length and data consistent. == Parameters [cols="1,4"] |=== | Name| Description | *x* | String whose length field is updated. | *n* | New length in bytes; the caller must ensure the data buffer is large enough. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#