From 142a13d6611e7b92219d0e9c4150149ad96fb42c Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Tue, 5 Mar 2024 09:51:36 +0100 Subject: [PATCH] server config UPDATE remove redundant messages --- src/server_config_util.c | 1 - src/server_config_util_ssh.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/server_config_util.c b/src/server_config_util.c index 5db6c645..b5f7e06e 100644 --- a/src/server_config_util.c +++ b/src/server_config_util.c @@ -1141,7 +1141,6 @@ nc_server_config_add_keystore_asym_key(const struct ly_ctx *ctx, NC_TRANSPORT_IM goto cleanup; } if (ret) { - ERR(NULL, "Getting keys from file(s) failed."); goto cleanup; } diff --git a/src/server_config_util_ssh.c b/src/server_config_util_ssh.c index 59166dec..ec3ff6d0 100644 --- a/src/server_config_util_ssh.c +++ b/src/server_config_util_ssh.c @@ -47,7 +47,6 @@ _nc_server_config_add_ssh_hostkey(const struct ly_ctx *ctx, const char *tree_pat ret = nc_server_config_util_get_asym_key_pair(privkey_path, pubkey_path, NC_PUBKEY_FORMAT_SSH, &privkey, &privkey_type, &pubkey); if (ret) { - ERR(NULL, "Getting keys from file(s) failed."); goto cleanup; } @@ -105,7 +104,6 @@ nc_server_config_add_ssh_hostkey(const struct ly_ctx *ctx, const char *endpt_nam ret = _nc_server_config_add_ssh_hostkey(ctx, path, privkey_path, pubkey_path, config); if (ret) { - ERR(NULL, "Creating new hostkey YANG data nodes failed."); goto cleanup; } @@ -130,7 +128,6 @@ nc_server_config_add_ch_ssh_hostkey(const struct ly_ctx *ctx, const char *client ret = _nc_server_config_add_ssh_hostkey(ctx, path, privkey_path, pubkey_path, config); if (ret) { - ERR(NULL, "Creating new Call-Home hostkey YANG data nodes failed."); goto cleanup; } @@ -292,7 +289,6 @@ nc_server_config_add_ssh_user_pubkey(const struct ly_ctx *ctx, const char *endpt ret = _nc_server_config_add_ssh_user_pubkey(ctx, path, pubkey_path, config); if (ret) { - ERR(NULL, "Creating new SSH user's public key failed."); goto cleanup; } @@ -334,7 +330,6 @@ nc_server_config_add_ch_ssh_user_pubkey(const struct ly_ctx *ctx, const char *cl ret = _nc_server_config_add_ssh_user_pubkey(ctx, path, pubkey_path, config); if (ret) { - ERR(NULL, "Creating new CH SSH user's public key failed."); goto cleanup; } @@ -538,7 +533,6 @@ nc_server_config_add_ssh_user_password(const struct ly_ctx *ctx, const char *end ret = _nc_server_config_add_ssh_user_password(ctx, path, password, config); if (ret) { - ERR(NULL, "Creating new SSH user's password failed."); goto cleanup; } @@ -563,7 +557,6 @@ nc_server_config_add_ch_ssh_user_password(const struct ly_ctx *ctx, const char * ret = _nc_server_config_add_ssh_user_password(ctx, path, password, config); if (ret) { - ERR(NULL, "Creating new CH SSH user's password failed."); goto cleanup; }