Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
i2s_ASN1_ENUMERATED, i2s_ASN1_ENUMERATED_TABLE, i2s_ASN1_INTEGER, s2i_ASN1_INTEGER, i2s_ASN1_OCTET_STRING, s2i_ASN1_OCTET_STRING — ASN.1 data type conversion utilities for certificate extensionsSYNOPSIS
#include <openssl/asn1.h>#include <openssl/x509v3.h>
i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *method, const ASN1_ENUMERATED *a);
i2s_ASN1_INTEGER(X509V3_EXT_METHOD *method, const ASN1_INTEGER *a);
s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value);
i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, const ASN1_OCTET_STRING *aos);
s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *value);
i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method, const ASN1_ENUMERATED *aenum);
DESCRIPTION
These functions convert to and from ASN1_ENUMERATED, ASN1_INTEGER, and ASN1_OCTET_STRING objects. They are primarily used internally for parsing configuration files and displaying X.509v3 certificate extensions. With the exception of i2s_ASN1_ENUMERATED_TABLE(), these functions ignore the method argument. Any object or string returned by these functions must be freed by the caller.NID_crl_reason | reason codes, RFC 5280, 5.3.1 |
NID_key_usage | key usage, RFC 5280, 4.2.1.3 |
NID_netscape_cert_type | Netscape certificate type (obsolete) |