]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* sexp-transport.c (sexp_transport_iterator_first): New file and
authorNiels Möller <nisse@lysator.liu.se>
Mon, 21 Oct 2002 13:41:29 +0000 (15:41 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 21 Oct 2002 13:41:29 +0000 (15:41 +0200)
function.
* sexp.h (sexp_transport_iterator_first): Added protoype.

Rev: src/nettle/sexp.h:1.6

sexp.h

diff --git a/sexp.h b/sexp.h
index 6ef775e5745e3d82f9ad5633b35d1a3ca76e4639..24d1906315be2bffccc565904d3f306697284571 100644 (file)
--- a/sexp.h
+++ b/sexp.h
@@ -58,6 +58,11 @@ int
 sexp_iterator_first(struct sexp_iterator *iterator,
                    unsigned length, const uint8_t *input);
 
+/* NOTE: Decodes the input string in place */
+int
+sexp_transport_iterator_first(struct sexp_iterator *iterator,
+                             unsigned length, uint8_t *input);
+
 int
 sexp_iterator_next(struct sexp_iterator *iterator);
 
@@ -106,5 +111,12 @@ struct nettle_buffer;
 int
 sexp_format(struct nettle_buffer *buffer, const char *format, ...);
 
+int
+sexp_transport_format(struct nettle_buffer *buffer,
+                     /* If non-zero, break lines to at most
+                      * line_length characters. */
+                     unsigned line_length,
+                     const char *format, ...);
+
 
 #endif /* NETTLE_SEXP_H_INCLUDED */