aboutsummaryrefslogtreecommitdiff
path: root/libssh/kex.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-05-01 20:32:27 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-05-01 20:32:27 +0200
commit430e570629d663efdf550ea4f9669a1fc0bb40f9 (patch)
treeaae89ca427480fbd900eea77ff4fdf88c849da1a /libssh/kex.c
parent65dc4f1186a20718046471d1d5339afff3ec7933 (diff)
downloadlibssh-430e570629d663efdf550ea4f9669a1fc0bb40f9.tar.gz
libssh-430e570629d663efdf550ea4f9669a1fc0bb40f9.tar.xz
libssh-430e570629d663efdf550ea4f9669a1fc0bb40f9.zip
Added pki.[ch] files as a new standard API for PKs
Right now it's just a wrapper to the existing calls but soon it's gona be the effective implementation and other calls will be wrappers.
Diffstat (limited to 'libssh/kex.c')
-rw-r--r--libssh/kex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libssh/kex.c b/libssh/kex.c
index ca678947..17c27460 100644
--- a/libssh/kex.c
+++ b/libssh/kex.c
@@ -333,7 +333,10 @@ void ssh_list_kex(ssh_session session, KEX *kex) {
#ifdef DEBUG_CRYPTO
ssh_print_hexa("session cookie", kex->cookie, 16);
#endif
-
+ if(kex->methods==NULL){
+ ssh_log(session, SSH_LOG_RARE,"kex->methods is NULL");
+ return;
+ }
for(i = 0; i < 10; i++) {
ssh_log(session, SSH_LOG_FUNCTIONS, "%s: %s",
ssh_kex_nums[i], kex->methods[i]);