aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-09-17 11:09:19 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-17 11:09:19 +0200
commitfa7798833ad9b0edb296a632c07ce942861c8993 (patch)
tree46f96ec960944a280bd40bc9c0c94bc2f4aae550 /include/libssh
parentb96943e86142774871107a4f814573998e2c8048 (diff)
downloadlibssh-fa7798833ad9b0edb296a632c07ce942861c8993.tar.gz
libssh-fa7798833ad9b0edb296a632c07ce942861c8993.tar.xz
libssh-fa7798833ad9b0edb296a632c07ce942861c8993.zip
pki: Use ssh_log_function() for ssh_pki_log().
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/pki_priv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h
index d1ffa8a0..8e9347f6 100644
--- a/include/libssh/pki_priv.h
+++ b/include/libssh/pki_priv.h
@@ -27,7 +27,10 @@
#define DSA_HEADER_BEGIN "-----BEGIN DSA PRIVATE KEY-----"
#define DSA_HEADER_END "-----END DSA PRIVATE KEY-----"
-void ssh_pki_log(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
+#define ssh_pki_log(...) \
+ _ssh_pki_log(__FUNCTION__, __VA_ARGS__)
+void _ssh_pki_log(const char *function,
+ const char *format, ...) PRINTF_ATTRIBUTE(2, 3);
/* SSH Key Functions */
ssh_key pki_key_dup(const ssh_key key, int demote);