Lines Matching refs:identity
132 * This is used to populate a SSPI identity structure based on the supplied
139 * identity [in/out] - The identity structure.
144 SEC_WINNT_AUTH_IDENTITY *identity)
154 /* Initialize the identity */
155 memset(identity, 0, sizeof(*identity));
176 /* Setup the identity's user and length */
182 identity->User = dup_user.tbyte_ptr;
183 identity->UserLength = curlx_uztoul(_tcslen(dup_user.tchar_ptr));
186 /* Setup the identity's domain and length */
194 identity->Domain = dup_domain.tbyte_ptr;
195 identity->DomainLength = curlx_uztoul(domlen);
200 /* Setup the identity's password and length */
209 identity->Password = dup_passwd.tbyte_ptr;
210 identity->PasswordLength = curlx_uztoul(_tcslen(dup_passwd.tchar_ptr));
215 /* Setup the identity's flags */
216 identity->Flags = SECFLAG_WINNT_AUTH_IDENTITY;
228 * identity [in/out] - The identity structure.
230 void Curl_sspi_free_identity(SEC_WINNT_AUTH_IDENTITY *identity)
232 if(identity) {
233 Curl_safefree(identity->User);
234 Curl_safefree(identity->Password);
235 Curl_safefree(identity->Domain);