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
39336fd0
Commit
39336fd0
authored
Nov 30, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Use the ntdll Unicode string functions instead of wine/unicode.h.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
035f8ad8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
gnutls.c
dlls/bcrypt/gnutls.c
+6
-7
No files found.
dlls/bcrypt/gnutls.c
View file @
39336fd0
...
...
@@ -47,7 +47,6 @@
#include "bcrypt_internal.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
bcrypt
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
...
...
@@ -1423,12 +1422,12 @@ static NTSTATUS prepare_gnutls_signature( struct key *key, UCHAR *signature, ULO
static
gnutls_digest_algorithm_t
get_digest_from_id
(
const
WCHAR
*
alg_id
)
{
if
(
!
strcmpW
(
alg_id
,
BCRYPT_SHA1_ALGORITHM
))
return
GNUTLS_DIG_SHA1
;
if
(
!
strcmpW
(
alg_id
,
BCRYPT_SHA256_ALGORITHM
))
return
GNUTLS_DIG_SHA256
;
if
(
!
strcmpW
(
alg_id
,
BCRYPT_SHA384_ALGORITHM
))
return
GNUTLS_DIG_SHA384
;
if
(
!
strcmpW
(
alg_id
,
BCRYPT_SHA512_ALGORITHM
))
return
GNUTLS_DIG_SHA512
;
if
(
!
strcmpW
(
alg_id
,
BCRYPT_MD2_ALGORITHM
))
return
GNUTLS_DIG_MD2
;
if
(
!
strcmpW
(
alg_id
,
BCRYPT_MD5_ALGORITHM
))
return
GNUTLS_DIG_MD5
;
if
(
!
wcscmp
(
alg_id
,
BCRYPT_SHA1_ALGORITHM
))
return
GNUTLS_DIG_SHA1
;
if
(
!
wcscmp
(
alg_id
,
BCRYPT_SHA256_ALGORITHM
))
return
GNUTLS_DIG_SHA256
;
if
(
!
wcscmp
(
alg_id
,
BCRYPT_SHA384_ALGORITHM
))
return
GNUTLS_DIG_SHA384
;
if
(
!
wcscmp
(
alg_id
,
BCRYPT_SHA512_ALGORITHM
))
return
GNUTLS_DIG_SHA512
;
if
(
!
wcscmp
(
alg_id
,
BCRYPT_MD2_ALGORITHM
))
return
GNUTLS_DIG_MD2
;
if
(
!
wcscmp
(
alg_id
,
BCRYPT_MD5_ALGORITHM
))
return
GNUTLS_DIG_MD5
;
return
-
1
;
}
...
...
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