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

Diff for /src/usr.bin/ssh/Attic/uuencode.c between version 1.24 and 1.25

version 1.24, 2006/08/03 03:34:42 version 1.25, 2009/03/05 11:30:50
Line 31 
Line 31 
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "uuencode.h"  #include "uuencode.h"
   
   /*
    * Encode binary 'src' of length 'srclength', writing base64-encoded text
    * to 'target' of size 'targsize'. Will always nul-terminate 'target'.
    * Returns the number of bytes stored in 'target' or -1 on error (inc.
    * 'targsize' too small).
    */
 int  int
 uuencode(const u_char *src, u_int srclength,  uuencode(const u_char *src, u_int srclength,
     char *target, size_t targsize)      char *target, size_t targsize)
Line 38 
Line 44 
         return __b64_ntop(src, srclength, target, targsize);          return __b64_ntop(src, srclength, target, targsize);
 }  }
   
   /*
    * Decode base64-encoded 'src' into buffer 'target' of 'targsize' bytes.
    * Will skip leading and trailing whitespace. Returns the number of bytes
    * stored in 'target' or -1 on error (inc. targsize too small).
    */
 int  int
 uudecode(const char *src, u_char *target, size_t targsize)  uudecode(const char *src, u_char *target, size_t targsize)
 {  {

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25