diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 20fb7c96..f4dc9502 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 05e4ab92..75620e44 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"