Skip to content

Commit

Permalink
server config UPDATE remove redundant messages
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Mar 5, 2024
1 parent 7ac7c56 commit 142a13d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/server_config_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
7 changes: 0 additions & 7 deletions src/server_config_util_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 142a13d

Please sign in to comment.