diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-08 16:56:40 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-08 17:00:19 +0200 |
commit | 2c4f5ed657976d868c33f0ddf430477ee2bf0191 (patch) | |
tree | 2a278879f974691ae31be0853bb9313fb5d36a7f /trust/parser.h | |
parent | 03787ae83b1911118a7a689c4817bbce1e74dabd (diff) | |
download | p11-kit-2c4f5ed657976d868c33f0ddf430477ee2bf0191.tar.gz |
trust: Explicitly specify which formats parser should parse
Diffstat (limited to 'trust/parser.h')
-rw-r--r-- | trust/parser.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/trust/parser.h b/trust/parser.h index f956fb9..59cc378 100644 --- a/trust/parser.h +++ b/trust/parser.h @@ -34,9 +34,8 @@ #include "asn1.h" #include "array.h" +#include "compat.h" #include "dict.h" -#include "index.h" -#include "pkcs11.h" #ifndef P11_PARSER_H_ #define P11_PARSER_H_ @@ -71,4 +70,19 @@ int p11_parse_file (p11_parser *parser, p11_array * p11_parser_parsed (p11_parser *parser); +void p11_parser_formats (p11_parser *parser, + ...) GNUC_NULL_TERMINATED; + +int p11_parser_format_persist (p11_parser *parser, + const unsigned char *data, + size_t length); + +int p11_parser_format_pem (p11_parser *parser, + const unsigned char *data, + size_t length); + +int p11_parser_format_x509 (p11_parser *parser, + const unsigned char *data, + size_t length); + #endif /* P11_PARSER_H_ */ |