aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSahana Prasad <sahana@redhat.com>2020-04-06 08:00:26 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-04-06 09:27:55 +0200
commitcd15043656280e92714c139d820ef271d00876a4 (patch)
tree2c0b74e42ae3bcd9ad5664e014cff93c1bb41d88 /src
parent9eb1ce88ae9222d092fa834b5594bdb9796e3f95 (diff)
downloadlibssh-cd15043656280e92714c139d820ef271d00876a4.tar.gz
libssh-cd15043656280e92714c139d820ef271d00876a4.tar.xz
libssh-cd15043656280e92714c139d820ef271d00876a4.zip
src/pki_crypto.c corrects the incorrect usage of enum
Signed-off-by: Sahana Prasad <sahana@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/pki_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index 9ac4d99f..689faa1e 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -2578,7 +2578,7 @@ int pki_uri_import(const char *uri_name,
SSH_LOG(SSH_LOG_INFO, "Engine init success");
switch (key_type) {
- case SSH_KEY_CMP_PRIVATE:
+ case SSH_KEY_PRIVATE:
pkey = ENGINE_load_private_key(engine, uri_name, NULL, NULL);
if (pkey == NULL) {
SSH_LOG(SSH_LOG_WARN,
@@ -2587,7 +2587,7 @@ int pki_uri_import(const char *uri_name,
goto fail;
}
break;
- case SSH_KEY_CMP_PUBLIC:
+ case SSH_KEY_PUBLIC:
pkey = ENGINE_load_public_key(engine, uri_name, NULL, NULL);
if (pkey == NULL) {
SSH_LOG(SSH_LOG_WARN,