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
7377aa16
Commit
7377aa16
authored
Nov 24, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh/tests: Use BOOL type where appropriate.
parent
5e321b2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+9
-9
No files found.
dlls/rsaenh/tests/rsaenh.c
View file @
7377aa16
...
...
@@ -118,7 +118,7 @@ static void trace_hex(BYTE *pbData, DWORD dwLen) {
}
*/
static
int
init_base_environment
(
DWORD
dwKeyFlags
)
static
BOOL
init_base_environment
(
DWORD
dwKeyFlags
)
{
HCRYPTKEY
hKey
;
BOOL
result
;
...
...
@@ -141,7 +141,7 @@ static int init_base_environment(DWORD dwKeyFlags)
if
(
GetLastError
()
!=
NTE_BAD_KEYSET
)
{
win_skip
(
"RSA full provider not available
\n
"
);
return
0
;
return
FALSE
;
}
result
=
CryptAcquireContextA
(
&
hProv
,
szContainer
,
szProvider
,
PROV_RSA_FULL
,
CRYPT_NEWKEYSET
);
...
...
@@ -149,7 +149,7 @@ static int init_base_environment(DWORD dwKeyFlags)
if
(
!
result
)
{
win_skip
(
"Couldn't create crypto provider
\n
"
);
return
0
;
return
FALSE
;
}
result
=
CryptGenKey
(
hProv
,
AT_KEYEXCHANGE
,
dwKeyFlags
,
&
hKey
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
...
...
@@ -158,7 +158,7 @@ static int init_base_environment(DWORD dwKeyFlags)
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
if
(
result
)
CryptDestroyKey
(
hKey
);
}
return
1
;
return
TRUE
;
}
static
void
clean_up_base_environment
(
void
)
...
...
@@ -178,7 +178,7 @@ static void clean_up_base_environment(void)
CryptAcquireContextA
(
&
hProv
,
szContainer
,
szProvider
,
PROV_RSA_FULL
,
CRYPT_DELETEKEYSET
);
}
static
int
init_aes_environment
(
void
)
static
BOOL
init_aes_environment
(
void
)
{
HCRYPTKEY
hKey
;
BOOL
result
;
...
...
@@ -196,18 +196,18 @@ static int init_aes_environment(void)
if
(
!
result
&&
GetLastError
()
==
NTE_PROV_TYPE_NOT_DEF
)
{
win_skip
(
"RSA_AES provider not supported
\n
"
);
return
0
;
return
FALSE
;
}
ok
(
!
result
&&
GetLastError
()
==
NTE_BAD_FLAGS
,
"%d, %08x
\n
"
,
result
,
GetLastError
());
if
(
!
CryptAcquireContextA
(
&
hProv
,
szContainer
,
NULL
,
PROV_RSA_AES
,
0
))
{
ok
(
GetLastError
()
==
NTE_BAD_KEYSET
,
"%08x
\n
"
,
GetLastError
());
if
(
GetLastError
()
!=
NTE_BAD_KEYSET
)
return
0
;
if
(
GetLastError
()
!=
NTE_BAD_KEYSET
)
return
FALSE
;
result
=
CryptAcquireContextA
(
&
hProv
,
szContainer
,
NULL
,
PROV_RSA_AES
,
CRYPT_NEWKEYSET
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
if
(
!
result
)
return
0
;
if
(
!
result
)
return
FALSE
;
result
=
CryptGenKey
(
hProv
,
AT_KEYEXCHANGE
,
0
,
&
hKey
);
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
if
(
result
)
CryptDestroyKey
(
hKey
);
...
...
@@ -215,7 +215,7 @@ static int init_aes_environment(void)
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
if
(
result
)
CryptDestroyKey
(
hKey
);
}
return
1
;
return
TRUE
;
}
static
void
clean_up_aes_environment
(
void
)
...
...
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