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
64c84ef5
Commit
64c84ef5
authored
Feb 27, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Report SecPkgContext_ConnectionInfo in bits, not bytes.
parent
5f3c38ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+2
-2
schannel.c
dlls/secur32/tests/schannel.c
+8
-0
No files found.
dlls/secur32/schannel_gnutls.c
View file @
64c84ef5
...
...
@@ -309,9 +309,9 @@ SECURITY_STATUS schan_imp_get_connection_info(schan_imp_session session,
info
->
dwProtocol
=
schannel_get_protocol
(
proto
);
info
->
aiCipher
=
schannel_get_cipher_algid
(
alg
);
info
->
dwCipherStrength
=
pgnutls_cipher_get_key_size
(
alg
);
info
->
dwCipherStrength
=
pgnutls_cipher_get_key_size
(
alg
)
*
8
;
info
->
aiHash
=
schannel_get_mac_algid
(
mac
);
info
->
dwHashStrength
=
pgnutls_mac_get_key_size
(
mac
);
info
->
dwHashStrength
=
pgnutls_mac_get_key_size
(
mac
)
*
8
;
info
->
aiExch
=
schannel_get_kx_algid
(
kx
);
/* FIXME: info->dwExchStrength? */
info
->
dwExchStrength
=
0
;
...
...
dlls/secur32/tests/schannel.c
View file @
64c84ef5
...
...
@@ -592,6 +592,7 @@ static void test_communication(void)
CredHandle
cred_handle
;
CtxtHandle
context
;
SecPkgContext_StreamSizes
sizes
;
SecPkgContext_ConnectionInfo
conn_info
;
CERT_CONTEXT
*
cert
;
SecBufferDesc
buffers
[
2
];
...
...
@@ -754,6 +755,13 @@ static void test_communication(void)
pCertFreeCertificateContext
(
cert
);
}
status
=
pQueryContextAttributesA
(
&
context
,
SECPKG_ATTR_CONNECTION_INFO
,
(
void
*
)
&
conn_info
);
ok
(
status
==
SEC_E_OK
,
"QueryContextAttributesW(SECPKG_ATTR_CONNECTION_INFO) failed: %08x
\n
"
,
status
);
if
(
status
==
SEC_E_OK
)
{
ok
(
conn_info
.
dwCipherStrength
==
128
,
"conn_info.dwCipherStrength = %d
\n
"
,
conn_info
.
dwCipherStrength
);
ok
(
conn_info
.
dwHashStrength
>=
128
,
"conn_info.dwHashStrength = %d
\n
"
,
conn_info
.
dwHashStrength
);
}
pQueryContextAttributesA
(
&
context
,
SECPKG_ATTR_STREAM_SIZES
,
&
sizes
);
reset_buffers
(
&
buffers
[
0
]);
...
...
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