Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/crypt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2757 by yutakakn, Fri Dec 17 14:05:55 2004 UTC revision 2762 by yutakakn, Wed Dec 22 17:28:14 2004 UTC
# Line 47  SOFTWARE, EVEN IF ADVISED OF THE POSSIBI Line 47  SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
47  #define DEATTACK_DETECTED       1  #define DEATTACK_DETECTED       1
48    
49  /*  /*
50   * $Id: crypt.c,v 1.2 2004-12-17 14:05:55 yutakakn Exp $ Cryptographic attack   * $Id: crypt.c,v 1.3 2004-12-22 17:28:14 yutakakn Exp $ Cryptographic attack
51   * detector for ssh - source code (C)1998 CORE-SDI, Buenos Aires Argentina   * detector for ssh - source code (C)1998 CORE-SDI, Buenos Aires Argentina
52   * Ariel Futoransky(futo@core-sdi.com) <http://www.core-sdi.com>   * Ariel Futoransky(futo@core-sdi.com) <http://www.core-sdi.com>
53   */   */
# Line 1411  int CRYPT_passphrase_decrypt(int cipher, Line 1411  int CRYPT_passphrase_decrypt(int cipher,
1411    
1412  void CRYPT_free_key_pair(CRYPTKeyPair FAR * key_pair)  void CRYPT_free_key_pair(CRYPTKeyPair FAR * key_pair)
1413  {  {
1414          RSA_free(key_pair->RSA_key);          if (key_pair->RSA_key != NULL)
1415                    RSA_free(key_pair->RSA_key);
1416    
1417            if (key_pair->DSA_key != NULL)
1418                    DSA_free(key_pair->DSA_key);
1419    
1420          free(key_pair);          free(key_pair);
1421  }  }
1422    
1423    /*
1424     * $Log: not supported by cvs2svn $
1425     */

Legend:
Removed from v.2757  
changed lines
  Added in v.2762

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26