#include <time.h>
#include "smb.h"
Go to the source code of this file.
|
void | generate_random_buffer_ntlmssp (unsigned char *out, int len) |
|
void | put_long_date_ntlmssp (char *p, time_t t) |
|
void | GetTimeOfDay_ntlmssp (struct timeval *tval) |
|
size_t | smb_iconv_ntlmssp (smb_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
|
smb_iconv_t | smb_iconv_open_ntlmssp (const char *tocode, const char *fromcode) |
|
int | smb_iconv_close_ntlmssp (smb_iconv_t cd) |
|
void | smb_arc4_init_ntlmssp (unsigned char arc4_state_out[258], const unsigned char *key, size_t keylen) |
|
void | smb_arc4_crypt_ntlmssp (unsigned char arc4_state_inout[258], unsigned char *data, size_t len) |
|
size_t | push_ascii_ntlmssp (void *dest, const char *src, size_t dest_len, int flags) |
|
void | lazy_initialize_conv_ntlmssp (void) |
|
void | init_iconv_ntlmssp (void) |
|
void generate_random_buffer_ntlmssp |
( |
unsigned char * |
out, |
|
|
int |
len |
|
) |
| |
void GetTimeOfDay_ntlmssp |
( |
struct timeval * |
tval | ) |
|
void init_iconv_ntlmssp |
( |
void |
| ) |
|
Initialize iconv conversion descriptors.
This is called the first time it is needed, and also called again every time the configuration is reloaded, because the charset or codepage might have changed.
void lazy_initialize_conv_ntlmssp |
( |
void |
| ) |
|
size_t push_ascii_ntlmssp |
( |
void * |
dest, |
|
|
const char * |
src, |
|
|
size_t |
dest_len, |
|
|
int |
flags |
|
) |
| |
Copy a string from a char* unix src to a dos codepage string destination.
- Returns
- the number of bytes occupied by the string in the destination.
- Parameters
-
flags | can include
- STR_TERMINATE
- means include the null termination
- STR_UPPER
- means uppercase in the destination
|
dest_len | the maximum length in bytes allowed in the destination. If dest_len is -1 then no maximum is used. |
void put_long_date_ntlmssp |
( |
char * |
p, |
|
|
time_t |
t |
|
) |
| |
void smb_arc4_crypt_ntlmssp |
( |
unsigned char |
arc4_state_inout[258], |
|
|
unsigned char * |
data, |
|
|
size_t |
len |
|
) |
| |
void smb_arc4_init_ntlmssp |
( |
unsigned char |
arc4_state_out[258], |
|
|
const unsigned char * |
key, |
|
|
size_t |
keylen |
|
) |
| |
size_t smb_iconv_ntlmssp |
( |
smb_iconv_t |
cd, |
|
|
const char ** |
inbuf, |
|
|
size_t * |
inbytesleft, |
|
|
char ** |
outbuf, |
|
|
size_t * |
outbytesleft |
|
) |
| |
This is a simple portable iconv() implementaion.
It only knows about a very small number of character sets - just enough that Samba works on systems that don't have iconv.
smb_iconv_t smb_iconv_open_ntlmssp |
( |
const char * |
tocode, |
|
|
const char * |
fromcode |
|
) |
| |