⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asn1_string_print_ex.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMEASN1_STRING_print_ex, ASN1_STRING_print_ex_fp - ASN1_STRING output routines.=head1 SYNOPSIS #include <openssl/asn1.h> int ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags); int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); int ASN1_STRING_print(BIO *out, ASN1_STRING *str);=head1 DESCRIPTIONThese functions output an B<ASN1_STRING> structure. B<ASN1_STRING> is used torepresent all the ASN1 string types.ASN1_STRING_print_ex() outputs B<str> to B<out>, the format is determined bythe options B<flags>. ASN1_STRING_print_ex_fp() is identical except it outputsto B<fp> instead.ASN1_STRING_print() prints B<str> to B<out> but using a different format toASN1_STRING_print_ex(). It replaces unprintable characters (other than CR, LF)with '.'.=head1 NOTESASN1_STRING_print() is a legacy function which should be avoided in new applications.Although there are a large number of options frequently B<ASN1_STRFLGS_RFC2253> is suitable, or on UTF8 terminals B<ASN1_STRFLGS_RFC2253 & ~ASN1_STRFLGS_ESC_MSB>.The complete set of supported options for B<flags> is listed below.Various characters can be escaped. If B<ASN1_STRFLGS_ESC_2253> is set the charactersdetermined by RFC2253 are escaped. If B<ASN1_STRFLGS_ESC_CTRL> is set controlcharacters are escaped. If B<ASN1_STRFLGS_ESC_MSB> is set characters with theMSB set are escaped: this option should B<not> be used if the terminal correctlyinterprets UTF8 sequences.Escaping takes several forms.If the character being escaped is a 16 bit character then the form "\UXXXX" is usedusing exactly four characters for the hex representation. If it is 32 bits then"\WXXXXXXXX" is used using eight characters of its hex representation. These formswill only be used if UTF8 conversion is not set (see below).Printable characters are normally escaped using the backslash '\' character. IfB<ASN1_STRFLGS_ESC_QUOTE> is set then the whole string is instead surrounded bydouble quote characters: this is arguably more readable than the backslashnotation. Other characters use the "\XX" using exactly two characters of the hexrepresentation.If B<ASN1_STRFLGS_UTF8_CONVERT> is set then characters are converted to UTF8format first. If the terminal supports the display of UTF8 sequences then thisoption will correctly display multi byte characters.If B<ASN1_STRFLGS_IGNORE_TYPE> is set then the string type is not interpreted atall: everything is assumed to be one byte per character. This is primarily fordebugging purposes and can result in confusing output in multi character strings.If B<ASN1_STRFLGS_SHOW_TYPE> is set then the string type itself is printed outbefore its value (for example "BMPSTRING"), this actually uses ASN1_tag2str().The content of a string instead of being interpreted can be "dumped": this justoutputs the value of the string using the form #XXXX using hex format for eachoctet.If B<ASN1_STRFLGS_DUMP_ALL> is set then any type is dumped.Normally non character string types (such as OCTET STRING) are assumed to beone byte per character, if B<ASN1_STRFLGS_DUMP_UNKNOWN> is set then they willbe dumped instead.When a type is dumped normally just the content octets are printed, if B<ASN1_STRFLGS_DUMP_DER> is set then the complete encoding is dumpedinstead (including tag and length octets).B<ASN1_STRFLGS_RFC2253> includes all the flags required by RFC2253. It isequivalent to: ASN1_STRFLGS_ESC_2253 | ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_DUMP_UNKNOWN ASN1_STRFLGS_DUMP_DER=head1 SEE ALSOL<X509_NAME_print_ex(3)|X509_NAME_print_ex(3)>,L<ASN1_tag2str(3)|ASN1_tag2str(3)>=head1 HISTORYTBA=cut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -