Home | History | Annotate | Download | only in base

Lines Matching refs:auth_id

948       SEC_WINNT_AUTH_IDENTITY_A auth_id, * pauth_id = 0;
950 memset(&auth_id, 0, sizeof(auth_id));
956 auth_id.UserLength = static_cast<unsigned long>(
958 memcpy(userbuf, username.c_str(), auth_id.UserLength);
959 userbuf[auth_id.UserLength] = 0;
960 auth_id.DomainLength = 0;
961 domainbuf[auth_id.DomainLength] = 0;
962 auth_id.PasswordLength = static_cast<unsigned long>(
964 memcpy(passbuf, sensitive, auth_id.PasswordLength);
965 passbuf[auth_id.PasswordLength] = 0;
967 auth_id.UserLength = static_cast<unsigned long>(
969 memcpy(userbuf, username.c_str() + pos + 1, auth_id.UserLength);
970 userbuf[auth_id.UserLength] = 0;
971 auth_id.DomainLength = static_cast<unsigned long>(
973 memcpy(domainbuf, username.c_str(), auth_id.DomainLength);
974 domainbuf[auth_id.DomainLength] = 0;
975 auth_id.PasswordLength = static_cast<unsigned long>(
977 memcpy(passbuf, sensitive, auth_id.PasswordLength);
978 passbuf[auth_id.PasswordLength] = 0;
982 auth_id.User = userbuf;
983 auth_id.Domain = domainbuf;
984 auth_id.Password = passbuf;
985 auth_id.Flags = SEC_WINNT_AUTH_IDENTITY_ANSI;
986 pauth_id = &auth_id;