[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.46 and 1.47

version 1.46, 2001/03/09 03:14:39 version 1.47, 2001/03/11 15:04:16
Line 64 
Line 64 
 int convert_to_ssh2 = 0;  int convert_to_ssh2 = 0;
 int convert_from_ssh2 = 0;  int convert_from_ssh2 = 0;
 int print_public = 0;  int print_public = 0;
   int print_verbose = 0;
   
 /* default to RSA for SSH-1 */  /* default to RSA for SSH-1 */
 char *key_type_name = "rsa1";  char *key_type_name = "rsa1";
Line 346 
Line 347 
                         debug("try_load_public_key KEY_UNSPEC failed");                          debug("try_load_public_key KEY_UNSPEC failed");
         }          }
         if (success) {          if (success) {
                 printf("%d %s %s\n", key_size(public), key_fingerprint(public), comment);                  char *digest_md5, *digest_sha1, *digest_bubblebabble;
   
                   digest_md5 = key_fingerprint_ex(public, SSH_FP_MD5, SSH_FP_HEX);
                   digest_sha1 = key_fingerprint_ex(public, SSH_FP_SHA1, SSH_FP_HEX);
                   digest_bubblebabble = key_fingerprint_ex(public, SSH_FP_SHA1, SSH_FP_BUBBLEBABBLE);
   
                   if(print_verbose) {
                           printf("comment:      %s\n", comment);
                           printf("size:         %d\n", key_size(public));
                           printf("md5:          %s\n", digest_md5);
                           printf("sha1:         %s\n", digest_sha1);
                           printf("bubblebabble: %s\n", digest_bubblebabble);
                   } else {
                           printf("%d %s %s\n", key_size(public), digest_md5, comment);
                   }
   
                 key_free(public);                  key_free(public);
                 xfree(comment);                  xfree(comment);
                   xfree(digest_md5);
                   xfree(digest_sha1);
                   xfree(digest_bubblebabble);
   
                 exit(0);                  exit(0);
         }          }
   
Line 639 
Line 659 
                 exit(1);                  exit(1);
         }          }
   
         while ((opt = getopt(ac, av, "dqpclRxXyb:f:t:P:N:C:")) != -1) {          while ((opt = getopt(ac, av, "dqpclRxXyvb:f:t:P:N:C:")) != -1) {
                 switch (opt) {                  switch (opt) {
                 case 'b':                  case 'b':
                         bits = atoi(optarg);                          bits = atoi(optarg);
Line 697 
Line 717 
   
                 case 'y':                  case 'y':
                         print_public = 1;                          print_public = 1;
                           break;
   
                   case 'v':
                           print_verbose = 1;
                         break;                          break;
   
                 case 'd':                  case 'd':

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47