1S2I_ASN1_IA5STRING(3ossl) OpenSSL S2I_ASN1_IA5STRING(3ossl)
2
3
4
6 i2s_ASN1_IA5STRING, s2i_ASN1_IA5STRING, i2s_ASN1_INTEGER,
7 s2i_ASN1_INTEGER, i2s_ASN1_OCTET_STRING, s2i_ASN1_OCTET_STRING,
8 i2s_ASN1_ENUMERATED, i2s_ASN1_ENUMERATED_TABLE, i2s_ASN1_UTF8STRING,
9 s2i_ASN1_UTF8STRING - convert objects from/to ASN.1/string
10 representation
11
13 #include <openssl/x509v3.h>
14
15 char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, ASN1_IA5STRING *ia5);
16 ASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method,
17 X509V3_CTX *ctx, const char *str);
18 char *i2s_ASN1_INTEGER(X509V3_EXT_METHOD *method, const ASN1_INTEGER *a);
19 ASN1_INTEGER *s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value);
20 char *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,
21 const ASN1_OCTET_STRING *oct);
22 ASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,
23 X509V3_CTX *ctx, const char *str);
24 char *i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *method, const ASN1_ENUMERATED *a);
25 char *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method,
26 const ASN1_ENUMERATED *e);
27
28 char *i2s_ASN1_UTF8STRING(X509V3_EXT_METHOD *method,
29 ASN1_UTF8STRING *utf8);
30 ASN1_UTF8STRING *s2i_ASN1_UTF8STRING(X509V3_EXT_METHOD *method,
31 X509V3_CTX *ctx, const char *str);
32
34 These functions convert OpenSSL objects to and from their ASN.1/string
35 representation. This function is used for X509v3 extensions.
36
38 The letters i and s in i2s and s2i stand for "internal" (that is, an
39 internal C structure) and string respectively. So i2s_ASN1_IA5STRING()
40 converts from internal to string.
41
42 It is the caller's responsibility to free the returned string. In the
43 i2s_ASN1_IA5STRING() function the string is copied and the ownership of
44 the original string remains with the caller.
45
47 i2s_ASN1_IA5STRING() returns the pointer to a IA5 string or NULL if an
48 error occurs.
49
50 s2i_ASN1_IA5STRING() return a valid ASN1_IA5STRING structure or NULL if
51 an error occurs.
52
53 i2s_ASN1_INTEGER() return a valid string or NULL if an error occurs.
54
55 s2i_ASN1_INTEGER() returns the pointer to a ASN1_INTEGER structure or
56 NULL if an error occurs.
57
58 i2s_ASN1_OCTET_STRING() returns the pointer to a OCTET_STRING string or
59 NULL if an error occurs.
60
61 s2i_ASN1_OCTET_STRING() return a valid ASN1_OCTET_STRING structure or
62 NULL if an error occurs.
63
64 i2s_ASN1_ENUMERATED() return a valid string or NULL if an error occurs.
65
66 s2i_ASN1_ENUMERATED() returns the pointer to a ASN1_ENUMERATED
67 structure or NULL if an error occurs.
68
69 s2i_ASN1_UTF8STRING() return a valid ASN1_UTF8STRING structure or NULL
70 if an error occurs.
71
72 i2s_ASN1_UTF8STRING() returns the pointer to a UTF-8 string or NULL if
73 an error occurs.
74
76 i2s_ASN1_UTF8STRING() and s2i_ASN1_UTF8STRING() were made public in
77 OpenSSL 3.0.
78
80 Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
81
82 Licensed under the Apache License 2.0 (the "License"). You may not use
83 this file except in compliance with the License. You can obtain a copy
84 in the file LICENSE in the source distribution or at
85 <https://www.openssl.org/source/license.html>.
86
87
88
893.0.5 2022-07-05 S2I_ASN1_IA5STRING(3ossl)