OpenVAS Libraries
4.0+rc3.SVN
|
00001 /* OpenVAS 00002 * 00003 * $Id$ 00004 * Description: Implementation for NTLMSSP support 00005 * 00006 * Author: 00007 * Preeti Subramanian <spreeti@secpod.com> 00008 * 00009 * Copyright: 00010 * Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License version 2 00014 * (or any later version), as published by the Free Software Foundation. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 00024 */ 00025 00026 #include <time.h> 00027 #include "smb.h" 00028 /*implemented in genrand.c*/ 00029 void generate_random_buffer_ntlmssp( unsigned char *out, int len); 00030 void set_need_random_reseed_ntlmssp(); 00031 /*implemented in time.c*/ 00032 void put_long_date_ntlmssp(char *p, time_t t); 00033 void GetTimeOfDay_ntlmssp(struct timeval *tval); 00034 /*implemented in iconv.c*/ 00035 size_t smb_iconv_ntlmssp(smb_iconv_t cd, 00036 const char **inbuf, size_t *inbytesleft, 00037 char **outbuf, size_t *outbytesleft); 00038 smb_iconv_t smb_iconv_open_ntlmssp(const char *tocode, const char *fromcode); 00039 int smb_iconv_close_ntlmssp (smb_iconv_t cd); 00040 /*implemented in arc4.c*/ 00041 void smb_arc4_init_ntlmssp(unsigned char arc4_state_out[258], const unsigned char *key, size_t keylen); 00042 void smb_arc4_crypt_ntlmssp(unsigned char arc4_state_inout[258], unsigned char *data, size_t len); 00043 /*implemented in charcnv.c*/ 00044 size_t push_ascii_ntlmssp(void *dest, const char *src, size_t dest_len, int flags); 00045 void lazy_initialize_conv_ntlmssp(void); 00046 void init_iconv_ntlmssp(void);