1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../php-ssh2/php-ssh2-libssh2-0.16_fix.patch
5 # Copyright (C) 2007 The OpenSDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- SDE-COPYRIGHT-NOTE-END ---
17 # Source: http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages?view=rev&revision=59940
18 # Author:Oden Eriksson <oeriksson@mandriva.com>
19 --- ./ssh2.c 2006-06-07 19:35:34.000000000 +0200
20 +++ ./ssh2.c.oden 2007-08-07 17:32:29.000000000 +0200
23 ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
25 -#if LIBSSH2_APINO < 200412301450
26 +#if LIBSSH2_VERSION_NUM < 0x001000
27 libssh2_session_methods(session, &kex, &hostkey, &crypt_cs, &crypt_sc, &mac_cs, &mac_sc, &comp_cs, &comp_sc, &lang_cs, &lang_sc);
29 kex = libssh2_session_methods(session, LIBSSH2_METHOD_KEX);