updates.
[silc.git] / lib / silcclient / protocol.c
index 8460ad8fccd0df61fb4f5c315c8086d459cc7eda..51ee452cc555f6b331d7478ee3aef8e8bd00793a 100644 (file)
@@ -145,7 +145,7 @@ void silc_client_protocol_ke_set_keys(SilcSKE ske,
   conn->rekey->ske_group = silc_ske_group_get_number(group);
 
   /* Save HMAC key to be used in the communication. */
-  silc_hmac_alloc(hmac->hmac->name, NULL, &conn->hmac_send);
+  silc_hmac_alloc((char *)silc_hmac_get_name(hmac), NULL, &conn->hmac_send);
   silc_hmac_set_key(conn->hmac_send, keymat->hmac_key, keymat->hmac_key_len);
   conn->hmac_receive = conn->hmac_send;
 
@@ -768,7 +768,8 @@ silc_client_protocol_rekey_validate(SilcClient client,
   }
 
   if (send) {
-    silc_hmac_alloc(conn->hmac_receive->hmac->name, NULL, &conn->hmac_send);
+    silc_hmac_alloc((char *)silc_hmac_get_name(conn->hmac_receive), NULL, 
+                   &conn->hmac_send);
     silc_hmac_set_key(conn->hmac_send, keymat->hmac_key, 
                      keymat->hmac_key_len);
   } else {