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 9504 - (hide 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 maya 3227 /*
2 doda 6841 * Copyright (c) 1998-2001, Robert O'Callahan
3 nmaya 9048 * (C) 2004- TeraTerm Project
4 doda 6841 * 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 maya 3227
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 doda 6801 char *prefetched_hostname;
40 maya 3227
41     #if 0
42     int key_bits;
43     /* The key exponent and modulus, in SSH mp_int format */
44 doda 6801 unsigned char *key_exp;
45     unsigned char *key_mod;
46 maya 3227 #else
47     // �z�X�g�L�[(SSH1,SSH2)�� Key �\�������W������
48     Key hostkey;
49     #endif
50    
51     int file_num;
52 zmatsuo 9504 wchar_t **file_names;
53 maya 3227 int file_data_index;
54 doda 6801 char *file_data; // known_hosts�t�@�C�������e���������i�[������
55 maya 3227
56     HWND hosts_dialog;
57     } HOSTSState;
58    
59 yutakapon 5847 typedef int hostkeys_foreach_fn(Key *key, void *ctx);
60 yutakapon 5846
61 maya 3227 void HOSTS_init(PTInstVar pvar);
62     void HOSTS_open(PTInstVar pvar);
63 doda 6801 void HOSTS_prefetch_host_key(PTInstVar pvar, char *hostname, unsigned short tcpport);
64 maya 3227 #if 0
65 doda 6801 BOOL HOSTS_check_host_key(PTInstVar pvar, char *hostname,
66     int bits, unsigned char *exp, unsigned char *mod);
67 maya 3227 #else
68 doda 6801 BOOL HOSTS_check_host_key(PTInstVar pvar, char *hostname, unsigned short tcpport, Key *key);
69 maya 3227 #endif
70     void HOSTS_do_unknown_host_dialog(HWND wnd, PTInstVar pvar);
71 maya 4331 void HOSTS_do_different_key_dialog(HWND wnd, PTInstVar pvar);
72 yutakapon 8093 void HOSTS_do_different_type_key_dialog(HWND wnd, PTInstVar pvar);
73 maya 3227 void HOSTS_notify_disconnecting(PTInstVar pvar);
74 yutakapon 8093 void HOSTS_notify_closing_on_exit(PTInstVar pvar);
75 maya 3227 void HOSTS_end(PTInstVar pvar);
76 yutakapon 5545
77 yutakapon 5843 int HOSTS_compare_public_key(Key *src, Key *key);
78 yutakapon 5846 int HOSTS_hostkey_foreach(PTInstVar pvar, hostkeys_foreach_fn *callback, void *ctx);
79 yutakapon 5849 void HOSTS_add_host_key(PTInstVar pvar, Key *key);
80     void HOSTS_delete_all_hostkeys(PTInstVar pvar);
81 yutakapon 5843
82 maya 3227 #endif

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