tupdates
[silc.git] / apps / silcd / server_internal.h
index 423e37e6d9f34b499fb177ca9017326ebec0e0e8..f4f1d10ce21c0698b7fb1d9500d4fd7964c5238c 100644 (file)
@@ -175,6 +175,14 @@ do {                                               \
   }                                            \
 } while(0)
 
+#define SILC_GET_SKE_FLAGS(x, p)                       \
+  if ((x)) {                                           \
+    if ((x)->param && (x)->param->key_exchange_pfs)    \
+      (p)->flags |= SILC_SKE_SP_FLAG_PFS;              \
+    if (!(x)->publickey)                               \
+      (p)->flags |= SILC_SKE_SP_FLAG_MUTUAL;           \
+  }
+
 /* Prototypes */
 SILC_TASK_CALLBACK_GLOBAL(silc_server_rekey_final);