[or-cvs] r9672: Add some missing (redundant but helpful in most cases) stati (in tor/trunk: . src/common src/or)

nickm at seul.org nickm at seul.org
Wed Feb 28 00:36:05 UTC 2007


Author: nickm
Date: 2007-02-27 19:36:03 -0500 (Tue, 27 Feb 2007)
New Revision: 9672

Modified:
   tor/trunk/
   tor/trunk/src/common/aes.c
   tor/trunk/src/common/crypto.c
   tor/trunk/src/or/routerlist.c
Log:
 r11976 at catbus:  nickm | 2007-02-27 19:35:59 -0500
 Add some missing (redundant but helpful in most cases) static declarations, and remove a function nobody was calling.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r11976] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/common/aes.c
===================================================================
--- tor/trunk/src/common/aes.c	2007-02-28 00:23:22 UTC (rev 9671)
+++ tor/trunk/src/common/aes.c	2007-02-28 00:36:03 UTC (rev 9672)
@@ -689,7 +689,7 @@
  *
  * @return      the number of rounds for the given cipher key size.
  */
-int
+static int
 rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits)
 {
         int i = 0;
@@ -773,10 +773,10 @@
 }
 
 #ifdef USE_RIJNDAEL_COUNTER_OPTIMIZATION
-void
+static void
 rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, u32 ctr1, u32 ctr0, u8 ct[16])
 #else
-void
+static void
 rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], u8 ct[16])
 #endif
 {

Modified: tor/trunk/src/common/crypto.c
===================================================================
--- tor/trunk/src/common/crypto.c	2007-02-28 00:23:22 UTC (rev 9671)
+++ tor/trunk/src/common/crypto.c	2007-02-28 00:36:03 UTC (rev 9672)
@@ -105,7 +105,6 @@
 
 /* Prototypes for functions only used by tortls.c */
 crypto_pk_env_t *_crypto_new_pk_env_rsa(RSA *rsa);
-RSA *_crypto_pk_env_get_rsa(crypto_pk_env_t *env);
 EVP_PKEY *_crypto_pk_env_get_evp_pkey(crypto_pk_env_t *env, int private);
 DH *_crypto_dh_env_get_dh(crypto_dh_env_t *dh);
 
@@ -269,13 +268,6 @@
   return env;
 }
 
-/** used by tortls.c: return the RSA* from a crypto_pk_env_t. */
-RSA *
-_crypto_pk_env_get_rsa(crypto_pk_env_t *env)
-{
-  return env->key;
-}
-
 /** used by tortls.c: get an equivalent EVP_PKEY* for a crypto_pk_env_t.  Iff
  * private is set, include the private-key portion of the key. */
 EVP_PKEY *

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-02-28 00:23:22 UTC (rev 9671)
+++ tor/trunk/src/or/routerlist.c	2007-02-28 00:36:03 UTC (rev 9672)
@@ -3047,7 +3047,7 @@
 }
 
 /** Free storage held in <b>ds</b> */
-void
+static void
 trusted_dir_server_free(trusted_dir_server_t *ds)
 {
   tor_free(ds->nickname);



More information about the tor-commits mailing list