X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fserver_internal.h;h=f4f1d10ce21c0698b7fb1d9500d4fd7964c5238c;hb=f5655eda8412bc7b03b6162cad01ad612719ad4a;hp=423e37e6d9f34b499fb177ca9017326ebec0e0e8;hpb=9a3032f7fd59939bcdce2ef4401dd2b84b7df637;p=silc.git diff --git a/apps/silcd/server_internal.h b/apps/silcd/server_internal.h index 423e37e6..f4f1d10c 100644 --- a/apps/silcd/server_internal.h +++ b/apps/silcd/server_internal.h @@ -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);