|
Botan 3.13.0
Crypto and TLS for C&
|
#include <asn1_print.h>
Public Member Functions | |
| ASN1_Pretty_Printer (size_t print_limit=4096, size_t print_binary_limit=2048, bool print_context_specific=true, size_t initial_level=0, size_t value_column=60, size_t max_depth=64, bool require_der=false) | |
| template<typename Alloc> | |
| std::string | print (const std::vector< uint8_t, Alloc > &vec) const |
| std::string | print (const uint8_t in[], size_t len) const |
| void | print_to_stream (std::ostream &out, const uint8_t in[], size_t len) const |
Format ASN.1 data into human readable output. The exact form of the output for any particular input is not guaranteed and may change from release to release.
Definition at line 100 of file asn1_print.h.
|
inlineexplicit |
Create a pretty printer with the given settings
| print_limit | strings larger than this are not printed |
| print_binary_limit | binary strings larger than this are not printed |
| print_context_specific | if true, try to parse nested context specific data. |
| initial_level | the initial depth (0 or 1 are the only reasonable values) |
| value_column | ASN.1 values are lined up at this column in output |
| max_depth | do not recurse more than this many times. If zero, recursion is unbounded. |
| require_der | if true then non-canonical BER data is rejected |
Definition at line 114 of file asn1_print.h.
References Botan::ASN1_Formatter::ASN1_Formatter().
|
inlineinherited |
Return the given ASN.1 data in formatted form
| vec | the DER or BER encoded data |
Definition at line 61 of file asn1_print.h.
References print().
|
inherited |
Return the given ASN.1 data in formatted form
| in | the DER or BER encoded data |
| len | the length of in in bytes |
Definition at line 61 of file asn1_print.cpp.
References print_to_stream().
Referenced by print().
|
inherited |
Format the given ASN.1 data, writing the result to a stream
| out | the stream to write the formatted output to |
| in | the DER or BER encoded data |
| len | the length of in in bytes |
Definition at line 67 of file asn1_print.cpp.
References Botan::BER_Decoder::Limits::BER(), Botan::BER_Decoder::Limits::DER(), and Botan::BER_Decoder::Limits::with_standalone_eoc_allowed().
Referenced by print().