comparison buffer.h @ 1036:deed0571cacc

DROPBEAR_ prefix for include guards to avoid collisions
author Thorsten Horstmann <thorsten.horstmann@web.de>
date Tue, 24 Feb 2015 20:43:01 +0800
parents ac2158e3e403
children 16584026a1f0
comparison
equal deleted inserted replaced
1022:4121ca987e6a 1036:deed0571cacc
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 * SOFTWARE. */ 23 * SOFTWARE. */
24 24
25 #ifndef _BUFFER_H_ 25 #ifndef DROPBEAR_BUFFER_H_
26 26
27 #define _BUFFER_H_ 27 #define DROPBEAR_BUFFER_H_
28 28
29 #include "includes.h" 29 #include "includes.h"
30 30
31 struct buf { 31 struct buf {
32 32
63 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len); 63 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len);
64 void buf_putmpint(buffer* buf, mp_int * mp); 64 void buf_putmpint(buffer* buf, mp_int * mp);
65 int buf_getmpint(buffer* buf, mp_int* mp); 65 int buf_getmpint(buffer* buf, mp_int* mp);
66 unsigned int buf_getint(buffer* buf); 66 unsigned int buf_getint(buffer* buf);
67 67
68 #endif /* _BUFFER_H_ */ 68 #endif /* DROPBEAR_BUFFER_H_ */