[#ASN1_STRING_length_set]
= ASN1&lowbar;STRING&lowbar;length&lowbar;set
:mrdocs:

Set the reported content length of an ASN&period;1 string without resizing its buffer (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;asn1&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
void
ASN1&lowbar;STRING&lowbar;length&lowbar;set(
    xref:ASN1_STRING.adoc[ASN1&lowbar;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&lowbar;STRING&lowbar;set() or ASN1&lowbar;STRING&lowbar;set0(), which keep length and data consistent&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| String whose length field is updated&period;
| *n*
| New length in bytes&semi; the caller must ensure the data buffer is large enough&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
