updates.
[silc.git] / lib / silcclient / client.h
index b16e308f415185621751a090df47d88cf2f2c901..4730a65a3f33e08ab9f0b3591b33395b9fc42fda 100644 (file)
@@ -232,6 +232,11 @@ do {                                                       \
     (__sock) = (__x)->conns[__i]->sock;                        \
 } while(0)
 
+/* Check whether rekey protocol is active */
+#define SILC_CLIENT_IS_REKEY(sock)                                     \
+  (sock->protocol && sock->protocol->protocol &&                       \
+   sock->protocol->protocol->type == SILC_PROTOCOL_CLIENT_REKEY)
+
 /* Prototypes (some of the prototypes are defined in the silcapi.h) */
 
 void silc_client_packet_send(SilcClient client,