silcclient: associate context with verify_public_key
[silc.git] / lib / silcclient / client_prvmsg.c
index 8116a9ff525636c237f4e0908e208aefbd843e2a..353d606c2e4d211652b71bc1b9dc93271fd73cf0 100644 (file)
@@ -1006,12 +1006,17 @@ silc_client_autoneg_key_verify_pubkey(SilcSKE ske,
   verify->context = ake;
   ake->verify = verify;
 
+  conn->context_type = SILC_ID_CLIENT;
+  conn->client_entry = client_entry;
+
   /* Verify public key in application */
   client->internal->ops->verify_public_key(
                                client, conn,
                                SILC_CONN_CLIENT, ake->public_key,
                                silc_client_autoneg_key_verify_pubkey_cb,
                                verify);
+
+  conn->context_type = SILC_ID_NONE;
 }
 
 /* Key exchange protocol completion callback */