rsaenh: Declare some functions static
Andrew Talbot
Andrew.Talbot at talbotville.com
Wed Jan 24 16:37:52 CST 2007
Changelog:
rsaenh: Declare some functions static.
diff -urN a/dlls/rsaenh/des.c b/dlls/rsaenh/des.c
--- a/dlls/rsaenh/des.c 2006-05-23 13:48:34.000000000 +0100
+++ b/dlls/rsaenh/des.c 2007-01-24 21:31:21.000000000 +0000
@@ -1282,7 +1282,7 @@
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];
unsigned char pc1m[56], pcr[56];
diff -urN a/dlls/rsaenh/handle.c b/dlls/rsaenh/handle.c
--- a/dlls/rsaenh/handle.c 2006-07-29 11:23:43.000000000 +0100
+++ b/dlls/rsaenh/handle.c 2007-01-24 22:00:28.000000000 +0000
@@ -122,6 +122,28 @@
}
/******************************************************************************
+ * 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
*
* Allocates a new handle table
@@ -235,7 +257,7 @@
* non zero, if successful
* 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;
@@ -314,28 +336,6 @@
}
/******************************************************************************
- * 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
*
* Returns the object identified by the handle in the given handle table
diff -urN a/dlls/rsaenh/handle.h b/dlls/rsaenh/handle.h
--- a/dlls/rsaenh/handle.h 2006-07-29 11:23:43.000000000 +0100
+++ b/dlls/rsaenh/handle.h 2007-01-24 21:37:00.000000000 +0000
@@ -56,10 +56,8 @@
int alloc_handle_table (HANDLETABLE **lplpTable);
void init_handle_table (HANDLETABLE *lpTable);
-void release_all_handles (HANDLETABLE *lpTable);
int release_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 copy_handle (HANDLETABLE *lpTable, unsigned int handle, DWORD dwType, unsigned int *copy);
int lookup_handle (HANDLETABLE *lpTable, unsigned int handle, DWORD dwType, OBJECTHDR **lplpObject);
diff -urN a/dlls/rsaenh/rsa.c b/dlls/rsaenh/rsa.c
--- a/dlls/rsaenh/rsa.c 2006-11-13 17:34:37.000000000 +0000
+++ b/dlls/rsaenh/rsa.c 2007-01-24 22:25:06.000000000 +0000
@@ -39,7 +39,7 @@
};
/* 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;
@@ -58,7 +58,7 @@
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;
More information about the wine-patches
mailing list