| 1 | /* |
| 2 | * Copyright (C) 1997,2000,2003 Ian Jackson |
| 3 | * This file is part of ipif, part of userv-utils |
| 4 | * |
| 5 | * This is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with userv-utils; if not, write to the Free Software |
| 17 | * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | */ |
| 19 | |
| 20 | #ifndef HEX__H_INCLUDED |
| 21 | #define HEX__H_INCLUDED |
| 22 | |
| 23 | #include <stdint.h> |
| 24 | |
| 25 | const char *tohex(uint8_t *data, int len, char *buf); |
| 26 | void unhex(const char *what, const char *txt, uint8_t *datar, int *lenr, |
| 27 | int minlen, int maxlen); |
| 28 | |
| 29 | #endif |