1158519Sdes/*
2158519Sdes * Namespace munging inspired by an equivalent hack in NetBSD's tree: add
3158519Sdes * the "ssh_" prefix to every symbol in libssh which doesn't already have
4158519Sdes * it.  This prevents collisions between symbols in libssh and symbols in
5158519Sdes * other libraries or applications which link with libssh, either directly
6158519Sdes * or indirectly (e.g. through PAM loading pam_ssh).
7158519Sdes *
8158519Sdes * A list of symbols which need munging is obtained as follows:
9158519Sdes *
10255767Sdes * nm libssh.a | awk '/[0-9a-z] [A-Z] / && $3 !~ /^ssh_/ { printf("#define %-39s ssh_%s\n", $3, $3) }' | unexpand -a | sort -u
11158519Sdes * $FreeBSD$
12158519Sdes */
13158519Sdes
14262566Sdes#define Blowfish_decipher			ssh_Blowfish_decipher
15262566Sdes#define Blowfish_encipher			ssh_Blowfish_encipher
16262566Sdes#define Blowfish_expand0state			ssh_Blowfish_expand0state
17262566Sdes#define Blowfish_expandstate			ssh_Blowfish_expandstate
18262566Sdes#define Blowfish_initstate			ssh_Blowfish_initstate
19262566Sdes#define Blowfish_stream2word			ssh_Blowfish_stream2word
20158519Sdes#define a2port					ssh_a2port
21158519Sdes#define a2tun					ssh_a2tun
22158519Sdes#define add_host_to_hostfile			ssh_add_host_to_hostfile
23158519Sdes#define addargs					ssh_addargs
24204917Sdes#define addr_match_cidr_list			ssh_addr_match_cidr_list
25192595Sdes#define addr_match_list				ssh_addr_match_list
26158519Sdes#define ask_permission				ssh_ask_permission
27158519Sdes#define atomicio				ssh_atomicio
28221420Sdes#define atomicio6				ssh_atomicio6
29162856Sdes#define atomiciov				ssh_atomiciov
30221420Sdes#define atomiciov6				ssh_atomiciov6
31181094Sdes#define auth_request_forwarding			ssh_auth_request_forwarding
32221420Sdes#define bandwidth_limit				ssh_bandwidth_limit
33221420Sdes#define bandwidth_limit_init			ssh_bandwidth_limit_init
34262566Sdes#define bcrypt_pbkdf				ssh_bcrypt_pbkdf
35262566Sdes#define blf_cbc_decrypt				ssh_blf_cbc_decrypt
36262566Sdes#define blf_cbc_encrypt				ssh_blf_cbc_encrypt
37262566Sdes#define blf_dec					ssh_blf_dec
38262566Sdes#define blf_ecb_decrypt				ssh_blf_ecb_decrypt
39262566Sdes#define blf_ecb_encrypt				ssh_blf_ecb_encrypt
40262566Sdes#define blf_enc					ssh_blf_enc
41262566Sdes#define blf_key					ssh_blf_key
42158519Sdes#define buffer_append				ssh_buffer_append
43158519Sdes#define buffer_append_space			ssh_buffer_append_space
44162856Sdes#define buffer_check_alloc			ssh_buffer_check_alloc
45158519Sdes#define buffer_clear				ssh_buffer_clear
46158519Sdes#define buffer_compress				ssh_buffer_compress
47158519Sdes#define buffer_compress_init_recv		ssh_buffer_compress_init_recv
48158519Sdes#define buffer_compress_init_send		ssh_buffer_compress_init_send
49158519Sdes#define buffer_compress_uninit			ssh_buffer_compress_uninit
50158519Sdes#define buffer_consume				ssh_buffer_consume
51158519Sdes#define buffer_consume_end			ssh_buffer_consume_end
52158519Sdes#define buffer_consume_end_ret			ssh_buffer_consume_end_ret
53158519Sdes#define buffer_consume_ret			ssh_buffer_consume_ret
54158519Sdes#define buffer_dump				ssh_buffer_dump
55158519Sdes#define buffer_free				ssh_buffer_free
56158519Sdes#define buffer_get				ssh_buffer_get
57158519Sdes#define buffer_get_bignum			ssh_buffer_get_bignum
58158519Sdes#define buffer_get_bignum2			ssh_buffer_get_bignum2
59262566Sdes#define buffer_get_bignum2_as_string		ssh_buffer_get_bignum2_as_string
60262566Sdes#define buffer_get_bignum2_as_string_ret	ssh_buffer_get_bignum2_as_string_ret
61158519Sdes#define buffer_get_bignum2_ret			ssh_buffer_get_bignum2_ret
62158519Sdes#define buffer_get_bignum_ret			ssh_buffer_get_bignum_ret
63158519Sdes#define buffer_get_char				ssh_buffer_get_char
64158519Sdes#define buffer_get_char_ret			ssh_buffer_get_char_ret
65221420Sdes#define buffer_get_cstring			ssh_buffer_get_cstring
66221420Sdes#define buffer_get_cstring_ret			ssh_buffer_get_cstring_ret
67221420Sdes#define buffer_get_ecpoint			ssh_buffer_get_ecpoint
68221420Sdes#define buffer_get_ecpoint_ret			ssh_buffer_get_ecpoint_ret
69158519Sdes#define buffer_get_int				ssh_buffer_get_int
70158519Sdes#define buffer_get_int64			ssh_buffer_get_int64
71158519Sdes#define buffer_get_int64_ret			ssh_buffer_get_int64_ret
72158519Sdes#define buffer_get_int_ret			ssh_buffer_get_int_ret
73225852Sdes#define buffer_get_max_len			ssh_buffer_get_max_len
74158519Sdes#define buffer_get_ret				ssh_buffer_get_ret
75158519Sdes#define buffer_get_short			ssh_buffer_get_short
76158519Sdes#define buffer_get_short_ret			ssh_buffer_get_short_ret
77158519Sdes#define buffer_get_string			ssh_buffer_get_string
78192595Sdes#define buffer_get_string_ptr			ssh_buffer_get_string_ptr
79204917Sdes#define buffer_get_string_ptr_ret		ssh_buffer_get_string_ptr_ret
80158519Sdes#define buffer_get_string_ret			ssh_buffer_get_string_ret
81158519Sdes#define buffer_init				ssh_buffer_init
82158519Sdes#define buffer_len				ssh_buffer_len
83158519Sdes#define buffer_ptr				ssh_buffer_ptr
84158519Sdes#define buffer_put_bignum			ssh_buffer_put_bignum
85158519Sdes#define buffer_put_bignum2			ssh_buffer_put_bignum2
86262566Sdes#define buffer_put_bignum2_from_string		ssh_buffer_put_bignum2_from_string
87158519Sdes#define buffer_put_bignum2_ret			ssh_buffer_put_bignum2_ret
88158519Sdes#define buffer_put_bignum_ret			ssh_buffer_put_bignum_ret
89158519Sdes#define buffer_put_char				ssh_buffer_put_char
90158519Sdes#define buffer_put_cstring			ssh_buffer_put_cstring
91221420Sdes#define buffer_put_ecpoint			ssh_buffer_put_ecpoint
92221420Sdes#define buffer_put_ecpoint_ret			ssh_buffer_put_ecpoint_ret
93158519Sdes#define buffer_put_int				ssh_buffer_put_int
94158519Sdes#define buffer_put_int64			ssh_buffer_put_int64
95158519Sdes#define buffer_put_short			ssh_buffer_put_short
96158519Sdes#define buffer_put_string			ssh_buffer_put_string
97158519Sdes#define buffer_uncompress			ssh_buffer_uncompress
98262566Sdes#define chacha_encrypt_bytes			ssh_chacha_encrypt_bytes
99262566Sdes#define chacha_ivsetup				ssh_chacha_ivsetup
100262566Sdes#define chacha_keysetup				ssh_chacha_keysetup
101262566Sdes#define chachapoly_crypt			ssh_chachapoly_crypt
102262566Sdes#define chachapoly_get_length			ssh_chachapoly_get_length
103262566Sdes#define chachapoly_init				ssh_chachapoly_init
104158519Sdes#define chan_ibuf_empty				ssh_chan_ibuf_empty
105158519Sdes#define chan_is_dead				ssh_chan_is_dead
106158519Sdes#define chan_mark_dead				ssh_chan_mark_dead
107158519Sdes#define chan_obuf_empty				ssh_chan_obuf_empty
108192595Sdes#define chan_rcvd_eow				ssh_chan_rcvd_eow
109158519Sdes#define chan_rcvd_ieof				ssh_chan_rcvd_ieof
110181094Sdes#define chan_rcvd_oclose			ssh_chan_rcvd_oclose
111181094Sdes#define chan_read_failed			ssh_chan_read_failed
112181094Sdes#define chan_write_failed			ssh_chan_write_failed
113162856Sdes#define channel_add_adm_permitted_opens		ssh_channel_add_adm_permitted_opens
114181094Sdes#define channel_add_permitted_opens		ssh_channel_add_permitted_opens
115181094Sdes#define channel_after_select			ssh_channel_after_select
116158519Sdes#define channel_by_id				ssh_channel_by_id
117181094Sdes#define channel_cancel_cleanup			ssh_channel_cancel_cleanup
118240075Sdes#define channel_cancel_lport_listener		ssh_channel_cancel_lport_listener
119181094Sdes#define channel_cancel_rport_listener		ssh_channel_cancel_rport_listener
120162856Sdes#define channel_clear_adm_permitted_opens	ssh_channel_clear_adm_permitted_opens
121181094Sdes#define channel_clear_permitted_opens		ssh_channel_clear_permitted_opens
122158519Sdes#define channel_close_all			ssh_channel_close_all
123158519Sdes#define channel_close_fd			ssh_channel_close_fd
124158519Sdes#define channel_connect_by_listen_address	ssh_channel_connect_by_listen_address
125204917Sdes#define channel_connect_stdio_fwd		ssh_channel_connect_stdio_fwd
126158519Sdes#define channel_connect_to			ssh_channel_connect_to
127240075Sdes#define channel_disable_adm_local_opens		ssh_channel_disable_adm_local_opens
128158519Sdes#define channel_find_open			ssh_channel_find_open
129158519Sdes#define channel_free				ssh_channel_free
130158519Sdes#define channel_free_all			ssh_channel_free_all
131158519Sdes#define channel_input_close			ssh_channel_input_close
132158519Sdes#define channel_input_close_confirmation	ssh_channel_input_close_confirmation
133158519Sdes#define channel_input_data			ssh_channel_input_data
134158519Sdes#define channel_input_extended_data		ssh_channel_input_extended_data
135158519Sdes#define channel_input_ieof			ssh_channel_input_ieof
136158519Sdes#define channel_input_oclose			ssh_channel_input_oclose
137158519Sdes#define channel_input_open_confirmation		ssh_channel_input_open_confirmation
138158519Sdes#define channel_input_open_failure		ssh_channel_input_open_failure
139158519Sdes#define channel_input_port_forward_request	ssh_channel_input_port_forward_request
140158519Sdes#define channel_input_port_open			ssh_channel_input_port_open
141192595Sdes#define channel_input_status_confirm		ssh_channel_input_status_confirm
142158519Sdes#define channel_input_window_adjust		ssh_channel_input_window_adjust
143158519Sdes#define channel_lookup				ssh_channel_lookup
144158519Sdes#define channel_new				ssh_channel_new
145158519Sdes#define channel_not_very_much_buffered_data	ssh_channel_not_very_much_buffered_data
146158519Sdes#define channel_open_message			ssh_channel_open_message
147158519Sdes#define channel_output_poll			ssh_channel_output_poll
148158519Sdes#define channel_permit_all_opens		ssh_channel_permit_all_opens
149197785Sdes#define channel_post				ssh_channel_post
150197785Sdes#define channel_pre				ssh_channel_pre
151158519Sdes#define channel_prepare_select			ssh_channel_prepare_select
152192595Sdes#define channel_print_adm_permitted_opens	ssh_channel_print_adm_permitted_opens
153158519Sdes#define channel_register_cleanup		ssh_channel_register_cleanup
154158519Sdes#define channel_register_filter			ssh_channel_register_filter
155192595Sdes#define channel_register_open_confirm		ssh_channel_register_open_confirm
156192595Sdes#define channel_register_status_confirm		ssh_channel_register_status_confirm
157158519Sdes#define channel_request_remote_forwarding	ssh_channel_request_remote_forwarding
158158519Sdes#define channel_request_rforward_cancel		ssh_channel_request_rforward_cancel
159158519Sdes#define channel_request_start			ssh_channel_request_start
160158519Sdes#define channel_send_open			ssh_channel_send_open
161158519Sdes#define channel_send_window_changes		ssh_channel_send_window_changes
162158519Sdes#define channel_set_af				ssh_channel_set_af
163158519Sdes#define channel_set_fds				ssh_channel_set_fds
164225852Sdes#define channel_set_hpn				ssh_channel_set_hpn
165158519Sdes#define channel_setup_local_fwd_listener	ssh_channel_setup_local_fwd_listener
166158519Sdes#define channel_setup_remote_fwd_listener	ssh_channel_setup_remote_fwd_listener
167158519Sdes#define channel_still_open			ssh_channel_still_open
168158519Sdes#define channel_stop_listening			ssh_channel_stop_listening
169240075Sdes#define channel_update_permitted_opens		ssh_channel_update_permitted_opens
170221420Sdes#define check_key_in_hostkeys			ssh_check_key_in_hostkeys
171158519Sdes#define choose_dh				ssh_choose_dh
172158519Sdes#define chop					ssh_chop
173255767Sdes#define cipher_alg_list				ssh_cipher_alg_list
174248619Sdes#define cipher_authlen				ssh_cipher_authlen
175158519Sdes#define cipher_blocksize			ssh_cipher_blocksize
176158519Sdes#define cipher_by_name				ssh_cipher_by_name
177158519Sdes#define cipher_by_number			ssh_cipher_by_number
178158519Sdes#define cipher_cleanup				ssh_cipher_cleanup
179158519Sdes#define cipher_crypt				ssh_cipher_crypt
180158519Sdes#define cipher_get_keycontext			ssh_cipher_get_keycontext
181181094Sdes#define cipher_get_keyiv			ssh_cipher_get_keyiv
182181094Sdes#define cipher_get_keyiv_len			ssh_cipher_get_keyiv_len
183262566Sdes#define cipher_get_length			ssh_cipher_get_length
184181094Sdes#define cipher_get_number			ssh_cipher_get_number
185158519Sdes#define cipher_init				ssh_cipher_init
186192595Sdes#define cipher_is_cbc				ssh_cipher_is_cbc
187248619Sdes#define cipher_ivlen				ssh_cipher_ivlen
188158519Sdes#define cipher_keylen				ssh_cipher_keylen
189181094Sdes#define cipher_mask_ssh1			ssh_cipher_mask_ssh1
190158519Sdes#define cipher_name				ssh_cipher_name
191158519Sdes#define cipher_number				ssh_cipher_number
192262566Sdes#define cipher_seclen				ssh_cipher_seclen
193181094Sdes#define cipher_set_key_string			ssh_cipher_set_key_string
194181094Sdes#define cipher_set_keycontext			ssh_cipher_set_keycontext
195181094Sdes#define cipher_set_keyiv			ssh_cipher_set_keyiv
196158519Sdes#define ciphers_valid				ssh_ciphers_valid
197158519Sdes#define cleanhostname				ssh_cleanhostname
198158519Sdes#define cleanup_exit				ssh_cleanup_exit
199197679Sdes#define clear_cached_addr			ssh_clear_cached_addr
200158519Sdes#define colon					ssh_colon
201197785Sdes#define compat13				ssh_compat13
202197785Sdes#define compat20				ssh_compat20
203158519Sdes#define compat_cipher_proposal			ssh_compat_cipher_proposal
204158519Sdes#define compat_datafellows			ssh_compat_datafellows
205262566Sdes#define compat_pkalg_proposal			ssh_compat_pkalg_proposal
206158519Sdes#define convtime				ssh_convtime
207262566Sdes#define crypto_hash_sha512			ssh_crypto_hash_sha512
208262566Sdes#define crypto_hashblocks_sha512		ssh_crypto_hashblocks_sha512
209262566Sdes#define crypto_scalarmult_curve25519		ssh_crypto_scalarmult_curve25519
210262566Sdes#define crypto_sign_ed25519			ssh_crypto_sign_ed25519
211262566Sdes#define crypto_sign_ed25519_keypair		ssh_crypto_sign_ed25519_keypair
212262566Sdes#define crypto_sign_ed25519_open		ssh_crypto_sign_ed25519_open
213262566Sdes#define crypto_sign_ed25519_ref_double_scalarmult_vartime ssh_crypto_sign_ed25519_ref_double_scalarmult_vartime
214262566Sdes#define crypto_sign_ed25519_ref_fe25519_add	ssh_crypto_sign_ed25519_ref_fe25519_add
215262566Sdes#define crypto_sign_ed25519_ref_fe25519_cmov	ssh_crypto_sign_ed25519_ref_fe25519_cmov
216262566Sdes#define crypto_sign_ed25519_ref_fe25519_freeze	ssh_crypto_sign_ed25519_ref_fe25519_freeze
217262566Sdes#define crypto_sign_ed25519_ref_fe25519_getparity ssh_crypto_sign_ed25519_ref_fe25519_getparity
218262566Sdes#define crypto_sign_ed25519_ref_fe25519_invert	ssh_crypto_sign_ed25519_ref_fe25519_invert
219262566Sdes#define crypto_sign_ed25519_ref_fe25519_iseq_vartime ssh_crypto_sign_ed25519_ref_fe25519_iseq_vartime
220262566Sdes#define crypto_sign_ed25519_ref_fe25519_iszero	ssh_crypto_sign_ed25519_ref_fe25519_iszero
221262566Sdes#define crypto_sign_ed25519_ref_fe25519_mul	ssh_crypto_sign_ed25519_ref_fe25519_mul
222262566Sdes#define crypto_sign_ed25519_ref_fe25519_neg	ssh_crypto_sign_ed25519_ref_fe25519_neg
223262566Sdes#define crypto_sign_ed25519_ref_fe25519_pack	ssh_crypto_sign_ed25519_ref_fe25519_pack
224262566Sdes#define crypto_sign_ed25519_ref_fe25519_pow2523 ssh_crypto_sign_ed25519_ref_fe25519_pow2523
225262566Sdes#define crypto_sign_ed25519_ref_fe25519_setone	ssh_crypto_sign_ed25519_ref_fe25519_setone
226262566Sdes#define crypto_sign_ed25519_ref_fe25519_setzero ssh_crypto_sign_ed25519_ref_fe25519_setzero
227262566Sdes#define crypto_sign_ed25519_ref_fe25519_square	ssh_crypto_sign_ed25519_ref_fe25519_square
228262566Sdes#define crypto_sign_ed25519_ref_fe25519_sub	ssh_crypto_sign_ed25519_ref_fe25519_sub
229262566Sdes#define crypto_sign_ed25519_ref_fe25519_unpack	ssh_crypto_sign_ed25519_ref_fe25519_unpack
230262566Sdes#define crypto_sign_ed25519_ref_ge25519_base	ssh_crypto_sign_ed25519_ref_ge25519_base
231262566Sdes#define crypto_sign_ed25519_ref_isneutral_vartime ssh_crypto_sign_ed25519_ref_isneutral_vartime
232262566Sdes#define crypto_sign_ed25519_ref_pack		ssh_crypto_sign_ed25519_ref_pack
233262566Sdes#define crypto_sign_ed25519_ref_sc25519_2interleave2 ssh_crypto_sign_ed25519_ref_sc25519_2interleave2
234262566Sdes#define crypto_sign_ed25519_ref_sc25519_add	ssh_crypto_sign_ed25519_ref_sc25519_add
235262566Sdes#define crypto_sign_ed25519_ref_sc25519_from32bytes ssh_crypto_sign_ed25519_ref_sc25519_from32bytes
236262566Sdes#define crypto_sign_ed25519_ref_sc25519_from64bytes ssh_crypto_sign_ed25519_ref_sc25519_from64bytes
237262566Sdes#define crypto_sign_ed25519_ref_sc25519_from_shortsc ssh_crypto_sign_ed25519_ref_sc25519_from_shortsc
238262566Sdes#define crypto_sign_ed25519_ref_sc25519_isshort_vartime ssh_crypto_sign_ed25519_ref_sc25519_isshort_vartime
239262566Sdes#define crypto_sign_ed25519_ref_sc25519_iszero_vartime ssh_crypto_sign_ed25519_ref_sc25519_iszero_vartime
240262566Sdes#define crypto_sign_ed25519_ref_sc25519_lt_vartime ssh_crypto_sign_ed25519_ref_sc25519_lt_vartime
241262566Sdes#define crypto_sign_ed25519_ref_sc25519_mul	ssh_crypto_sign_ed25519_ref_sc25519_mul
242262566Sdes#define crypto_sign_ed25519_ref_sc25519_mul_shortsc ssh_crypto_sign_ed25519_ref_sc25519_mul_shortsc
243262566Sdes#define crypto_sign_ed25519_ref_sc25519_sub_nored ssh_crypto_sign_ed25519_ref_sc25519_sub_nored
244262566Sdes#define crypto_sign_ed25519_ref_sc25519_to32bytes ssh_crypto_sign_ed25519_ref_sc25519_to32bytes
245262566Sdes#define crypto_sign_ed25519_ref_sc25519_window3 ssh_crypto_sign_ed25519_ref_sc25519_window3
246262566Sdes#define crypto_sign_ed25519_ref_sc25519_window5 ssh_crypto_sign_ed25519_ref_sc25519_window5
247262566Sdes#define crypto_sign_ed25519_ref_scalarmult_base ssh_crypto_sign_ed25519_ref_scalarmult_base
248262566Sdes#define crypto_sign_ed25519_ref_shortsc25519_from16bytes ssh_crypto_sign_ed25519_ref_shortsc25519_from16bytes
249262566Sdes#define crypto_sign_ed25519_ref_unpackneg_vartime ssh_crypto_sign_ed25519_ref_unpackneg_vartime
250262566Sdes#define crypto_verify_32			ssh_crypto_verify_32
251197785Sdes#define current_keys				ssh_current_keys
252197785Sdes#define datafellows				ssh_datafellows
253181094Sdes#define debug					ssh_debug
254181094Sdes#define debug2					ssh_debug2
255181094Sdes#define debug3					ssh_debug3
256158519Sdes#define decode_reply				ssh_decode_reply
257158519Sdes#define deny_input_open				ssh_deny_input_open
258158519Sdes#define derive_ssh1_session_id			ssh_derive_ssh1_session_id
259158519Sdes#define detect_attack				ssh_detect_attack
260158519Sdes#define dh_estimate				ssh_dh_estimate
261158519Sdes#define dh_gen_key				ssh_dh_gen_key
262158519Sdes#define dh_new_group				ssh_dh_new_group
263158519Sdes#define dh_new_group1				ssh_dh_new_group1
264158519Sdes#define dh_new_group14				ssh_dh_new_group14
265158519Sdes#define dh_new_group_asc			ssh_dh_new_group_asc
266158519Sdes#define dh_pub_is_valid				ssh_dh_pub_is_valid
267262566Sdes#define digests					ssh_digests
268197785Sdes#define dispatch				ssh_dispatch
269158519Sdes#define dispatch_init				ssh_dispatch_init
270158519Sdes#define dispatch_protocol_error			ssh_dispatch_protocol_error
271158519Sdes#define dispatch_protocol_ignore		ssh_dispatch_protocol_ignore
272158519Sdes#define dispatch_range				ssh_dispatch_range
273158519Sdes#define dispatch_run				ssh_dispatch_run
274158519Sdes#define dispatch_set				ssh_dispatch_set
275158519Sdes#define do_log					ssh_do_log
276226046Sdes#define do_log2					ssh_do_log2
277158519Sdes#define dump_base64				ssh_dump_base64
278158519Sdes#define enable_compat13				ssh_enable_compat13
279158519Sdes#define enable_compat20				ssh_enable_compat20
280181094Sdes#define error					ssh_error
281158519Sdes#define evp_ssh1_3des				ssh_evp_ssh1_3des
282158519Sdes#define evp_ssh1_bf				ssh_evp_ssh1_bf
283264377Sdes#define explicit_bzero				ssh_explicit_bzero
284158519Sdes#define export_dns_rr				ssh_export_dns_rr
285181094Sdes#define fatal					ssh_fatal
286192595Sdes#define fmt_scaled				ssh_fmt_scaled
287221420Sdes#define free_hostkeys				ssh_free_hostkeys
288158519Sdes#define freeargs				ssh_freeargs
289158519Sdes#define freerrset				ssh_freerrset
290158519Sdes#define gen_candidates				ssh_gen_candidates
291158519Sdes#define get_canonical_hostname			ssh_get_canonical_hostname
292158519Sdes#define get_local_ipaddr			ssh_get_local_ipaddr
293158519Sdes#define get_local_name				ssh_get_local_name
294158519Sdes#define get_local_port				ssh_get_local_port
295158519Sdes#define get_peer_ipaddr				ssh_get_peer_ipaddr
296158519Sdes#define get_peer_port				ssh_get_peer_port
297158519Sdes#define get_remote_ipaddr			ssh_get_remote_ipaddr
298158519Sdes#define get_remote_name_or_ip			ssh_get_remote_name_or_ip
299158519Sdes#define get_remote_port				ssh_get_remote_port
300192595Sdes#define get_sock_port				ssh_get_sock_port
301162856Sdes#define get_u16					ssh_get_u16
302162856Sdes#define get_u32					ssh_get_u32
303162856Sdes#define get_u64					ssh_get_u64
304158519Sdes#define getrrsetbyname				ssh_getrrsetbyname
305199131Sdes#define glob					ssh_glob
306199131Sdes#define globfree				ssh_globfree
307158519Sdes#define host_hash				ssh_host_hash
308158519Sdes#define hostfile_read_key			ssh_hostfile_read_key
309158519Sdes#define hpdelim					ssh_hpdelim
310197785Sdes#define incoming_stream				ssh_incoming_stream
311221420Sdes#define init_hostkeys				ssh_init_hostkeys
312226046Sdes#define iptos2str				ssh_iptos2str
313158519Sdes#define ipv64_normalise_mapped			ssh_ipv64_normalise_mapped
314255767Sdes#define kex_alg_list				ssh_kex_alg_list
315262566Sdes#define kex_c25519_hash				ssh_kex_c25519_hash
316158519Sdes#define kex_derive_keys				ssh_kex_derive_keys
317262566Sdes#define kex_derive_keys_bn			ssh_kex_derive_keys_bn
318158519Sdes#define kex_dh_hash				ssh_kex_dh_hash
319221420Sdes#define kex_ecdh_hash				ssh_kex_ecdh_hash
320158519Sdes#define kex_finish				ssh_kex_finish
321158519Sdes#define kex_get_newkeys				ssh_kex_get_newkeys
322158519Sdes#define kex_input_kexinit			ssh_kex_input_kexinit
323221420Sdes#define kex_names_valid				ssh_kex_names_valid
324158519Sdes#define kex_send_kexinit			ssh_kex_send_kexinit
325158519Sdes#define kex_setup				ssh_kex_setup
326262566Sdes#define kexc25519_client			ssh_kexc25519_client
327262566Sdes#define kexc25519_keygen			ssh_kexc25519_keygen
328262566Sdes#define kexc25519_shared_key			ssh_kexc25519_shared_key
329158519Sdes#define kexdh_client				ssh_kexdh_client
330221420Sdes#define kexecdh_client				ssh_kexecdh_client
331158519Sdes#define kexgex_client				ssh_kexgex_client
332158519Sdes#define kexgex_hash				ssh_kexgex_hash
333204917Sdes#define key_add_private				ssh_key_add_private
334255767Sdes#define key_alg_list				ssh_key_alg_list
335204917Sdes#define key_cert_check_authority		ssh_key_cert_check_authority
336204917Sdes#define key_cert_copy				ssh_key_cert_copy
337221420Sdes#define key_cert_is_legacy			ssh_key_cert_is_legacy
338221420Sdes#define key_cert_type				ssh_key_cert_type
339204917Sdes#define key_certify				ssh_key_certify
340221420Sdes#define key_curve_name_to_nid			ssh_key_curve_name_to_nid
341221420Sdes#define key_curve_nid_to_bits			ssh_key_curve_nid_to_bits
342221420Sdes#define key_curve_nid_to_name			ssh_key_curve_nid_to_name
343158519Sdes#define key_demote				ssh_key_demote
344204917Sdes#define key_drop_cert				ssh_key_drop_cert
345262566Sdes#define key_ec_nid_to_hash_alg			ssh_key_ec_nid_to_hash_alg
346221420Sdes#define key_ec_validate_private			ssh_key_ec_validate_private
347221420Sdes#define key_ec_validate_public			ssh_key_ec_validate_public
348221420Sdes#define key_ecdsa_bits_to_nid			ssh_key_ecdsa_bits_to_nid
349221420Sdes#define key_ecdsa_key_to_nid			ssh_key_ecdsa_key_to_nid
350221420Sdes#define key_ecdsa_nid_from_name			ssh_key_ecdsa_nid_from_name
351158519Sdes#define key_equal				ssh_key_equal
352204917Sdes#define key_equal_public			ssh_key_equal_public
353158519Sdes#define key_fingerprint				ssh_key_fingerprint
354158519Sdes#define key_fingerprint_raw			ssh_key_fingerprint_raw
355158519Sdes#define key_free				ssh_key_free
356158519Sdes#define key_from_blob				ssh_key_from_blob
357158519Sdes#define key_from_private			ssh_key_from_private
358158519Sdes#define key_generate				ssh_key_generate
359204917Sdes#define key_in_file				ssh_key_in_file
360204917Sdes#define key_is_cert				ssh_key_is_cert
361221420Sdes#define key_load_cert				ssh_key_load_cert
362226046Sdes#define key_load_file				ssh_key_load_file
363158519Sdes#define key_load_private			ssh_key_load_private
364221420Sdes#define key_load_private_cert			ssh_key_load_private_cert
365158519Sdes#define key_load_private_pem			ssh_key_load_private_pem
366158519Sdes#define key_load_private_type			ssh_key_load_private_type
367158519Sdes#define key_load_public				ssh_key_load_public
368158519Sdes#define key_load_public_type			ssh_key_load_public_type
369158519Sdes#define key_names_valid2			ssh_key_names_valid2
370158519Sdes#define key_new					ssh_key_new
371158519Sdes#define key_new_private				ssh_key_new_private
372226046Sdes#define key_parse_private			ssh_key_parse_private
373162856Sdes#define key_perm_ok				ssh_key_perm_ok
374262566Sdes#define key_private_deserialize			ssh_key_private_deserialize
375262566Sdes#define key_private_serialize			ssh_key_private_serialize
376158519Sdes#define key_read				ssh_key_read
377158519Sdes#define key_save_private			ssh_key_save_private
378158519Sdes#define key_sign				ssh_key_sign
379158519Sdes#define key_size				ssh_key_size
380158519Sdes#define key_ssh_name				ssh_key_ssh_name
381221420Sdes#define key_ssh_name_plain			ssh_key_ssh_name_plain
382158519Sdes#define key_to_blob				ssh_key_to_blob
383204917Sdes#define key_to_certified			ssh_key_to_certified
384158519Sdes#define key_type				ssh_key_type
385158519Sdes#define key_type_from_name			ssh_key_type_from_name
386262566Sdes#define key_type_is_cert			ssh_key_type_is_cert
387204917Sdes#define key_type_plain				ssh_key_type_plain
388158519Sdes#define key_verify				ssh_key_verify
389158519Sdes#define key_write				ssh_key_write
390221420Sdes#define load_hostkeys				ssh_load_hostkeys
391248619Sdes#define log_change_level			ssh_log_change_level
392192595Sdes#define log_facility_name			ssh_log_facility_name
393158519Sdes#define log_facility_number			ssh_log_facility_number
394158519Sdes#define log_init				ssh_log_init
395248619Sdes#define log_is_on_stderr			ssh_log_is_on_stderr
396192595Sdes#define log_level_name				ssh_log_level_name
397158519Sdes#define log_level_number			ssh_log_level_number
398255767Sdes#define log_redirect_stderr_to			ssh_log_redirect_stderr_to
399181094Sdes#define logit					ssh_logit
400221420Sdes#define lookup_key_in_hostkeys_by_type		ssh_lookup_key_in_hostkeys_by_type
401262566Sdes#define lowercase				ssh_lowercase
402255767Sdes#define mac_alg_list				ssh_mac_alg_list
403192595Sdes#define mac_clear				ssh_mac_clear
404158519Sdes#define mac_compute				ssh_mac_compute
405158519Sdes#define mac_init				ssh_mac_init
406192595Sdes#define mac_setup				ssh_mac_setup
407158519Sdes#define mac_valid				ssh_mac_valid
408158519Sdes#define match_host_and_ip			ssh_match_host_and_ip
409158519Sdes#define match_hostname				ssh_match_hostname
410158519Sdes#define match_list				ssh_match_list
411158519Sdes#define match_pattern				ssh_match_pattern
412158519Sdes#define match_pattern_list			ssh_match_pattern_list
413158519Sdes#define match_user				ssh_match_user
414221420Sdes#define mktemp_proto				ssh_mktemp_proto
415158519Sdes#define mm_receive_fd				ssh_mm_receive_fd
416158519Sdes#define mm_send_fd				ssh_mm_send_fd
417255767Sdes#define monotime				ssh_monotime
418192595Sdes#define ms_subtract_diff			ssh_ms_subtract_diff
419192595Sdes#define ms_to_timeval				ssh_ms_to_timeval
420158519Sdes#define mysignal				ssh_mysignal
421197785Sdes#define outgoing_stream				ssh_outgoing_stream
422158519Sdes#define packet_add_padding			ssh_packet_add_padding
423197679Sdes#define packet_backup_state			ssh_packet_backup_state
424158519Sdes#define packet_close				ssh_packet_close
425158519Sdes#define packet_connection_is_on_socket		ssh_packet_connection_is_on_socket
426158519Sdes#define packet_disconnect			ssh_packet_disconnect
427158519Sdes#define packet_get_bignum			ssh_packet_get_bignum
428158519Sdes#define packet_get_bignum2			ssh_packet_get_bignum2
429158519Sdes#define packet_get_char				ssh_packet_get_char
430158519Sdes#define packet_get_connection_in		ssh_packet_get_connection_in
431158519Sdes#define packet_get_connection_out		ssh_packet_get_connection_out
432221420Sdes#define packet_get_cstring			ssh_packet_get_cstring
433221420Sdes#define packet_get_ecpoint			ssh_packet_get_ecpoint
434158519Sdes#define packet_get_encryption_key		ssh_packet_get_encryption_key
435197679Sdes#define packet_get_input			ssh_packet_get_input
436158519Sdes#define packet_get_int				ssh_packet_get_int
437197679Sdes#define packet_get_int64			ssh_packet_get_int64
438158519Sdes#define packet_get_keycontext			ssh_packet_get_keycontext
439158519Sdes#define packet_get_keyiv			ssh_packet_get_keyiv
440158519Sdes#define packet_get_keyiv_len			ssh_packet_get_keyiv_len
441197679Sdes#define packet_get_maxsize			ssh_packet_get_maxsize
442197679Sdes#define packet_get_newkeys			ssh_packet_get_newkeys
443197679Sdes#define packet_get_output			ssh_packet_get_output
444158519Sdes#define packet_get_protocol_flags		ssh_packet_get_protocol_flags
445158519Sdes#define packet_get_raw				ssh_packet_get_raw
446255767Sdes#define packet_get_rekey_timeout		ssh_packet_get_rekey_timeout
447158519Sdes#define packet_get_ssh1_cipher			ssh_packet_get_ssh1_cipher
448158519Sdes#define packet_get_state			ssh_packet_get_state
449158519Sdes#define packet_get_string			ssh_packet_get_string
450192595Sdes#define packet_get_string_ptr			ssh_packet_get_string_ptr
451158519Sdes#define packet_have_data_to_write		ssh_packet_have_data_to_write
452197679Sdes#define packet_inc_alive_timeouts		ssh_packet_inc_alive_timeouts
453158519Sdes#define packet_is_interactive			ssh_packet_is_interactive
454158519Sdes#define packet_need_rekeying			ssh_packet_need_rekeying
455158519Sdes#define packet_not_very_much_data_to_write	ssh_packet_not_very_much_data_to_write
456158519Sdes#define packet_process_incoming			ssh_packet_process_incoming
457158519Sdes#define packet_put_bignum			ssh_packet_put_bignum
458158519Sdes#define packet_put_bignum2			ssh_packet_put_bignum2
459158519Sdes#define packet_put_char				ssh_packet_put_char
460158519Sdes#define packet_put_cstring			ssh_packet_put_cstring
461221420Sdes#define packet_put_ecpoint			ssh_packet_put_ecpoint
462158519Sdes#define packet_put_int				ssh_packet_put_int
463197679Sdes#define packet_put_int64			ssh_packet_put_int64
464158519Sdes#define packet_put_raw				ssh_packet_put_raw
465158519Sdes#define packet_put_string			ssh_packet_put_string
466158519Sdes#define packet_read				ssh_packet_read
467158519Sdes#define packet_read_expect			ssh_packet_read_expect
468158519Sdes#define packet_read_poll_seqnr			ssh_packet_read_poll_seqnr
469158519Sdes#define packet_read_seqnr			ssh_packet_read_seqnr
470158519Sdes#define packet_remaining			ssh_packet_remaining
471197679Sdes#define packet_restore_state			ssh_packet_restore_state
472158519Sdes#define packet_send				ssh_packet_send
473158519Sdes#define packet_send_debug			ssh_packet_send_debug
474158519Sdes#define packet_send_ignore			ssh_packet_send_ignore
475197679Sdes#define packet_set_alive_timeouts		ssh_packet_set_alive_timeouts
476158519Sdes#define packet_set_authenticated		ssh_packet_set_authenticated
477158519Sdes#define packet_set_connection			ssh_packet_set_connection
478158519Sdes#define packet_set_encryption_key		ssh_packet_set_encryption_key
479158519Sdes#define packet_set_interactive			ssh_packet_set_interactive
480158519Sdes#define packet_set_iv				ssh_packet_set_iv
481158519Sdes#define packet_set_keycontext			ssh_packet_set_keycontext
482158519Sdes#define packet_set_maxsize			ssh_packet_set_maxsize
483158519Sdes#define packet_set_nonblocking			ssh_packet_set_nonblocking
484158519Sdes#define packet_set_protocol_flags		ssh_packet_set_protocol_flags
485255767Sdes#define packet_set_rekey_limits			ssh_packet_set_rekey_limits
486158519Sdes#define packet_set_server			ssh_packet_set_server
487158519Sdes#define packet_set_state			ssh_packet_set_state
488192595Sdes#define packet_set_timeout			ssh_packet_set_timeout
489158519Sdes#define packet_start				ssh_packet_start
490158519Sdes#define packet_start_compression		ssh_packet_start_compression
491158519Sdes#define packet_write_poll			ssh_packet_write_poll
492158519Sdes#define packet_write_wait			ssh_packet_write_wait
493221420Sdes#define parse_ipqos				ssh_parse_ipqos
494158519Sdes#define percent_expand				ssh_percent_expand
495162856Sdes#define permanently_drop_suid			ssh_permanently_drop_suid
496158519Sdes#define permanently_set_uid			ssh_permanently_set_uid
497240075Sdes#define permitopen_port				ssh_permitopen_port
498204917Sdes#define pkcs11_add_provider			ssh_pkcs11_add_provider
499204917Sdes#define pkcs11_del_provider			ssh_pkcs11_del_provider
500204917Sdes#define pkcs11_init				ssh_pkcs11_init
501204917Sdes#define pkcs11_interactive			ssh_pkcs11_interactive
502204917Sdes#define pkcs11_providers			ssh_pkcs11_providers
503204917Sdes#define pkcs11_terminate			ssh_pkcs11_terminate
504262566Sdes#define poly1305_auth				ssh_poly1305_auth
505158519Sdes#define prime_test				ssh_prime_test
506158519Sdes#define proto_spec				ssh_proto_spec
507162856Sdes#define put_host_port				ssh_put_host_port
508162856Sdes#define put_u16					ssh_put_u16
509162856Sdes#define put_u32					ssh_put_u32
510162856Sdes#define put_u64					ssh_put_u64
511158519Sdes#define pwcopy					ssh_pwcopy
512158519Sdes#define read_keyfile_line			ssh_read_keyfile_line
513158519Sdes#define read_passphrase				ssh_read_passphrase
514158519Sdes#define refresh_progress_meter			ssh_refresh_progress_meter
515158519Sdes#define replacearg				ssh_replacearg
516158519Sdes#define restore_uid				ssh_restore_uid
517181094Sdes#define rijndael_decrypt			ssh_rijndael_decrypt
518181094Sdes#define rijndael_encrypt			ssh_rijndael_encrypt
519181094Sdes#define rijndael_set_key			ssh_rijndael_set_key
520158519Sdes#define rsa_generate_additional_parameters	ssh_rsa_generate_additional_parameters
521158519Sdes#define rsa_private_decrypt			ssh_rsa_private_decrypt
522158519Sdes#define rsa_public_encrypt			ssh_rsa_public_encrypt
523158519Sdes#define sanitise_stdfd				ssh_sanitise_stdfd
524192595Sdes#define scan_scaled				ssh_scan_scaled
525158519Sdes#define seed_rng				ssh_seed_rng
526226046Sdes#define set_log_handler				ssh_set_log_handler
527158519Sdes#define set_newkeys				ssh_set_newkeys
528158519Sdes#define set_nodelay				ssh_set_nodelay
529158519Sdes#define set_nonblock				ssh_set_nonblock
530158519Sdes#define shadow_pw				ssh_shadow_pw
531162856Sdes#define sigdie					ssh_sigdie
532225852Sdes#define sock_get_rcvbuf				ssh_sock_get_rcvbuf
533204917Sdes#define sock_set_v6only				ssh_sock_set_v6only
534158519Sdes#define ssh1_3des_iv				ssh_ssh1_3des_iv
535158519Sdes#define start_progress_meter			ssh_start_progress_meter
536158519Sdes#define stop_progress_meter			ssh_stop_progress_meter
537158519Sdes#define strdelim				ssh_strdelim
538247916Sdes#define strnvis					ssh_strnvis
539247916Sdes#define strvis					ssh_strvis
540247916Sdes#define strvisx					ssh_strvisx
541158519Sdes#define sys_tun_open				ssh_sys_tun_open
542158519Sdes#define temporarily_use_uid			ssh_temporarily_use_uid
543158519Sdes#define tilde_expand_filename			ssh_tilde_expand_filename
544221420Sdes#define timingsafe_bcmp				ssh_timingsafe_bcmp
545158519Sdes#define tohex					ssh_tohex
546158519Sdes#define tty_make_modes				ssh_tty_make_modes
547158519Sdes#define tty_parse_modes				ssh_tty_parse_modes
548158519Sdes#define tun_open				ssh_tun_open
549255767Sdes#define umac128_ctx				ssh_umac128_ctx
550255767Sdes#define umac128_delete				ssh_umac128_delete
551255767Sdes#define umac128_final				ssh_umac128_final
552248619Sdes#define umac128_new				ssh_umac128_new
553248619Sdes#define umac128_update				ssh_umac128_update
554197785Sdes#define umac_ctx				ssh_umac_ctx
555192595Sdes#define umac_delete				ssh_umac_delete
556192595Sdes#define umac_final				ssh_umac_final
557192595Sdes#define umac_new				ssh_umac_new
558192595Sdes#define umac_update				ssh_umac_update
559158519Sdes#define unset_nonblock				ssh_unset_nonblock
560158519Sdes#define uudecode				ssh_uudecode
561158519Sdes#define uuencode				ssh_uuencode
562181094Sdes#define verbose					ssh_verbose
563158519Sdes#define verify_host_key_dns			ssh_verify_host_key_dns
564158519Sdes#define vis					ssh_vis
565158519Sdes#define x11_connect_display			ssh_x11_connect_display
566158519Sdes#define x11_create_display_inet			ssh_x11_create_display_inet
567158519Sdes#define x11_input_open				ssh_x11_input_open
568158519Sdes#define x11_request_forwarding_with_spoofing	ssh_x11_request_forwarding_with_spoofing
569162856Sdes#define xasprintf				ssh_xasprintf
570162856Sdes#define xcalloc					ssh_xcalloc
571158519Sdes#define xcrypt					ssh_xcrypt
572158519Sdes#define xmalloc					ssh_xmalloc
573158519Sdes#define xmmap					ssh_xmmap
574158519Sdes#define xrealloc				ssh_xrealloc
575158519Sdes#define xstrdup					ssh_xstrdup
576