10 s2i_ASN1_OCTET_STRING,
12 i2s_ASN1_ENUMERATED_TABLE,
13 - convert objects from/to ASN.1/string representation
19 char *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, ASN1_IA5STRING *ia5);
20 ASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method,
21 X509V3_CTX *ctx, const char *str);
22 char *i2s_ASN1_INTEGER(X509V3_EXT_METHOD *method, const ASN1_INTEGER *a);
23 ASN1_INTEGER *s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value);
24 char *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,
25 const ASN1_OCTET_STRING *oct);
26 ASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,
27 X509V3_CTX *ctx, const char *str);
28 char *i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *method, const ASN1_ENUMERATED *a);
29 char *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method,
30 const ASN1_ENUMERATED *e);
34 These functions convert OpenSSL objects to and from their ASN.1/string
35 representation. This function is used for B<X509v3> extensions.
39 The letters B<i> and B<s> in B<i2s_ASN1_IA5STRING>() stand for
40 "internal" (that is, an internal C structure) and string respectively.
41 So B<i2s_ASN1_IA5STRING>() converts from internal to string.
43 It is the caller's responsibility to free the returned string.
44 In the B<i2s_ASN1_IA5STRING>() function the string is copied and
45 the ownership of the original string remains with the caller.
49 B<i2s_ASN1_IA5STRING>() returns the pointer to a IA5 string
50 or NULL if an error occurs.
52 B<s2i_ASN1_IA5STRING>() return a valid
53 B<ASN1_IA5STRING> structure or NULL if an error occurs.
55 B<i2s_ASN1_INTEGER>() return a valid
56 string or NULL if an error occurs.
58 B<s2i_ASN1_INTEGER>() returns the pointer to a B<ASN1_INTEGER>
59 structure or NULL if an error occurs.
61 B<i2s_ASN1_OCTET_STRING>() returns the pointer to a OCTET_STRING string
62 or NULL if an error occurs.
64 B<s2i_ASN1_OCTET_STRING>() return a valid
65 B<ASN1_OCTET_STRING> structure or NULL if an error occurs.
67 B<i2s_ASN1_ENUMERATED>() return a valid
68 string or NULL if an error occurs.
70 B<s2i_ASN1_ENUMERATED>() returns the pointer to a B<ASN1_ENUMERATED>
71 structure or NULL if an error occurs.
75 Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
77 Licensed under the Apache License 2.0 (the "License"). You may not use
78 this file except in compliance with the License. You can obtain a copy
79 in the file LICENSE in the source distribution or at
80 L<https://www.openssl.org/source/license.html>.