patch to fix some compiler warnings
Matthew Rodriguez DSD staff <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
This patch fixes these warnings. The SSL_CTX_set_tmp_dh/rsa are macros, which expand to SSL_CTX_ctrl. If we add a return statement the compiler shuts up. SWIG/_m2crypto.c: In function `ssl_ctx_set_tmp_rsa': SWIG/_m2crypto.c:4182: warning: control reaches end of non-void function SWIG/_m2crypto.c: In function `ssl_ctx_set_tmp_dh': SWIG/_m2crypto.c:4171: warning: control reaches end of non-void function This patch was made using the 0.15 branch Matt Rodriguez
patch._ssl.i
(text/plain, 551 B)
--- _ssl.i 2005-11-07 11:29:17.000000000 -0800
+++ _ssl.i.orig 2005-11-07 11:28:51.000000000 -0800
@@ -228,7 +228,7 @@
}
long ssl_ctx_set_tmp_dh(SSL_CTX *ctx, DH* dh) {
- return SSL_CTX_set_tmp_dh(ctx, dh);
+ SSL_CTX_set_tmp_dh(ctx, dh);
}
void ssl_ctx_set_tmp_dh_callback(SSL_CTX *ctx, PyObject *pyfunc) {
@@ -239,7 +239,7 @@
}
long ssl_ctx_set_tmp_rsa(SSL_CTX *ctx, RSA* rsa) {
- return SSL_CTX_set_tmp_dh(ctx, rsa);
+ SSL_CTX_set_tmp_dh(ctx, rsa);
}
void ssl_ctx_set_tmp_rsa_callback(SSL_CTX *ctx, PyObject *pyfunc) {