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
c6974c6b
Commit
c6974c6b
authored
Dec 11, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Set dh_params in key_import_dh/_public().
parent
f067283f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
gnutls.c
dlls/bcrypt/gnutls.c
+10
-6
No files found.
dlls/bcrypt/gnutls.c
View file @
c6974c6b
...
...
@@ -1868,17 +1868,19 @@ static NTSTATUS key_import_dh_public( struct key *key, UCHAR *buf, ULONG len )
return
STATUS_INTERNAL_ERROR
;
}
ret
=
pgnutls_pubkey_import_dh_raw
(
handle
,
params
,
&
y
);
pgnutls_dh_params_deinit
(
params
);
if
(
ret
<
0
)
if
((
ret
=
pgnutls_pubkey_import_dh_raw
(
handle
,
params
,
&
y
)))
{
pgnutls_perror
(
ret
);
pgnutls_dh_params_deinit
(
params
);
pgnutls_pubkey_deinit
(
handle
);
return
STATUS_INTERNAL_ERROR
;
}
if
(
key_data
(
key
)
->
a
.
pubkey
)
pgnutls_pubkey_deinit
(
key_data
(
key
)
->
a
.
pubkey
);
key_data
(
key
)
->
a
.
pubkey
=
handle
;
if
(
key_data
(
key
)
->
a
.
dh_params
)
pgnutls_dh_params_deinit
(
key_data
(
key
)
->
a
.
dh_params
);
key_data
(
key
)
->
a
.
dh_params
=
params
;
return
STATUS_SUCCESS
;
}
...
...
@@ -1921,17 +1923,19 @@ static NTSTATUS key_import_dh( struct key *key, UCHAR *buf, ULONG len )
return
STATUS_INTERNAL_ERROR
;
}
ret
=
pgnutls_privkey_import_dh_raw
(
handle
,
params
,
&
y
,
&
x
);
pgnutls_dh_params_deinit
(
params
);
if
(
ret
<
0
)
if
((
ret
=
pgnutls_privkey_import_dh_raw
(
handle
,
params
,
&
y
,
&
x
)))
{
pgnutls_perror
(
ret
);
pgnutls_dh_params_deinit
(
params
);
pgnutls_privkey_deinit
(
handle
);
return
STATUS_INTERNAL_ERROR
;
}
if
(
key_data
(
key
)
->
a
.
privkey
)
pgnutls_privkey_deinit
(
key_data
(
key
)
->
a
.
privkey
);
key_data
(
key
)
->
a
.
privkey
=
handle
;
if
(
key_data
(
key
)
->
a
.
dh_params
)
pgnutls_dh_params_deinit
(
key_data
(
key
)
->
a
.
dh_params
);
key_data
(
key
)
->
a
.
dh_params
=
params
;
return
STATUS_SUCCESS
;
}
...
...
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