Clean and tiddy-up files.
[tomato.git] / release / src / router / vsftpd / secbuf.h
blobb59ebf96188e5c524cc0f07574d87803c054dddf
1 #ifndef VSF_SECBUF_H
2 #define VSF_SECBUF_H
4 /* vsf_secbuf_alloc()
5 * PURPOSE
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
9 * foolproof.
10 * PARAMETERS
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);
17 /* vsf_secbuf_free()
18 * PURPOSE
19 * Frees a "secure buffer".
20 * PARAMETERS
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 */