Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2729 - (show annotations) (download) (as text)
Sun Nov 14 15:53:21 2004 UTC (19 years, 6 months ago) by yutakakn
Original Path: ttssh2/trunk/ttxssh/hosts.h
File MIME type: text/x-chdr
File size: 2391 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

1 /*
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 int key_bits;
40 /* The key exponent and modulus, in SSH mp_int format */
41 unsigned char FAR * key_exp;
42 unsigned char FAR * key_mod;
43
44 int file_num;
45 char FAR * FAR * file_names;
46 int file_data_index;
47 char FAR * file_data;
48
49 HWND hosts_dialog;
50 } HOSTSState;
51
52 void HOSTS_init(PTInstVar pvar);
53 void HOSTS_open(PTInstVar pvar);
54 void HOSTS_prefetch_host_key(PTInstVar pvar, char FAR * hostname);
55 BOOL HOSTS_check_host_key(PTInstVar pvar, char FAR * hostname,
56 int bits, unsigned char FAR * exp, unsigned char FAR * mod);
57 void HOSTS_do_unknown_host_dialog(HWND wnd, PTInstVar pvar);
58 void HOSTS_do_different_host_dialog(HWND wnd, PTInstVar pvar);
59 void HOSTS_notify_disconnecting(PTInstVar pvar);
60 void HOSTS_end(PTInstVar pvar);
61
62 #endif

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