Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 2833 by yutakakn, Sat Jul 9 17:08:47 2005 UTC revision 2856 by yutakakn, Sun Mar 26 15:43:58 2006 UTC
# Line 257  enum kex_modes { Line 257  enum kex_modes {
257  };  };
258    
259    
260    // ホストキー(SSH1, SSH2含む)のデータ構造 (2006.3.21 yutaka)
261    typedef struct Key {
262            // host key type
263            enum hostkey_type type;
264            // SSH2 RSA
265            RSA *rsa;
266            // SSH2 DSA
267            DSA *dsa;
268            // SSH1 RSA
269            int bits;
270            unsigned char *exp;
271            unsigned char *mod;
272    } Key;
273    
274    
275  /* The packet handler returns TRUE to keep the handler in place,  /* The packet handler returns TRUE to keep the handler in place,
276     FALSE to remove the handler. */     FALSE to remove the handler. */
# Line 392  BOOL handle_SSH2_userauth_inforeq(PTInst Line 406  BOOL handle_SSH2_userauth_inforeq(PTInst
406  void SSH2_update_compression_myproposal(PTInstVar pvar);  void SSH2_update_compression_myproposal(PTInstVar pvar);
407  void SSH2_update_cipher_myproposal(PTInstVar pvar);  void SSH2_update_cipher_myproposal(PTInstVar pvar);
408    
409    enum hostkey_type get_keytype_from_name(char *name);
410    char *get_sshname_from_key(Key *key);
411    int key_to_blob(Key *key, char **blobp, int *lenp);
412    Key *key_from_blob(char *data, int blen);
413    void key_free(Key *key);
414    RSA *duplicate_RSA(RSA *src);
415    DSA *duplicate_DSA(DSA *src);
416    
417  #endif  #endif

Legend:
Removed from v.2833  
changed lines
  Added in v.2856

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