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

Diff for /src/usr.bin/ssh/Attic/key.c between version 1.124 and 1.125

version 1.124, 2014/12/21 22:27:56 version 1.125, 2015/01/08 10:14:08
Line 326 
Line 326 
 {  {
         int r;          int r;
   
         if ((r = sshkey_load_file(fd, filename, blob)) != 0) {          if ((r = sshkey_load_file(fd, blob)) != 0) {
                 fatal_on_fatal_errors(r, __func__, SSH_ERR_LIBCRYPTO_ERROR);                  fatal_on_fatal_errors(r, __func__, SSH_ERR_LIBCRYPTO_ERROR);
                 error("%s: %s", __func__, ssh_err(r));                  error("%s: %s", __func__, ssh_err(r));
                 return 0;                  return 0;
Line 432 
Line 432 
         }          }
         return ret;          return ret;
 }  }
   
 #ifdef WITH_OPENSSL  
 Key *  
 key_load_private_pem(int fd, int type, const char *passphrase,  
     char **commentp)  
 {  
         int r;  
         Key *ret = NULL;  
   
         if ((r = sshkey_load_private_pem(fd, type, passphrase,  
              &ret, commentp)) != 0) {  
                 fatal_on_fatal_errors(r, __func__, SSH_ERR_LIBCRYPTO_ERROR);  
                 if (r == SSH_ERR_KEY_WRONG_PASSPHRASE)  
                         debug("%s: %s", __func__, ssh_err(r));  
                 else  
                         error("%s: %s", __func__, ssh_err(r));  
                 return NULL;  
         }  
         return ret;  
 }  
 #endif /* WITH_OPENSSL */  
   
 int  int
 key_perm_ok(int fd, const char *filename)  key_perm_ok(int fd, const char *filename)

Legend:
Removed from v.1.124  
changed lines
  Added in v.1.125