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

Diff for /src/usr.bin/ssh/ssh-keygen.c between version 1.26 and 1.29

version 1.26, 2000/05/30 17:32:06 version 1.29, 2000/07/15 04:01:37
Line 7 
Line 7 
  */   */
   
 #include "includes.h"  #include "includes.h"
 RCSID("$Id$");  RCSID("$OpenBSD$");
   
 #include <openssl/evp.h>  #include <openssl/evp.h>
 #include <openssl/pem.h>  #include <openssl/pem.h>
Line 123 
Line 123 
                 exit(1);                  exit(1);
         }          }
         dsa_make_key_blob(k, &blob, &len);          dsa_make_key_blob(k, &blob, &len);
         fprintf(stdout, SSH_COM_MAGIC_BEGIN "\n");          fprintf(stdout, "%s\n", SSH_COM_MAGIC_BEGIN);
         fprintf(stdout,          fprintf(stdout,
             "Comment: \"%d-bit DSA, converted from openssh by %s@%s\"\n",              "Comment: \"%d-bit DSA, converted from openssh by %s@%s\"\n",
             BN_num_bits(k->dsa->p),              BN_num_bits(k->dsa->p),
             pw->pw_name, hostname);              pw->pw_name, hostname);
         dump_base64(stdout, blob, len);          dump_base64(stdout, blob, len);
         fprintf(stdout, SSH_COM_MAGIC_END "\n");          fprintf(stdout, "%s\n", SSH_COM_MAGIC_END);
         key_free(k);          key_free(k);
         xfree(blob);          xfree(blob);
         exit(0);          exit(0);
Line 654 
Line 654 
         snprintf(dotsshdir, sizeof dotsshdir, "%s/%s", pw->pw_dir, SSH_USER_DIR);          snprintf(dotsshdir, sizeof dotsshdir, "%s/%s", pw->pw_dir, SSH_USER_DIR);
         if (strstr(identity_file, dotsshdir) != NULL &&          if (strstr(identity_file, dotsshdir) != NULL &&
             stat(dotsshdir, &st) < 0) {              stat(dotsshdir, &st) < 0) {
                 if (mkdir(dotsshdir, 0755) < 0)                  if (mkdir(dotsshdir, 0700) < 0)
                         error("Could not create directory '%s'.", dotsshdir);                          error("Could not create directory '%s'.", dotsshdir);
                 else if (!quiet)                  else if (!quiet)
                         printf("Created directory '%s'.\n", dotsshdir);                          printf("Created directory '%s'.\n", dotsshdir);

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.29