Commit a4a1c06b authored by Martti Mela's avatar Martti Mela

iptsec: started NTLM support

parent 58bc386a
......@@ -109,6 +109,12 @@ static msg_header_t *auc_digest_authorization(auth_client_t *ca,
url_t const *url,
msg_payload_t const *body);
static msg_header_t *auc_ntlm_authorization(auth_client_t *ca,
su_home_t *h,
char const *method,
url_t const *url,
msg_payload_t const *body);
/** Allocate a dummy auth_client_t structure. */
auth_client_t *ca_create(su_home_t *home)
......@@ -233,6 +239,9 @@ int ca_challenge(auth_client_t *ca,
else if (strcasecmp(scheme, "Digest") == 0) {
ca->ca_authorize = auc_digest_authorization;
else if (strcasecmp(scheme, "NTLM") == 0) {
ca->ca_authorize = auc_ntlm_authorization;
return -1;
This diff is collapsed.
......@@ -235,6 +235,13 @@ int auth_validate_digest_nonce(auth_mod_t *am,
auth_response_t *ar,
msg_time_t now);
/** NTLM scheme */
msg_auth_t *auth_ntlm_credentials(msg_auth_t *auth,
char const *realm,
char const *opaque,
char const *gssapi-data,
char const *targetname);
int auth_allow_check(auth_mod_t *am, auth_status_t *as);
int auth_get_params(su_home_t *home,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment