summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-12-18 10:42:59 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-23 14:45:24 +0100
commit24f450fed16b682e2da92f0a5db6f795e6b9e3f1 (patch)
tree2ce565d4af69c406e16037f5b3c8df4d6ef3fd4c
parent9d5616a18c200fb7163eed5939873bdbb0b665f6 (diff)
downloadlibssh-24f450fed16b682e2da92f0a5db6f795e6b9e3f1.tar.gz
libssh-24f450fed16b682e2da92f0a5db6f795e6b9e3f1.tar.xz
libssh-24f450fed16b682e2da92f0a5db6f795e6b9e3f1.zip
pki_gcrypt: Warn about unsupported PEM export in gcrypt
Based on the following mail thread: https://www.libssh.org/archive/libssh/2019-12/0000027.html Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/pki_gcrypt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c
index 870bb0a2..5470ce85 100644
--- a/src/pki_gcrypt.c
+++ b/src/pki_gcrypt.c
@@ -938,6 +938,8 @@ ssh_string pki_private_key_to_pem(const ssh_key key,
(void) auth_fn;
(void) auth_data;
+ SSH_LOG(SSH_LOG_WARN, "PEM export not supported by gcrypt backend!");
+
return NULL;
}