6 * Allocate a "secure buffer". A secure buffer is one which will attempt to
7 * catch out of bounds accesses by crashing the program (rather than
8 * corrupting memory). It works by using UNIX memory protection. It isn't
11 * p_ptr - pointer to a pointer which is to contain the secure buffer.
12 * Any previous buffer pointed to is freed.
13 * size - size in bytes required for the secure buffer.
15 void vsf_secbuf_alloc(char** p_ptr
, unsigned int size
);
19 * Frees a "secure buffer".
21 * p_ptr - pointer to a pointer containing the buffer to be freed. The
22 * buffer pointer is nullified by this call.
24 void vsf_secbuf_free(char** p_ptr
);
26 #endif /* VSF_SECBUF_H */