Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Annotation of /trunk/ttssh2/ttxssh/hosts.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2856 - (hide annotations) (download) (as text)
Sun Mar 26 15:43:58 2006 UTC (18 years, 2 months ago) by yutakakn
Original Path: ttssh2/trunk/ttxssh/hosts.h
File MIME type: text/x-chdr
File size: 2616 byte(s)
SSH2のknown_hosts対応を追加した。

1 yutakakn 2728 /*
2     Copyright (c) 1998-2001, Robert O'Callahan
3     All rights reserved.
4    
5     Redistribution and use in source and binary forms, with or without modification,
6     are permitted provided that the following conditions are met:
7    
8     Redistributions of source code must retain the above copyright notice, this list of
9     conditions and the following disclaimer.
10    
11     Redistributions in binary form must reproduce the above copyright notice, this list
12     of conditions and the following disclaimer in the documentation and/or other materials
13     provided with the distribution.
14    
15     The name of Robert O'Callahan may not be used to endorse or promote products derived from
16     this software without specific prior written permission.
17    
18     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND
19     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
21     THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22     EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23     SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24     HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26     SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27     */
28    
29     /*
30     This code is copyright (C) 1998-1999 Robert O'Callahan.
31     See LICENSE.TXT for the license.
32     */
33    
34     #ifndef __HOSTS_H
35     #define __HOSTS_H
36    
37     typedef struct {
38     char FAR * prefetched_hostname;
39 yutakakn 2856
40     #if 0
41 yutakakn 2728 int key_bits;
42     /* The key exponent and modulus, in SSH mp_int format */
43     unsigned char FAR * key_exp;
44     unsigned char FAR * key_mod;
45 yutakakn 2856 #else
46     // �z�X�g�L�[(SSH1,SSH2)�� Key �\�������W������
47     Key hostkey;
48     #endif
49 yutakakn 2728
50     int file_num;
51     char FAR * FAR * file_names;
52     int file_data_index;
53 yutakakn 2856 char FAR * file_data; // known_hosts�t�@�C�������e���������i�[������
54 yutakakn 2728
55     HWND hosts_dialog;
56     } HOSTSState;
57    
58     void HOSTS_init(PTInstVar pvar);
59     void HOSTS_open(PTInstVar pvar);
60     void HOSTS_prefetch_host_key(PTInstVar pvar, char FAR * hostname);
61 yutakakn 2856 #if 0
62 yutakakn 2728 BOOL HOSTS_check_host_key(PTInstVar pvar, char FAR * hostname,
63     int bits, unsigned char FAR * exp, unsigned char FAR * mod);
64 yutakakn 2856 #else
65     BOOL HOSTS_check_host_key(PTInstVar pvar, char FAR * hostname, Key *key);
66     #endif
67 yutakakn 2728 void HOSTS_do_unknown_host_dialog(HWND wnd, PTInstVar pvar);
68     void HOSTS_do_different_host_dialog(HWND wnd, PTInstVar pvar);
69     void HOSTS_notify_disconnecting(PTInstVar pvar);
70     void HOSTS_end(PTInstVar pvar);
71     #endif

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