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 9504 - (show annotations) (download) (as text)
Fri Oct 29 15:19:06 2021 UTC (2 years, 7 months ago) by zmatsuo
File MIME type: text/x-chdr
File size: 3174 byte(s)
ssh_known_hosts(ファイル名)をUnicode化

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

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