home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / tmp9 / ckossh.h < prev    next >
C/C++ Source or Header  |  2004-03-11  |  5KB  |  100 lines

  1. /*  C K O S S H   --  Kermit interface to OpenSSH Header */
  2.  
  3. /*
  4.   Author:  Jeffrey E Altman (jaltman@secure-endpoints.com),
  5.            Secure Endpoints Inc., New York City
  6.  
  7.   COPYRIGHT NOTICE:
  8.  
  9.   Copyright (C) 2004, Trustees of Columbia University in the City of New
  10.   York.  All rights reserved.
  11. */
  12.  
  13. #ifdef SSHBUILTIN
  14. extern int                              /* SET SSH variables */
  15.   ssh_afw,                              /* agent forwarding */
  16.   ssh_xfw,                              /* x-11 forwarding */
  17.   ssh_prp,                              /* use privileged-port? */
  18.   ssh_cmp,                              /* use compression? */
  19.   ssh_cas,                              /* command-as-subsystem? */
  20.   ssh_shh,                              /* quiet? */
  21.   ssh_ver,                              /* Version: 0 auto, 1, 2 */
  22.   ssh_vrb,                              /* Verbose */
  23.   ssh_chkip,                            /* SSH Check Host IP flag */
  24.   ssh_gwp,                              /* gateway ports */
  25.   ssh_dyf,                              /* dynamic forwarding */
  26.   ssh_gsd,                              /* gssapi delegate credentials */
  27.   ssh_k4tgt,                            /* k4 tgt passing */
  28.   ssh_k5tgt,                            /* k5 tgt passing */
  29.   ssh_shk,                              /* Strict host key */
  30.   ssh2_ark,                             /* Auto re-key */
  31.   ssh_cas,                              /* command as subsys */
  32.   ssh_cfg,                              /* use OpenSSH config */
  33.   ssh_gkx,                              /* gssapi key exchange */
  34.   ssh_k5_is_k4,                         /* some OpenSSH use same codes */
  35.   ssh_hbt,                              /* heartbeat */
  36.   ssh_dummy;                            /* bottom of list */
  37.  
  38. char                                    /* The following are to be malloc'd */
  39.   * ssh1_cif,                           /* v1 cipher */
  40.   * ssh2_cif,                           /* v2 cipher list */
  41.   * ssh2_mac,                           /* v2 mac list */
  42.   * ssh2_auth,                          /* v2 authentication list */
  43.   * ssh2_hka,                           /* v2 Host Key Algorithm list */
  44.   * ssh_hst,                            /* hostname */
  45.   * ssh_prt,                            /* port/service */
  46.   * ssh_cmd,                            /* command to execute */
  47.   * ssh_xal,                            /* xauth-location */
  48.   * ssh1_gnh,                           /* v1 global known hosts file */
  49.   * ssh1_unh,                           /* v1 user known hosts file */
  50.   * ssh2_gnh,                           /* v2 global known hosts file */
  51.   * ssh2_unh,                           /* v2 user known hosts file */
  52.   * xxx_dummy;
  53.  
  54. extern char * ssh_idf[32];              /* identity files */
  55. extern int ssh_idf_n;
  56.  
  57. extern int    ssh_pf_lcl_n,
  58.               ssh_pf_rmt_n;
  59. extern struct ssh_pf ssh_pf_lcl[32];    /* Port forwarding structs */
  60. extern struct ssh_pf ssh_pf_rmt[32];    /* (declared in ckuusr.c) */
  61.  
  62. extern int ssh_sock;                    /* SSH socket */
  63.  
  64. _PROTOTYP(int ssh_open,(VOID));
  65. _PROTOTYP(int ssh_clos,(VOID));
  66. _PROTOTYP(int ssh_tchk,(VOID));
  67. _PROTOTYP(int ssh_flui,(VOID));
  68. _PROTOTYP(int ssh_break,(VOID));
  69. _PROTOTYP(int ssh_inc,(int));
  70. _PROTOTYP(int ssh_xin,(int,char *));
  71. _PROTOTYP(int ssh_toc,(int));
  72. _PROTOTYP(int ssh_tol,(char *,int));
  73. _PROTOTYP(VOID ssh_terminfo,(char *,int, int));
  74. _PROTOTYP(CONST char * ssh_version,(VOID));
  75. _PROTOTYP(CONST char * ssh_errorstr,(int));
  76. _PROTOTYP(int ssh_ttvt,(VOID));
  77. _PROTOTYP(int ssh_ttpkt,(VOID));
  78. _PROTOTYP(int ssh_ttres,(VOID));
  79. _PROTOTYP(VOID ssh_usage,(VOID));
  80. _PROTOTYP(int sshkey_create,(char * filename, int bits, char * pp,
  81.                    int type, char * cmd_comment));
  82. _PROTOTYP(int sshkey_display_fingerprint,(char * filename, int babble));
  83. _PROTOTYP(int sshkey_display_public,(char * filename, char *identity_passphrase));
  84. _PROTOTYP(int sshkey_display_public_as_ssh2,(char * filename,char *identity_passphrase));
  85. _PROTOTYP(int sshkey_change_passphrase,(char * filename, char * oldpp, char * newpp));
  86. _PROTOTYP(int sshkey_v1_change_comment,(char * filename, char * comment, char * pp));
  87. _PROTOTYP(char * sshkey_default_file,(int));
  88. _PROTOTYP(int ssh_fwd_local_port,(int,char *,int));
  89. _PROTOTYP(int ssh_few_remote_port,(int,char *,int));
  90. _PROTOTYP(void ssh_v2_rekey,(void));
  91. _PROTOTYP(char * ssh_proto_ver,(void));
  92.  
  93. _PROTOTYP(int ssh_agent_delete_file,(const char *filename));
  94. _PROTOTYP(int ssh_agent_delete_all, (void));
  95. _PROTOTYP(int ssh_agent_add_file, (const char *filename));
  96. _PROTOTYP(int ssh_agent_list_identities,(int do_fp));
  97. #endif /* SSHBUILTIN */
  98.  
  99.  
  100.