--- gvpe/src/connection.h 2003/10/16 02:41:21 1.10 +++ gvpe/src/connection.h 2004/02/08 07:24:25 1.14 @@ -1,6 +1,6 @@ /* connection.h -- header for connection.C - Copyright (C) 2003 Marc Lehmann + Copyright (C) 2003-2004 Marc Lehmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -37,15 +37,15 @@ u8 id[RSA_IDLEN]; // the challenge id }; -typedef u8 rsachallenge[RSA_KEYLEN - RSA_OVERHEAD]; // challenge data; -typedef u8 rsaencrdata[RSA_KEYLEN]; // encrypted challenge +typedef rsaclear rsachallenge; // challenge data; +typedef rsacrypt rsaencrdata; // encrypted challenge typedef u8 rsaresponse[RSA_RESLEN]; // the encrypted ripemd160 hash //////////////////////////////////////////////////////////////////////////////////////// struct crypto_ctx; -struct hmac_packet:net_packet +struct hmac_packet : net_packet { u8 hmac[HMACLENGTH]; // each and every packet has a hmac field, but that is not (yet) checked everywhere @@ -111,6 +111,12 @@ ~pkt_queue (); }; +enum + { + FEATURE_COMPRESSION = 0x01, + FEATURE_ROHC = 0x02, + }; + struct connection { conf_node *conf; @@ -125,6 +131,7 @@ sliding_window iseqno; u8 protocol; + u8 features; pkt_queue data_queue, vpn_queue;