ASN1_tag2str (3)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
ASN1_tag2str, ASN1_STRING_print_ex, ASN1_STRING_print_ex_fp, ASN1_STRING_print - ASN1_STRING output routinesSYNOPSIS
#include <openssl/asn1.h> int ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags); int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags); int ASN1_STRING_print(BIO *out, const ASN1_STRING *str); const char *ASN1_tag2str(int tag);
DESCRIPTION
These functions output anASN1_STRING_print_ex() outputs str to out, the format is determined by the options flags. ASN1_STRING_print_ex_fp() is identical except it outputs to fp instead.
ASN1_STRING_print() prints str to out but using a different format to ASN1_STRING_print_ex(). It replaces unprintable characters (other than
ASN1_tag2str() returns a human-readable name of the specified
NOTES
ASN1_STRING_print() is a legacy function which should be avoided in new applications.Although there are a large number of options frequently
The complete set of supported options for flags is listed below.
Various characters can be escaped. If
Escaping takes several forms.
If the character being escaped is a 16 bit character then the form ``\UXXXX'' is used using exactly four characters for the hex representation. If it is 32 bits then ``\WXXXXXXXX'' is used using eight characters of its hex representation. These forms will only be used if
Printable characters are normally escaped using the backslash '\' character. If
If
If
If
The content of a string instead of being interpreted can be ``dumped'': this just outputs the value of the string using the form #XXXX using hex format for each octet.
If
Normally non character string types (such as
When a type is dumped normally just the content octets are printed, if
SEE ALSO
X509_NAME_print_ex(3), ASN1_tag2str(3)COPYRIGHT
Copyright 2002-2017 The OpenSSL Project Authors. All Rights Reserved.Licensed under the OpenSSL license (the ``License''). You may not use this file except in compliance with the License. You can obtain a copy in the file