#include <stdarg.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "rpc.h"
#include "sspi.h"
#include "wincred.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (sspicli) |
| |
| SECURITY_STATUS SEC_ENTRY | SspiEncodeStringsAsAuthIdentity (const WCHAR *username, const WCHAR *domainname, const WCHAR *creds, PSEC_WINNT_AUTH_IDENTITY_OPAQUE *opaque_id) |
| |
| void SEC_ENTRY | SspiZeroAuthIdentity (PSEC_WINNT_AUTH_IDENTITY_OPAQUE opaque_id) |
| |
| SECURITY_STATUS SEC_ENTRY | SspiEncodeAuthIdentityAsStrings (PSEC_WINNT_AUTH_IDENTITY_OPAQUE opaque_id, PCWSTR *username, PCWSTR *domainname, PCWSTR *creds) |
| |
| void SEC_ENTRY | SspiFreeAuthIdentity (PSEC_WINNT_AUTH_IDENTITY_OPAQUE opaque_id) |
| |
| void SEC_ENTRY | SspiLocalFree (void *ptr) |
| |
| SECURITY_STATUS SEC_ENTRY | SspiPrepareForCredWrite (PSEC_WINNT_AUTH_IDENTITY_OPAQUE opaque_id, PCWSTR target, PULONG type, PCWSTR *targetname, PCWSTR *username, PUCHAR *blob, PULONG size) |
| |
◆ SspiEncodeAuthIdentityAsStrings()
Definition at line 103 of file main.c.
106{
108
109 FIXME(
"%p %p %p %p\n", opaque_id,
username, domainname, creds);
110
114
116}
static wchar_t * wcsdup(const wchar_t *str)
◆ SspiEncodeStringsAsAuthIdentity()
Definition at line 35 of file main.c.
38{
40 DWORD len_username = 0, len_domainname = 0, len_password = 0,
size;
42
45
47
49 if (domainname) len_domainname =
lstrlenW( domainname );
50 if (creds) len_password =
lstrlenW( creds );
51
54 if (domainname)
size += (len_domainname + 1) *
sizeof(
WCHAR);
55 if (creds)
size += (len_password + 1) *
sizeof(
WCHAR);
58
60 {
63 id->UserLength = len_username;
64 ptr += len_username + 1;
65 }
66 if (domainname)
67 {
70 id->DomainLength = len_domainname;
71 ptr += len_domainname + 1;
72 }
73 if (creds)
74 {
77 id->PasswordLength = len_password;
78 }
79
82}
#define memcpy(s1, s2, n)
#define SEC_E_INVALID_TOKEN
◆ SspiFreeAuthIdentity()
Definition at line 121 of file main.c.
122{
123 TRACE(
"%p\n", opaque_id );
125}
◆ SspiLocalFree()
◆ SspiPrepareForCredWrite()
Definition at line 139 of file main.c.
141{
146
149
150 if (
id->DomainLength)
151 {
152 len = (
id->DomainLength +
id->UserLength + 2) *
sizeof(
WCHAR);
155 str[
id->DomainLength] =
'\\';
157 str[
id->DomainLength + 1 +
id->UserLength] = 0;
158 }
159 else
160 {
161 len = (
id->UserLength + 1) *
sizeof(
WCHAR);
164 str[
id->UserLength] = 0;
165 }
166
169 {
172 }
173
174 len =
id->PasswordLength *
sizeof(
WCHAR);
176 {
180 }
182
188
190}
GLuint GLuint GLsizei GLenum type
XML_HIDDEN void xmlParserErrors const char const xmlChar const xmlChar * str2
#define CRED_TYPE_DOMAIN_PASSWORD
#define SEC_E_INSUFFICIENT_MEMORY
◆ SspiZeroAuthIdentity()
Definition at line 87 of file main.c.
88{
90
91 TRACE(
"%p\n", opaque_id );
92
93 if (!id) return;
97 memset(
id, 0,
sizeof(*
id) );
98}
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
sspicli |
| ) |
|