[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.17 and 1.17.8.1

version 1.17, 2003/11/10 16:23:41 version 1.17.8.1, 2006/10/06 03:19:33
Line 1 
Line 1 
   /* $OpenBSD$ */
 /*  /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.   * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *   *
Line 22 
Line 23 
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
   
 #include "includes.h"  #include <sys/types.h>
 RCSID("$OpenBSD$");  #include <netinet/in.h>
   #include <resolv.h>
   #include <stdio.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "uuencode.h"  #include "uuencode.h"
   
 #include <resolv.h>  
   
 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 60 
Line 61 
 void  void
 dump_base64(FILE *fp, u_char *data, u_int len)  dump_base64(FILE *fp, u_char *data, u_int len)
 {  {
         char *buf = xmalloc(2*len);          char *buf;
         int i, n;          int i, n;
   
           if (len > 65536) {
                   fprintf(fp, "dump_base64: len > 65536\n");
                   return;
           }
           buf = xmalloc(2*len);
         n = uuencode(data, len, buf, 2*len);          n = uuencode(data, len, buf, 2*len);
         for (i = 0; i < n; i++) {          for (i = 0; i < n; i++) {
                 fprintf(fp, "%c", buf[i]);                  fprintf(fp, "%c", buf[i]);

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.17.8.1