Small corrections.

This commit is contained in:
Guus Sliepen 2001-10-09 19:37:10 +00:00
parent 49a2cd806c
commit f22b941751
2 changed files with 16 additions and 13 deletions

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: node.h,v 1.1.2.1 2001/10/09 19:30:30 guus Exp $ $Id: node.h,v 1.1.2.2 2001/10/09 19:37:10 guus Exp $
*/ */
typedef struct node_t { typedef struct node_t {
@ -31,9 +31,9 @@ typedef struct node_t {
status_bits_t status; /* status info */ status_bits_t status; /* status info */
EVP_CIPHER *cipher_pkttype; /* Cipher type for UDP packets */ EVP_CIPHER *cipher; /* Cipher type for UDP packets */
char *cipher_pktkey; /* Cipher key and iv */ char *key; /* Cipher key and iv */
int cipher_pktkeylength; /* Cipher key and iv length*/ int keylength; /* Cipher key and iv length*/
list_t *queue; /* Queue for packets awaiting to be encrypted */ list_t *queue; /* Queue for packets awaiting to be encrypted */

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: vertex.h,v 1.1.2.1 2001/10/09 19:30:30 guus Exp $ $Id: vertex.h,v 1.1.2.2 2001/10/09 19:37:10 guus Exp $
*/ */
typedef struct vertex_t { typedef struct vertex_t {
@ -29,13 +29,16 @@ typedef struct vertex_t {
typedef struct halfconnection_t { typedef struct halfconnection_t {
struct node_t *node; struct node_t *node;
ipv4_t address; /* his real (internet) ip to send UDP packets to */ ipv4_t address; /* real (internet) ip on this end of the meta connection */
short unsigned int port; /* port number of UDP connection */ short unsigned int port; /* port number of this end of the meta connection */
char *hostname; /* the hostname of its real ip */ char *hostname; /* the hostname of real ip */
RSA *rsa_key; /* Following bits only used when this is a connection with ourself. */
EVP_CIPHER_CTX *ctx;
char *metakey; RSA *rsa_key; /* RSA key used for authentication */
char *pktkey; EVP_CIPHER *cipher; /* Cipher type for meta protocol */
char *challenge; EVP_CIPHER_CTX *ctx; /* Cipher state for meta protocol */
char *key; /* Cipher key + iv */
int keylength; /* Cipher keylength */
char *challenge; /* Challenge sent to this end */
} halfconnection_t; } halfconnection_t;