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
a228eefe
Commit
a228eefe
authored
Jan 24, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Declare some functions static.
parent
3bc14d91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
29 deletions
+27
-29
des.c
dlls/rsaenh/des.c
+1
-1
handle.c
dlls/rsaenh/handle.c
+24
-24
handle.h
dlls/rsaenh/handle.h
+0
-2
rsa.c
dlls/rsaenh/rsa.c
+2
-2
No files found.
dlls/rsaenh/des.c
View file @
a228eefe
...
@@ -1282,7 +1282,7 @@ static const ulong64 des_fp[8][256] = {
...
@@ -1282,7 +1282,7 @@ static const ulong64 des_fp[8][256] = {
static
void
cookey
(
const
ulong32
*
raw1
,
ulong32
*
keyout
);
static
void
cookey
(
const
ulong32
*
raw1
,
ulong32
*
keyout
);
void
deskey
(
const
unsigned
char
*
key
,
short
edf
,
ulong32
*
keyout
)
static
void
deskey
(
const
unsigned
char
*
key
,
short
edf
,
ulong32
*
keyout
)
{
{
ulong32
i
,
j
,
l
,
m
,
n
,
kn
[
32
];
ulong32
i
,
j
,
l
,
m
,
n
,
kn
[
32
];
unsigned
char
pc1m
[
56
],
pcr
[
56
];
unsigned
char
pc1m
[
56
],
pcr
[
56
];
...
...
dlls/rsaenh/handle.c
View file @
a228eefe
...
@@ -122,6 +122,28 @@ exit:
...
@@ -122,6 +122,28 @@ exit:
}
}
/******************************************************************************
/******************************************************************************
* release_all_handles
*
* Releases all valid handles in the given handle table and shrinks the table
* to zero size.
*
* PARAMS
* lpTable [I] The table of which all valid handles shall be released.
*/
static
void
release_all_handles
(
HANDLETABLE
*
lpTable
)
{
unsigned
int
i
;
TRACE
(
"(lpTable=%p)
\n
"
,
lpTable
);
EnterCriticalSection
(
&
lpTable
->
mutex
);
for
(
i
=
0
;
i
<
lpTable
->
iEntries
;
i
++
)
if
(
lpTable
->
paEntries
[
i
].
pObject
)
release_handle
(
lpTable
,
lpTable
->
paEntries
[
i
].
pObject
->
dwType
,
INDEX2HANDLE
(
i
));
LeaveCriticalSection
(
&
lpTable
->
mutex
);
}
/******************************************************************************
* alloc_handle_table
* alloc_handle_table
*
*
* Allocates a new handle table
* Allocates a new handle table
...
@@ -235,10 +257,10 @@ static int grow_handle_table(HANDLETABLE *lpTable)
...
@@ -235,10 +257,10 @@ static int grow_handle_table(HANDLETABLE *lpTable)
* non zero, if successful
* non zero, if successful
* zero, if not successful (no free handle)
* zero, if not successful (no free handle)
*/
*/
int
alloc_handle
(
HANDLETABLE
*
lpTable
,
OBJECTHDR
*
lpObject
,
unsigned
int
*
lpHandle
)
static
int
alloc_handle
(
HANDLETABLE
*
lpTable
,
OBJECTHDR
*
lpObject
,
unsigned
int
*
lpHandle
)
{
{
int
ret
=
0
;
int
ret
=
0
;
TRACE
(
"(lpTable=%p, lpObject=%p, lpHandle=%p)
\n
"
,
lpTable
,
lpObject
,
lpHandle
);
TRACE
(
"(lpTable=%p, lpObject=%p, lpHandle=%p)
\n
"
,
lpTable
,
lpObject
,
lpHandle
);
EnterCriticalSection
(
&
lpTable
->
mutex
);
EnterCriticalSection
(
&
lpTable
->
mutex
);
...
@@ -314,28 +336,6 @@ exit:
...
@@ -314,28 +336,6 @@ exit:
}
}
/******************************************************************************
/******************************************************************************
* release_all_handles
*
* Releases all valid handles in the given handle table and shrinks the table
* to zero size.
*
* PARAMS
* lpTable [I] The table of which all valid handles shall be released.
*/
void
release_all_handles
(
HANDLETABLE
*
lpTable
)
{
unsigned
int
i
;
TRACE
(
"(lpTable=%p)
\n
"
,
lpTable
);
EnterCriticalSection
(
&
lpTable
->
mutex
);
for
(
i
=
0
;
i
<
lpTable
->
iEntries
;
i
++
)
if
(
lpTable
->
paEntries
[
i
].
pObject
)
release_handle
(
lpTable
,
lpTable
->
paEntries
[
i
].
pObject
->
dwType
,
INDEX2HANDLE
(
i
));
LeaveCriticalSection
(
&
lpTable
->
mutex
);
}
/******************************************************************************
* lookup_handle
* lookup_handle
*
*
* Returns the object identified by the handle in the given handle table
* Returns the object identified by the handle in the given handle table
...
...
dlls/rsaenh/handle.h
View file @
a228eefe
...
@@ -56,10 +56,8 @@ typedef struct tagHANDLETABLE
...
@@ -56,10 +56,8 @@ typedef struct tagHANDLETABLE
int
alloc_handle_table
(
HANDLETABLE
**
lplpTable
);
int
alloc_handle_table
(
HANDLETABLE
**
lplpTable
);
void
init_handle_table
(
HANDLETABLE
*
lpTable
);
void
init_handle_table
(
HANDLETABLE
*
lpTable
);
void
release_all_handles
(
HANDLETABLE
*
lpTable
);
int
release_handle_table
(
HANDLETABLE
*
lpTable
);
int
release_handle_table
(
HANDLETABLE
*
lpTable
);
void
destroy_handle_table
(
HANDLETABLE
*
lpTable
);
void
destroy_handle_table
(
HANDLETABLE
*
lpTable
);
int
alloc_handle
(
HANDLETABLE
*
lpTable
,
OBJECTHDR
*
lpObject
,
unsigned
int
*
lpHandle
);
int
release_handle
(
HANDLETABLE
*
lpTable
,
unsigned
int
handle
,
DWORD
dwType
);
int
release_handle
(
HANDLETABLE
*
lpTable
,
unsigned
int
handle
,
DWORD
dwType
);
int
copy_handle
(
HANDLETABLE
*
lpTable
,
unsigned
int
handle
,
DWORD
dwType
,
unsigned
int
*
copy
);
int
copy_handle
(
HANDLETABLE
*
lpTable
,
unsigned
int
handle
,
DWORD
dwType
,
unsigned
int
*
copy
);
int
lookup_handle
(
HANDLETABLE
*
lpTable
,
unsigned
int
handle
,
DWORD
dwType
,
OBJECTHDR
**
lplpObject
);
int
lookup_handle
(
HANDLETABLE
*
lpTable
,
unsigned
int
handle
,
DWORD
dwType
,
OBJECTHDR
**
lplpObject
);
...
...
dlls/rsaenh/rsa.c
View file @
a228eefe
...
@@ -39,7 +39,7 @@ static const struct {
...
@@ -39,7 +39,7 @@ static const struct {
};
};
/* convert a MPI error to a LTC error (Possibly the most powerful function ever! Oh wait... no) */
/* convert a MPI error to a LTC error (Possibly the most powerful function ever! Oh wait... no) */
int
mpi_to_ltc_error
(
int
err
)
static
int
mpi_to_ltc_error
(
int
err
)
{
{
int
x
;
int
x
;
...
@@ -58,7 +58,7 @@ static int rand_prime_helper(unsigned char *dst, int len, void *dat)
...
@@ -58,7 +58,7 @@ static int rand_prime_helper(unsigned char *dst, int len, void *dat)
return
gen_rand_impl
(
dst
,
len
)
?
len
:
0
;
return
gen_rand_impl
(
dst
,
len
)
?
len
:
0
;
}
}
int
rand_prime
(
mp_int
*
N
,
long
len
)
static
int
rand_prime
(
mp_int
*
N
,
long
len
)
{
{
int
type
;
int
type
;
...
...
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