OpenVAS Libraries
4.0+rc3.SVN
|
00001 /* 00002 Unix SMB/CIFS implementation. 00003 SMB Signing Code 00004 Copyright (C) Jeremy Allison 2003. 00005 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2002-2003 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00020 00021 Modified by Preeti Subramanian <spreeti@secpod.com> for OpenVAS: 00022 simple packet signature function argument struct smb_basic_signing_context 00023 *data to uint8_t* mac_key and henceforth used mac_key in the implementation 00024 */ 00025 00026 #ifndef _SMB_SIGNING_H 00027 #define _SMB_SIGNING_H 00028 00029 #include "md5.h" 00030 #include "byteorder.h" 00031 #include "smb.h" 00032 00033 #ifndef uchar 00034 #define uchar unsigned char 00035 #endif 00036 00037 #ifndef uint8 00038 #define uint8 uint8_t 00039 #endif 00040 00041 void simple_packet_signature_ntlmssp(uint8_t *mac_key, const uchar *buf, uint32 seq_number, unsigned char *calc_md5_mac); 00042 00043 #endif