diff options
author | Linus Nordberg <linus@nordu.net> | 2010-09-13 17:27:40 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-09-13 17:27:40 +0200 |
commit | 23dfea91ef5e921da0b09d91004436a7d8715c42 (patch) | |
tree | 3ef5ba7681bbe664efb51064f29adc5cec2778b7 /lib/libradsec-base.h | |
parent | 8455dc9801730e599510c92cdb3e05da351aa7a5 (diff) |
First stab at a working blocking example.
Diffstat (limited to 'lib/libradsec-base.h')
-rw-r--r-- | lib/libradsec-base.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libradsec-base.h b/lib/libradsec-base.h index a972bf2..f46fb11 100644 --- a/lib/libradsec-base.h +++ b/lib/libradsec-base.h @@ -54,8 +54,9 @@ struct rs_packet *rs_packet_new(const struct rs_config *ctx, const uint8_t buf[RS_HEADER_LEN], size_t *count); +/* FIXME: if return NULL, @a packet is freed and the pointer is no longer valid! */ struct rs_packet *rs_packet_parse(const struct rs_config *ctx, - struct rs_packet *packet, + struct rs_packet **packet, const uint8_t *buf, size_t buflen); @@ -65,7 +66,7 @@ struct rs_packet *rs_packet_parse(const struct rs_config *ctx, FIXME */ void rs_packet_free(const struct rs_config *ctx, - struct rs_packet *packet); + struct rs_packet **packet); /** Serialize a packet. |