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
777cbf06
Commit
777cbf06
authored
Mar 21, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Stop passing a dummy public key to gnutls_privkey_import_dsa_raw().
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b352d353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
gnutls.c
dlls/bcrypt/gnutls.c
+2
-8
No files found.
dlls/bcrypt/gnutls.c
View file @
777cbf06
...
...
@@ -1145,8 +1145,7 @@ static NTSTATUS key_import_dsa_capi( struct key *key, UCHAR *buf, ULONG len )
BLOBHEADER
*
hdr
=
(
BLOBHEADER
*
)
buf
;
DSSPUBKEY
*
pubkey
;
gnutls_privkey_t
handle
;
gnutls_datum_t
p
,
q
,
g
,
y
,
x
;
unsigned
char
dummy
[
128
];
gnutls_datum_t
p
,
q
,
g
,
x
;
unsigned
char
*
data
,
p_data
[
128
],
q_data
[
20
],
g_data
[
128
],
x_data
[
20
];
int
i
,
ret
,
size
;
...
...
@@ -1185,12 +1184,7 @@ static NTSTATUS key_import_dsa_capi( struct key *key, UCHAR *buf, ULONG len )
for
(
i
=
0
;
i
<
x
.
size
;
i
++
)
x
.
data
[
i
]
=
data
[
x
.
size
-
i
-
1
];
data
+=
x
.
size
;
WARN
(
"using dummy public key
\n
"
);
memset
(
dummy
,
1
,
sizeof
(
dummy
)
);
y
.
data
=
dummy
;
y
.
size
=
min
(
p
.
size
,
sizeof
(
dummy
)
);
if
((
ret
=
pgnutls_privkey_import_dsa_raw
(
handle
,
&
p
,
&
q
,
&
g
,
&
y
,
&
x
)))
if
((
ret
=
pgnutls_privkey_import_dsa_raw
(
handle
,
&
p
,
&
q
,
&
g
,
NULL
,
&
x
)))
{
pgnutls_perror
(
ret
);
pgnutls_privkey_deinit
(
handle
);
...
...
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