X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand.c;h=2828d81b2e21af11015606bf956725b2cd875b1c;hb=205916687fdc130a3c5d7e8f66c74973975f4bca;hp=e70478a0361675cd26a46f4fe6b9ea7eb94281ca;hpb=4d66bf4c0db64e58e1b02900ca27e6cec7c7d161;p=silc.git diff --git a/apps/silcd/command.c b/apps/silcd/command.c index e70478a0..2828d81b 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -3811,7 +3811,7 @@ SILC_SERVER_CMD_FUNC(cmode) /* Delete old cipher and allocate default one */ silc_cipher_free(channel->channel_key); - if (!silc_cipher_alloc(cipher ? cipher : "aes-256-cbc", + if (!silc_cipher_alloc(cipher ? cipher : SILC_DEFAULT_CIPHER, &channel->channel_key)) { silc_server_command_send_status_reply(cmd, SILC_COMMAND_CMODE, SILC_STATUS_ERR_UNKNOWN_ALGORITHM); @@ -3868,7 +3868,7 @@ SILC_SERVER_CMD_FUNC(cmode) /* Delete old hmac and allocate default one */ silc_hmac_free(channel->hmac); - if (!silc_hmac_alloc(hmac ? hmac : "hmac-sha1-96", NULL, + if (!silc_hmac_alloc(hmac ? hmac : SILC_DEFAULT_HMAC, NULL, &channel->hmac)) { silc_server_command_send_status_reply(cmd, SILC_COMMAND_CMODE, SILC_STATUS_ERR_UNKNOWN_ALGORITHM);