[BACK]Return to packet.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/packet.h between version 1.1 and 1.2

version 1.1, 1999/09/26 20:53:36 version 1.2, 1999/09/28 04:45:36
Line 18 
Line 18 
 #ifndef PACKET_H  #ifndef PACKET_H
 #define PACKET_H  #define PACKET_H
   
 #include <gmp.h>  #include <ssl/bn.h>
 #include "randoms.h"  
   
 /* Sets the socket used for communication.  Disables encryption until  /* Sets the socket used for communication.  Disables encryption until
    packet_set_encryption_key is called.  It is permissible that fd_in     packet_set_encryption_key is called.  It is permissible that fd_in
    and fd_out are the same descriptor; in that case it is assumed to     and fd_out are the same descriptor; in that case it is assumed to
    be a socket. */     be a socket. */
 void packet_set_connection(int fd_in, int fd_out, RandomState *state);  void packet_set_connection(int fd_in, int fd_out);
   
 /* Puts the connection file descriptors into non-blocking mode. */  /* Puts the connection file descriptors into non-blocking mode. */
 void packet_set_nonblocking(void);  void packet_set_nonblocking(void);
Line 74 
Line 73 
 void packet_put_int(unsigned int value);  void packet_put_int(unsigned int value);
   
 /* Appends an arbitrary precision integer to packet data. */  /* Appends an arbitrary precision integer to packet data. */
 void packet_put_mp_int(MP_INT *value);  void packet_put_bignum(BIGNUM *value);
   
 /* Appends a string to packet data. */  /* Appends a string to packet data. */
 void packet_put_string(const char *buf, unsigned int len);  void packet_put_string(const char *buf, unsigned int len);
Line 111 
Line 110 
   
 /* Returns an arbitrary precision integer from the packet data.  The integer  /* Returns an arbitrary precision integer from the packet data.  The integer
    must have been initialized before this call. */     must have been initialized before this call. */
 void packet_get_mp_int(MP_INT *value, int *length_ptr);  void packet_get_bignum(BIGNUM *value, int *length_ptr);
   
 /* Returns a string from the packet data.  The string is allocated using  /* Returns a string from the packet data.  The string is allocated using
    xmalloc; it is the responsibility of the calling program to free it when     xmalloc; it is the responsibility of the calling program to free it when

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2