3 --- src/ssh2/ssh2.c.orig 2008-07-19 06:43:24.000000000 -0400
4 +++ src/ssh2/ssh2.c 2010-02-11 12:47:17.000000000 -0500
6 return (PyObject *)SSH2_SFTP_New(sftp, dealloc);
\r
9 -static char SSH2_getCompressionMethods_doc[] = "";
\r
12 -SSH2_getCompressionMethods(SSH2_SessionObj *self, PyObject *args)
\r
15 - const LIBSSH2_COMP_METHOD **compp = libssh2_comp_methods();
\r
17 - if (!PyArg_ParseTuple(args, ":getCompressionMethods"))
\r
20 - result = PyList_New(0);
\r
21 - while (*compp && (*compp)->name) {
\r
22 - PyList_Append(result, PyString_FromString((unsigned char *) (*compp)->name));
\r
28 /* Methods in the OpenSSL.ssh module (i.e. none) */
\r
29 static PyMethodDef SSH2_methods[] = {
\r
30 /* Module functions */
\r
31 { "Session",(PyCFunction)SSH2_Session, METH_VARARGS, SSH2_Session_doc },
\r
32 { "Channel",(PyCFunction)SSH2_Channel, METH_VARARGS, SSH2_Channel_doc },
\r
33 { "SFTP",(PyCFunction)SSH2_SFTP, METH_VARARGS, SSH2_SFTP_doc },
\r
34 - { "getCompressionMethods",(PyCFunction)SSH2_getCompressionMethods, METH_VARARGS, SSH2_getCompressionMethods_doc },
\r