summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/ASN1_STRING_length.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/ASN1_STRING_length.3')
-rw-r--r--src/lib/libcrypto/man/ASN1_STRING_length.330
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/libcrypto/man/ASN1_STRING_length.3 b/src/lib/libcrypto/man/ASN1_STRING_length.3
index f43d61819f..2c797481d7 100644
--- a/src/lib/libcrypto/man/ASN1_STRING_length.3
+++ b/src/lib/libcrypto/man/ASN1_STRING_length.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ASN1_STRING_length.3,v 1.5 2016/11/10 11:44:52 schwarze Exp $ 1.\" $OpenBSD: ASN1_STRING_length.3,v 1.6 2016/12/25 22:15:10 schwarze Exp $
2.\" OpenSSL 99d63d46 Tue Jun 21 07:03:34 2016 -0400 2.\" OpenSSL 99d63d46 Tue Jun 21 07:03:34 2016 -0400
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson. 4.\" This file was written by Dr. Stephen Henson.
@@ -49,7 +49,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: November 10 2016 $ 52.Dd $Mdocdate: December 25 2016 $
53.Dt ASN1_STRING_LENGTH 3 53.Dt ASN1_STRING_LENGTH 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -182,12 +182,11 @@ and the functions call the
182.Vt ASN1_STRING 182.Vt ASN1_STRING
183equivalents. 183equivalents.
184.Vt ASN1_STRING 184.Vt ASN1_STRING
185is also used for some 185is also used for some CHOICE types which consist entirely of primitive
186.Sy CHOICE 186string types such as
187types which consist entirely of primitive string types such as 187.Vt DirectoryString
188.Sy DirectoryString
189and 188and
190.Sy Time . 189.Vt Time .
191.Pp 190.Pp
192These functions should 191These functions should
193.Em not 192.Em not
@@ -195,19 +194,20 @@ be used to examine or modify
195.Vt ASN1_INTEGER 194.Vt ASN1_INTEGER
196or 195or
197.Vt ASN1_ENUMERATED 196.Vt ASN1_ENUMERATED
198types: the relevant 197types: the relevant INTEGER or ENUMERATED utility functions should
199.Sy INTEGER 198be used instead.
200or
201.Sy ENUMERATED
202utility functions should be used instead.
203.Pp 199.Pp
204In general it cannot be assumed that the data returned by 200In general it cannot be assumed that the data returned by
205.Fn ASN1_STRING_data 201.Fn ASN1_STRING_data
206is NUL terminated, and it may contain embedded NUL characters. 202is NUL terminated, and it may contain embedded NUL characters.
207The actual format of the data will depend on the actual string type itself: 203The actual format of the data will depend on the actual string type itself:
208for example for an IA5String the data will be ASCII, 204for example for an
209for a BMPString two bytes per character in big endian format, 205.Vt IA5String
210UTF8String will be in UTF8 format. 206the data will be ASCII, for a
207.Vt BMPString
208two bytes per character in big endian format, and a
209.Vt UTF8String
210will be in UTF8 format.
211.Pp 211.Pp
212Similar care should be take to ensure the data is in the correct format 212Similar care should be take to ensure the data is in the correct format
213when calling 213when calling