Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
09038554
Commit
09038554
authored
Oct 03, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Use gnutls_record_get_max_size() to get the maximum message size.
parent
6cfa9629
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
schannel.c
dlls/secur32/schannel.c
+4
-2
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+7
-0
schannel_macosx.c
dlls/secur32/schannel_macosx.c
+6
-0
secur32_priv.h
dlls/secur32/secur32_priv.h
+1
-0
No files found.
dlls/secur32/schannel.c
View file @
09038554
...
...
@@ -821,13 +821,15 @@ static SECURITY_STATUS SEC_ENTRY schan_QueryContextAttributesW(
SecPkgContext_StreamSizes
*
stream_sizes
=
buffer
;
SIZE_T
mac_size
=
info
.
dwHashStrength
;
unsigned
int
block_size
=
schan_imp_get_session_cipher_block_size
(
ctx
->
session
);
unsigned
int
message_size
=
schan_imp_get_max_message_size
(
ctx
->
session
);
TRACE
(
"Using %lu mac bytes, block size %u
\n
"
,
mac_size
,
block_size
);
TRACE
(
"Using %lu mac bytes, message size %u, block size %u
\n
"
,
mac_size
,
message_size
,
block_size
);
/* These are defined by the TLS RFC */
stream_sizes
->
cbHeader
=
5
;
stream_sizes
->
cbTrailer
=
mac_size
+
256
;
/* Max 255 bytes padding + 1 for padding size */
stream_sizes
->
cbMaximumMessage
=
1
<<
14
;
stream_sizes
->
cbMaximumMessage
=
message_size
;
stream_sizes
->
cbBuffers
=
4
;
stream_sizes
->
cbBlockSize
=
block_size
;
}
...
...
dlls/secur32/schannel_gnutls.c
View file @
09038554
...
...
@@ -62,6 +62,7 @@ MAKE_FUNCPTR(gnutls_mac_get_key_size);
MAKE_FUNCPTR
(
gnutls_perror
);
MAKE_FUNCPTR
(
gnutls_protocol_get_version
);
MAKE_FUNCPTR
(
gnutls_set_default_priority
);
MAKE_FUNCPTR
(
gnutls_record_get_max_size
);
MAKE_FUNCPTR
(
gnutls_record_recv
);
MAKE_FUNCPTR
(
gnutls_record_send
);
MAKE_FUNCPTR
(
gnutls_transport_set_errno
);
...
...
@@ -289,6 +290,11 @@ unsigned int schan_imp_get_session_cipher_block_size(schan_imp_session session)
return
schannel_get_cipher_block_size
(
cipher
);
}
unsigned
int
schan_imp_get_max_message_size
(
schan_imp_session
session
)
{
return
pgnutls_record_get_max_size
((
gnutls_session_t
)
session
);
}
SECURITY_STATUS
schan_imp_get_connection_info
(
schan_imp_session
session
,
SecPkgContext_ConnectionInfo
*
info
)
{
...
...
@@ -423,6 +429,7 @@ BOOL schan_imp_init(void)
LOAD_FUNCPTR
(
gnutls_perror
)
LOAD_FUNCPTR
(
gnutls_protocol_get_version
)
LOAD_FUNCPTR
(
gnutls_set_default_priority
)
LOAD_FUNCPTR
(
gnutls_record_get_max_size
);
LOAD_FUNCPTR
(
gnutls_record_recv
);
LOAD_FUNCPTR
(
gnutls_record_send
);
LOAD_FUNCPTR
(
gnutls_transport_set_errno
)
...
...
dlls/secur32/schannel_macosx.c
View file @
09038554
...
...
@@ -628,6 +628,12 @@ unsigned int schan_imp_get_session_cipher_block_size(schan_imp_session session)
}
}
unsigned
int
schan_imp_get_max_message_size
(
schan_imp_session
session
)
{
FIXME
(
"Returning 1 << 14.
\n
"
);
return
1
<<
14
;
}
SECURITY_STATUS
schan_imp_get_connection_info
(
schan_imp_session
session
,
SecPkgContext_ConnectionInfo
*
info
)
{
...
...
dlls/secur32/secur32_priv.h
View file @
09038554
...
...
@@ -196,6 +196,7 @@ extern void schan_imp_set_session_transport(schan_imp_session session,
struct
schan_transport
*
t
)
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
;
extern
SECURITY_STATUS
schan_imp_get_connection_info
(
schan_imp_session
session
,
SecPkgContext_ConnectionInfo
*
info
)
DECLSPEC_HIDDEN
;
extern
SECURITY_STATUS
schan_imp_get_session_peer_certificate
(
schan_imp_session
session
,
...
...
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