Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c5188014
Commit
c5188014
authored
Jun 13, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Set the SSL server name to enable the SNI extension.
parent
661c2b8a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
schannel.c
dlls/secur32/schannel.c
+12
-0
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+9
-0
schannel_macosx.c
dlls/secur32/schannel_macosx.c
+9
-0
secur32_priv.h
dlls/secur32/secur32_priv.h
+1
-0
No files found.
dlls/secur32/schannel.c
View file @
c5188014
...
...
@@ -825,6 +825,18 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
return
SEC_E_INTERNAL_ERROR
;
}
if
(
pszTargetName
)
{
UINT
len
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
pszTargetName
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
char
*
target
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
target
)
{
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
pszTargetName
,
-
1
,
target
,
len
,
NULL
,
NULL
);
schan_imp_set_session_target
(
ctx
->
session
,
target
);
HeapFree
(
GetProcessHeap
(),
0
,
target
);
}
}
phNewContext
->
dwLower
=
handle
;
phNewContext
->
dwUpper
=
0
;
}
...
...
dlls/secur32/schannel_gnutls.c
View file @
c5188014
...
...
@@ -66,6 +66,7 @@ MAKE_FUNCPTR(gnutls_priority_set_direct);
MAKE_FUNCPTR
(
gnutls_record_get_max_size
);
MAKE_FUNCPTR
(
gnutls_record_recv
);
MAKE_FUNCPTR
(
gnutls_record_send
);
MAKE_FUNCPTR
(
gnutls_server_name_set
);
MAKE_FUNCPTR
(
gnutls_transport_get_ptr
);
MAKE_FUNCPTR
(
gnutls_transport_set_errno
);
MAKE_FUNCPTR
(
gnutls_transport_set_ptr
);
...
...
@@ -182,6 +183,13 @@ void schan_imp_set_session_transport(schan_imp_session session,
pgnutls_transport_set_ptr
(
s
,
(
gnutls_transport_ptr_t
)
t
);
}
void
schan_imp_set_session_target
(
schan_imp_session
session
,
const
char
*
target
)
{
gnutls_session_t
s
=
(
gnutls_session_t
)
session
;
pgnutls_server_name_set
(
s
,
GNUTLS_NAME_DNS
,
target
,
strlen
(
target
)
);
}
SECURITY_STATUS
schan_imp_handshake
(
schan_imp_session
session
)
{
gnutls_session_t
s
=
(
gnutls_session_t
)
session
;
...
...
@@ -491,6 +499,7 @@ BOOL schan_imp_init(void)
LOAD_FUNCPTR
(
gnutls_record_get_max_size
);
LOAD_FUNCPTR
(
gnutls_record_recv
);
LOAD_FUNCPTR
(
gnutls_record_send
);
LOAD_FUNCPTR
(
gnutls_server_name_set
)
LOAD_FUNCPTR
(
gnutls_transport_get_ptr
)
LOAD_FUNCPTR
(
gnutls_transport_set_errno
)
LOAD_FUNCPTR
(
gnutls_transport_set_ptr
)
...
...
dlls/secur32/schannel_macosx.c
View file @
c5188014
...
...
@@ -734,6 +734,15 @@ void schan_imp_set_session_transport(schan_imp_session session,
s
->
transport
=
t
;
}
void
schan_imp_set_session_target
(
schan_imp_session
session
,
const
char
*
target
)
{
struct
mac_session
*
s
=
(
struct
mac_session
*
)
session
;
TRACE
(
"(%p/%p, %s)
\n
"
,
s
,
s
->
context
,
debugstr_a
(
target
));
SSLSetPeerDomainName
(
s
->
context
,
target
,
strlen
(
target
)
);
}
SECURITY_STATUS
schan_imp_handshake
(
schan_imp_session
session
)
{
struct
mac_session
*
s
=
(
struct
mac_session
*
)
session
;
...
...
dlls/secur32/secur32_priv.h
View file @
c5188014
...
...
@@ -247,6 +247,7 @@ extern BOOL schan_imp_create_session(schan_imp_session *session, schan_credentia
extern
void
schan_imp_dispose_session
(
schan_imp_session
session
)
DECLSPEC_HIDDEN
;
extern
void
schan_imp_set_session_transport
(
schan_imp_session
session
,
struct
schan_transport
*
t
)
DECLSPEC_HIDDEN
;
extern
void
schan_imp_set_session_target
(
schan_imp_session
session
,
const
char
*
target
)
DECLSPEC_HIDDEN
;
extern
SECURITY_STATUS
schan_imp_handshake
(
schan_imp_session
session
)
DECLSPEC_HIDDEN
;
extern
unsigned
int
schan_imp_get_session_cipher_block_size
(
schan_imp_session
session
)
DECLSPEC_HIDDEN
;
extern
unsigned
int
schan_imp_get_max_message_size
(
schan_imp_session
session
)
DECLSPEC_HIDDEN
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment