pidgin 2.14.14dev
ntlm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

gchar * purple_ntlm_gen_type1 (const gchar *hostname, const gchar *domain)
 Generates the base64 encoded type 1 message needed for NTLM authentication. More...
 
guint8 * purple_ntlm_parse_type2 (const gchar *type2, guint32 *flags)
 Parses the ntlm type 2 message. More...
 
gchar * purple_ntlm_gen_type3 (const gchar *username, const gchar *passw, const gchar *hostname, const gchar *domain, const guint8 *nonce, guint32 *flags)
 Generates a type3 message. More...
 

Function Documentation

◆ purple_ntlm_gen_type1()

gchar * purple_ntlm_gen_type1 ( const gchar *  hostname,
const gchar *  domain 
)

Generates the base64 encoded type 1 message needed for NTLM authentication.

Parameters
hostnameYour hostname
domainThe domain to authenticate to
Returns
base64 encoded string to send to the server. This should be g_free'd by the caller.

◆ purple_ntlm_gen_type3()

gchar * purple_ntlm_gen_type3 ( const gchar *  username,
const gchar *  passw,
const gchar *  hostname,
const gchar *  domain,
const guint8 *  nonce,
guint32 *  flags 
)

Generates a type3 message.

Parameters
usernameThe username
passwThe password
hostnameThe hostname
domainThe domain to authenticate against
nonceThe nonce returned by purple_ntlm_parse_type2
flagsPointer to the flags returned by purple_ntlm_parse_type2
Returns
A base64 encoded type3 message. This should be g_free'd by the caller.

◆ purple_ntlm_parse_type2()

guint8 * purple_ntlm_parse_type2 ( const gchar *  type2,
guint32 *  flags 
)

Parses the ntlm type 2 message.

Parameters
type2String containing the base64 encoded type2 message
flagsIf not NULL, this will store the flags for the message
Returns
The nonce for use in message type3. This is a statically allocated 8 byte binary string.