Skip to content

Commit b82ab39

Browse files
adeltonpkittenis
authored andcommitted
Remove functions deprecated in latest libssh master. (Resolves #10)
Addressing skipping 'ssh/session.c' Cython extension (up-to-date) building 'ssh.session' extension gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/session.c -o build/temp.linux-x86_64-3.7/ssh/session.o -O3 ssh/session.c: In function ‘__pyx_pf_3ssh_7session_7Session_46is_server_known’: ssh/session.c:4782:9: warning: ‘ssh_is_server_known’ is deprecated [-Wdeprecated-declarations] __pyx_v_rc = ssh_is_server_known(__pyx_v_self->_session); ^~~~~~~~~~ In file included from ssh/session.c:569: libssh/include/libssh/libssh.h:551:31: note: declared here SSH_DEPRECATED LIBSSH_API int ssh_is_server_known(ssh_session session); ^~~~~~~~~~~~~~~~~~~ ssh/session.c: In function ‘__pyx_pf_3ssh_7session_7Session_118write_knownhost’: ssh/session.c:9577:9: warning: ‘ssh_write_knownhost’ is deprecated [-Wdeprecated-declarations] __pyx_v_rc = ssh_write_knownhost(__pyx_v_self->_session); ^~~~~~~~~~ In file included from ssh/session.c:569: libssh/include/libssh/libssh.h:549:31: note: declared here SSH_DEPRECATED LIBSSH_API int ssh_write_knownhost(ssh_session session); ^~~~~~~~~~~~~~~~~~~ ssh/session.c: In function ‘__pyx_pf_3ssh_7session_7Session_120dump_knownhost’: ssh/session.c:9686:9: warning: ‘ssh_dump_knownhost’ is deprecated [-Wdeprecated-declarations] __pyx_v__known_host = ssh_dump_knownhost(__pyx_v_self->_session); ^~~~~~~~~~~~~~~~~~~ In file included from ssh/session.c:569: libssh/include/libssh/libssh.h:550:33: note: declared here SSH_DEPRECATED LIBSSH_API char *ssh_dump_knownhost(ssh_session session); ^~~~~~~~~~~~~~~~~~ gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/session.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o /root/ssh-python/ssh/session.cpython-37m-x86_64-linux-gnu.so
1 parent eaf30bb commit b82ab39

File tree

4 files changed

+869
-1263
lines changed

4 files changed

+869
-1263
lines changed

Diff for: ssh/c_ssh.pxd

-3
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ cdef extern from "libssh/libssh.h" nogil:
366366
int ssh_init()
367367
int ssh_is_blocking(ssh_session session)
368368
int ssh_is_connected(ssh_session session)
369-
int ssh_is_server_known(ssh_session session)
370369

371370
int ssh_set_log_level(int level)
372371
int ssh_get_log_level()
@@ -528,8 +527,6 @@ cdef extern from "libssh/libssh.h" nogil:
528527
ssh_session session, unsigned int i, const char *answer)
529528
int ssh_userauth_gssapi(ssh_session session)
530529
const char *ssh_version(int req_version)
531-
int ssh_write_knownhost(ssh_session session)
532-
char *ssh_dump_knownhost(ssh_session session)
533530

534531
void ssh_string_burn(ssh_string str)
535532
ssh_string ssh_string_copy(ssh_string str)

0 commit comments

Comments
 (0)