aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-02 03:02:17 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-02 03:02:17 +0000
commitad4dc7448257c229860206b078e02778bcb1b408 (patch)
tree823243e7bc13876a466176db862028402dd4526b /src/common
parent85c79ffbc7b965355c3b51cc81000d517089e74e (diff)
downloadtor-ad4dc7448257c229860206b078e02778bcb1b408.tar
tor-ad4dc7448257c229860206b078e02778bcb1b408.tar.gz
Use a stricter set of warnings; make them all pass.
svn:r2645
Diffstat (limited to 'src/common')
-rw-r--r--src/common/crypto.c7
-rw-r--r--src/common/fakepoll.c6
-rw-r--r--src/common/test.h2
3 files changed, 8 insertions, 7 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 2a5d62ddc..2608c22a2 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -93,6 +93,13 @@ struct crypto_dh_env_t {
DH *dh;
};
+/* 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);
+
+
/** Return the number of bytes added by padding method <b>padding</b>.
*/
static INLINE int
diff --git a/src/common/fakepoll.c b/src/common/fakepoll.c
index 52359fb27..0f39d81ee 100644
--- a/src/common/fakepoll.c
+++ b/src/common/fakepoll.c
@@ -26,12 +26,6 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#if _MSC_VER > 1300
-#include <winsock2.h>
-#include <ws2tcpip.h>
-#elif defined(_MSC_VER)
-#include <winsock.h>
-#endif
#include <assert.h>
#include <stdlib.h>
diff --git a/src/common/test.h b/src/common/test.h
index 81d54b88f..656d9ba51 100644
--- a/src/common/test.h
+++ b/src/common/test.h
@@ -108,7 +108,7 @@ extern int have_failed;
#define test_memeq(expr1, expr2, len) \
STMT_BEGIN \
- void *v1=(expr1), *v2=(expr2); \
+ const void *v1=(expr1), *v2=(expr2); \
if(!memcmp(v1,v2,(len))) { printf("."); fflush(stdout); } else { \
have_failed = 1; \
printf("\nFile %s: line %d (%s): Assertion failed: (%s==%s)\n", \