[BACK]Return to authfile.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / crypto / external / bsd / openssh / dist

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/crypto/external/bsd/openssh/dist/authfile.c between version 1.7 and 1.8

version 1.7, 2013/03/29 16:19:45 version 1.8, 2013/11/08 19:18:24
Line 1 
Line 1 
 /*      $NetBSD$        */  /*      $NetBSD$        */
 /* $OpenBSD: authfile.c,v 1.95 2013/01/08 18:49:04 markus Exp $ */  /* $OpenBSD: authfile.c,v 1.97 2013/05/17 00:13:13 djm Exp $ */
 /*  /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Line 86  key_private_rsa1_to_blob(Key *key, Buffe
Line 86  key_private_rsa1_to_blob(Key *key, Buffe
         u_char buf[100], *cp;          u_char buf[100], *cp;
         int i, cipher_num;          int i, cipher_num;
         CipherContext ciphercontext;          CipherContext ciphercontext;
         Cipher *cipher;          const Cipher *cipher;
         u_int32_t rnd;          u_int32_t rnd;
   
         /*          /*
Line 412  key_parse_private_rsa1(Buffer *blob, con
Line 412  key_parse_private_rsa1(Buffer *blob, con
         Buffer decrypted;          Buffer decrypted;
         u_char *cp;          u_char *cp;
         CipherContext ciphercontext;          CipherContext ciphercontext;
         Cipher *cipher;          const Cipher *cipher;
         Key *prv = NULL;          Key *prv = NULL;
         Buffer copy;          Buffer copy;
   
Line 500  key_parse_private_rsa1(Buffer *blob, con
Line 500  key_parse_private_rsa1(Buffer *blob, con
         return prv;          return prv;
   
 fail:  fail:
         if (commentp)          if (commentp != NULL)
                 xfree(*commentp);                  free(*commentp);
         key_free(prv);          key_free(prv);
         return NULL;          return NULL;
 }  }
Line 818  key_load_cert(const char *filename)
Line 818  key_load_cert(const char *filename)
         pub = key_new(KEY_UNSPEC);          pub = key_new(KEY_UNSPEC);
         xasprintf(&file, "%s-cert.pub", filename);          xasprintf(&file, "%s-cert.pub", filename);
         if (key_try_load_public(pub, file, NULL) == 1) {          if (key_try_load_public(pub, file, NULL) == 1) {
                 xfree(file);                  free(file);
                 return pub;                  return pub;
         }          }
         xfree(file);          free(file);
         key_free(pub);          key_free(pub);
         return NULL;          return NULL;
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

CVSweb <webmaster@jp.NetBSD.org>