Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 3092 by yutakapon, Sat Jan 5 11:39:33 2008 UTC revision 3093 by maya, Thu Jan 10 16:34:08 2008 UTC
# Line 3572  static char * get_cipher_string(SSHCiphe Line 3572  static char * get_cipher_string(SSHCiphe
3572          return buf;          return buf;
3573  }  }
3574    
3575  const EVP_CIPHER * (*get_cipher_EVP_CIPHER(SSHCipher cipher))(void)  const EVP_CIPHER* get_cipher_EVP_CIPHER(SSHCipher cipher)
3576  {  {
3577          ssh2_cipher_t *ptr = ssh2_ciphers;          ssh2_cipher_t *ptr = ssh2_ciphers;
3578          const EVP_CIPHER *(*type)(void);          const EVP_CIPHER *type;
3579    
3580          type = EVP_enc_null;          type = EVP_enc_null();
3581    
3582          while (ptr->name != NULL) {          while (ptr->name != NULL) {
3583                  if (cipher == ptr->cipher) {                  if (cipher == ptr->cipher) {
3584                          type = ptr->func;                          type = ptr->func();
3585                          break;                          break;
3586                  }                  }
3587                  ptr++;                  ptr++;

Legend:
Removed from v.3092  
changed lines
  Added in v.3093

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