aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-03-29 13:07:03 +0200
committerAndreas Schneider <asn@cryptomilk.org>2016-05-02 11:55:38 +0200
commit878a650c7a1907fb3daa51d1de78417165e397c0 (patch)
tree2a06b246bc6f5900a7ae05b33fbabae06458a1f3 /src
parente518ec1cb7c50a4070eed5a63541e77ed902617b (diff)
downloadlibssh-878a650c7a1907fb3daa51d1de78417165e397c0.tar.gz
libssh-878a650c7a1907fb3daa51d1de78417165e397c0.tar.xz
libssh-878a650c7a1907fb3daa51d1de78417165e397c0.zip
dh: Print hexadecimal data to stderr
* src/dh.c (ssh_print_hexa): Print to stderr. Signed-off-by: Justus Winter <justus@g10code.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/dh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dh.c b/src/dh.c
index 0177ab76..c54bb9f1 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -1134,7 +1134,7 @@ void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len) {
if (hexa == NULL) {
return;
}
- printf("%s: %s\n", descr, hexa);
+ fprintf(stderr, "%s: %s\n", descr, hexa);
free(hexa);
}