summaryrefslogtreecommitdiff
path: root/libsoup/soup-ntlm.h
blob: 5b35f429f3f5c95674e1a6d7073c674ade96a497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * soup-ntlm.h: Microsoft Windows NTLM authentication support
 *
 * Authors:
 *      Dan Winship (danw@ximian.com)
 *
 * Copyright (C) 2001, Ximian, Inc.
 */

#ifndef NTLM_H
#define NTLM_H 1

#include <glib.h>

void     soup_ntlm_lanmanager_hash (const char *password,
				    guchar hash[21]);

void     soup_ntlm_nt_hash         (const char *password,
				    guchar hash[21]);

char    *soup_ntlm_request         (void);

gboolean soup_ntlm_parse_challenge (const char *challenge,
				    char      **nonce,
				    char      **default_domain);

char    *soup_ntlm_response        (const char *nonce, 
				    const char *user,
				    const char *password,
				    const char *host, 
				    const char *domain);

#endif /* NTLM_H */