18e4fe9d836e8f7bee52724374ffc0011172329f |
|
30-Mar-2017 |
Pavel Březina <pbrezina@redhat.com> |
sss_iobuf: fix 'read' shadows a global declaration
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
5f7f45a64bdb9353f15b945db4ad2564b4b28ab2 |
|
27-Mar-2017 |
Jakub Hrozek <jhrozek@redhat.com> |
UTIL: Add type-specific getsetters to sss_iobuf
The KCM responder receives its input as unstructured data. To make the
parsing easier, this commit adds several type-specific getsetters to the
iobuf module.
Reviewed-by: Michal Židek <mzidek@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
3a4a88259ba90d3dc45c1adbbfd39bd7c0204a12 |
|
27-Mar-2017 |
Jakub Hrozek <jhrozek@redhat.com> |
UTIL: iobuf: Make input parameter for the readonly operation const
Reviewed-by: Michal Židek <mzidek@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
9a9b5e115b079751422be22fd252c0b283611c62 |
|
14-Mar-2017 |
Jakub Hrozek <jhrozek@redhat.com> |
UTIL: Add a generic iobuf module
The KCM responder reads bytes and writes bytes from a buffer of bytes.
Instead of letting the caller deal with low-level handling using the
SAFEALIGN macros, this patch adds a new iobuf.c module with more
high-level functions.
The core is a iobuf struct that keeps track of the buffer, its total
capacity and a current read or write position.
There are helper function to read or write a generic buffer with a set
length. Later, we will also add convenience functions to read C data
types using the SAFEALIGN macros.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |