X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fprotocol.c;h=122ffdfc70b11dab8b5b7c8f8cc10ed0aaef1757;hb=b380893d96cb8d673cdd57a2383195903078ce7d;hp=b8d4c3df2dd323aa7d46e2b869413bf349b61b3a;hpb=c2b07fdc09d15d9eb661cbc8ae1bc4acd9cb4bcd;p=silc.git diff --git a/lib/silcclient/protocol.c b/lib/silcclient/protocol.c index b8d4c3df..122ffdfc 100644 --- a/lib/silcclient/protocol.c +++ b/lib/silcclient/protocol.c @@ -117,12 +117,13 @@ void silc_client_protocol_ke_set_keys(SilcSKE ske, bool is_responder) { SilcClientConnection conn = (SilcClientConnection)sock->user_data; + const char *cname = silc_cipher_get_name(cipher); SILC_LOG_DEBUG(("Setting new keys into use")); /* Allocate cipher to be used in the communication */ - silc_cipher_alloc(cipher->cipher->name, &conn->send_key); - silc_cipher_alloc(cipher->cipher->name, &conn->receive_key); + silc_cipher_alloc((char *)cname, &conn->send_key); + silc_cipher_alloc((char *)cname, &conn->receive_key); silc_hmac_alloc((char *)silc_hmac_get_name(hmac), NULL, &conn->hmac_send); silc_hmac_alloc((char *)silc_hmac_get_name(hmac), NULL, &conn->hmac_receive);