Home | History | Annotate | Download | only in base

Lines Matching defs:auth_id

957       SEC_WINNT_AUTH_IDENTITY_A auth_id, * pauth_id = 0;
959 memset(&auth_id, 0, sizeof(auth_id));
965 auth_id.UserLength = static_cast<unsigned long>(
967 memcpy(userbuf, username.c_str(), auth_id.UserLength);
968 userbuf[auth_id.UserLength] = 0;
969 auth_id.DomainLength = 0;
970 domainbuf[auth_id.DomainLength] = 0;
971 auth_id.PasswordLength = static_cast<unsigned long>(
973 memcpy(passbuf, sensitive, auth_id.PasswordLength);
974 passbuf[auth_id.PasswordLength] = 0;
976 auth_id.UserLength = static_cast<unsigned long>(
978 memcpy(userbuf, username.c_str() + pos + 1, auth_id.UserLength);
979 userbuf[auth_id.UserLength] = 0;
980 auth_id.DomainLength = static_cast<unsigned long>(
982 memcpy(domainbuf, username.c_str(), auth_id.DomainLength);
983 domainbuf[auth_id.DomainLength] = 0;
984 auth_id.PasswordLength = static_cast<unsigned long>(
986 memcpy(passbuf, sensitive, auth_id.PasswordLength);
987 passbuf[auth_id.PasswordLength] = 0;
991 auth_id.User = userbuf;
992 auth_id.Domain = domainbuf;
993 auth_id.Password = passbuf;
994 auth_id.Flags = SEC_WINNT_AUTH_IDENTITY_ANSI;
995 pauth_id = &auth_id;