Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame^] | 1 | // Copyright (C) 2010 David Sugar, Tycho Softworks. |
| 2 | // |
| 3 | // This file is part of GNU uCommon C++. |
| 4 | // |
| 5 | // GNU uCommon C++ is free software: you can redistribute it and/or modify |
| 6 | // it under the terms of the GNU Lesser General Public License as published |
| 7 | // by the Free Software Foundation, either version 3 of the License, or |
| 8 | // (at your option) any later version. |
| 9 | // |
| 10 | // GNU uCommon C++ is distributed in the hope that it will be useful, |
| 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | // GNU Lesser General Public License for more details. |
| 14 | // |
| 15 | // You should have received a copy of the GNU Lesser General Public License |
| 16 | // along with GNU uCommon C++. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | #include "local.h" |
| 19 | |
| 20 | bool HMAC::has(const char *id) |
| 21 | { |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | void HMAC::set(const char *digest, const char *key, size_t len) |
| 26 | { |
| 27 | release(); |
| 28 | } |
| 29 | |
| 30 | void HMAC::release(void) |
| 31 | { |
| 32 | bufsize = 0; |
| 33 | textbuf[0] = 0; |
| 34 | |
| 35 | hmactype = " "; |
| 36 | } |
| 37 | |
| 38 | bool HMAC::put(const void *address, size_t size) |
| 39 | { |
| 40 | return false; |
| 41 | } |
| 42 | |
| 43 | const unsigned char *HMAC::get(void) |
| 44 | { |
| 45 | if(bufsize) |
| 46 | return buffer; |
| 47 | |
| 48 | return NULL; |
| 49 | } |
| 50 | |