Commit 7162e47e authored by Niels Möller's avatar Niels Möller
Browse files

* sexp-transport.c (sexp_transport_iterator_first): New file and

* sexp.h (sexp_transport_iterator_first): Added protoype.

Rev: src/nettle/sexp.h:1.6
parent b64b3086
...@@ -58,6 +58,11 @@ int ...@@ -58,6 +58,11 @@ int
sexp_iterator_first(struct sexp_iterator *iterator, sexp_iterator_first(struct sexp_iterator *iterator,
unsigned length, const uint8_t *input); unsigned length, const uint8_t *input);
/* NOTE: Decodes the input string in place */
sexp_transport_iterator_first(struct sexp_iterator *iterator,
unsigned length, uint8_t *input);
int int
sexp_iterator_next(struct sexp_iterator *iterator); sexp_iterator_next(struct sexp_iterator *iterator);
...@@ -106,5 +111,12 @@ struct nettle_buffer; ...@@ -106,5 +111,12 @@ struct nettle_buffer;
int int
sexp_format(struct nettle_buffer *buffer, const char *format, ...); sexp_format(struct nettle_buffer *buffer, const char *format, ...);
sexp_transport_format(struct nettle_buffer *buffer,
/* If non-zero, break lines to at most
* line_length characters. */
unsigned line_length,
const char *format, ...);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment