From 743a00dad4098f473b23f3b04d9fe6fbf520c7c8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 20 Aug 2011 11:07:54 +0200 Subject: pki: Fix build warnings. --- include/libssh/pki.h | 2 +- src/ecdh.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 20fb7c9..f4dc950 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -46,7 +46,7 @@ struct ssh_key_struct { void *cert; }; -void ssh_pki_log(const char *format, ...); +void ssh_pki_log(const char *format, ...) PRINTF_ATTRIBUTE(1, 2); /* internal pki functions */ ssh_key pki_key_dup(const ssh_key key, int demote); diff --git a/src/ecdh.c b/src/ecdh.c index 05e4ab9..75620e4 100644 --- a/src/ecdh.c +++ b/src/ecdh.c @@ -22,6 +22,7 @@ #include "config.h" #include "libssh/session.h" #include "libssh/ecdh.h" +#include "libssh/dh.h" #include "libssh/buffer.h" #include "libssh/ssh2.h" -- cgit