Skip to content

Commit dcd79fa

Browse files
jonathangraydjmdjm
authored andcommitted
upstream: remove prototypes with no matching function; ok djm@
OpenBSD-Commit-ID: 6d9065dadea5f14a01bece0dbfe2fba1be31c693
1 parent 6454a05 commit dcd79fa

10 files changed

+10
-28
lines changed

auth.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: auth.h,v 1.107 2024/05/17 00:30:23 djm Exp $ */
1+
/* $OpenBSD: auth.h,v 1.108 2024/05/17 06:42:04 jsg Exp $ */
22

33
/*
44
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -155,8 +155,6 @@ void auth2_record_info(Authctxt *authctxt, const char *, ...)
155155
void auth2_update_session_info(Authctxt *, const char *, const char *);
156156

157157
#ifdef KRB5
158-
int auth_krb5(Authctxt *authctxt, krb5_data *auth, char **client, krb5_data *);
159-
int auth_krb5_tgt(Authctxt *authctxt, krb5_data *tgt);
160158
int auth_krb5_password(Authctxt *authctxt, const char *password);
161159
void krb5_cleanup_proc(Authctxt *authctxt);
162160
#endif /* KRB5 */
@@ -215,7 +213,6 @@ int sshd_hostkey_sign(struct ssh *, struct sshkey *, struct sshkey *,
215213
u_char **, size_t *, const u_char *, size_t, const char *);
216214

217215
/* Key / cert options linkage to auth layer */
218-
const struct sshauthopt *auth_options(struct ssh *);
219216
int auth_activate_options(struct ssh *, struct sshauthopt *);
220217
void auth_restrict_session(struct ssh *);
221218
void auth_log_authopts(const char *, const struct sshauthopt *, int);

channels.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: channels.h,v 1.154 2023/12/18 14:47:20 djm Exp $ */
1+
/* $OpenBSD: channels.h,v 1.155 2024/05/17 06:42:04 jsg Exp $ */
22

33
/*
44
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -325,7 +325,6 @@ int channel_input_ieof(int, u_int32_t, struct ssh *);
325325
int channel_input_oclose(int, u_int32_t, struct ssh *);
326326
int channel_input_open_confirmation(int, u_int32_t, struct ssh *);
327327
int channel_input_open_failure(int, u_int32_t, struct ssh *);
328-
int channel_input_port_open(int, u_int32_t, struct ssh *);
329328
int channel_input_window_adjust(int, u_int32_t, struct ssh *);
330329
int channel_input_status_confirm(int, u_int32_t, struct ssh *);
331330

clientloop.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: clientloop.c,v 1.406 2024/05/09 09:46:47 djm Exp $ */
1+
/* $OpenBSD: clientloop.c,v 1.407 2024/05/17 06:42:04 jsg Exp $ */
22
/*
33
* Author: Tatu Ylonen <ylo@cs.hut.fi>
44
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -193,7 +193,6 @@ TAILQ_HEAD(global_confirms, global_confirm);
193193
static struct global_confirms global_confirms =
194194
TAILQ_HEAD_INITIALIZER(global_confirms);
195195

196-
void ssh_process_session2_setup(int, int, int, struct sshbuf *);
197196
static void quit_message(const char *fmt, ...)
198197
__attribute__((__format__ (printf, 1, 2)));
199198

clientloop.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: clientloop.h,v 1.37 2020/04/03 02:40:32 djm Exp $ */
1+
/* $OpenBSD: clientloop.h,v 1.38 2024/05/17 06:42:04 jsg Exp $ */
22

33
/*
44
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -43,7 +43,6 @@ struct ssh;
4343
int client_loop(struct ssh *, int, int, int);
4444
int client_x11_get_proto(struct ssh *, const char *, const char *,
4545
u_int, u_int, char **, char **);
46-
void client_global_request_reply_fwd(int, u_int32_t, void *);
4746
void client_session2_setup(struct ssh *, int, int, int,
4847
const char *, struct termios *, int, struct sshbuf *, char **);
4948
char *client_request_tun_fwd(struct ssh *, int, int, int,

monitor.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: monitor.c,v 1.238 2024/05/17 00:30:24 djm Exp $ */
1+
/* $OpenBSD: monitor.c,v 1.239 2024/05/17 06:42:04 jsg Exp $ */
22
/*
33
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
44
* Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -125,8 +125,6 @@ int mm_answer_keyverify(struct ssh *, int, struct sshbuf *);
125125
int mm_answer_pty(struct ssh *, int, struct sshbuf *);
126126
int mm_answer_pty_cleanup(struct ssh *, int, struct sshbuf *);
127127
int mm_answer_term(struct ssh *, int, struct sshbuf *);
128-
int mm_answer_sesskey(struct ssh *, int, struct sshbuf *);
129-
int mm_answer_sessid(struct ssh *, int, struct sshbuf *);
130128

131129
#ifdef USE_PAM
132130
int mm_answer_pam_start(struct ssh *, int, struct sshbuf *);

monitor_wrap.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: monitor_wrap.h,v 1.50 2024/05/17 00:30:24 djm Exp $ */
1+
/* $OpenBSD: monitor_wrap.h,v 1.51 2024/05/17 06:42:04 jsg Exp $ */
22

33
/*
44
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
@@ -88,10 +88,6 @@ void mm_terminate(void);
8888
int mm_pty_allocate(int *, int *, char *, size_t);
8989
void mm_session_pty_cleanup2(struct Session *);
9090

91-
/* Key export functions */
92-
struct newkeys *mm_newkeys_from_blob(u_char *, int);
93-
int mm_newkeys_to_blob(int, u_char **, u_int *);
94-
9591
void mm_send_keystate(struct ssh *, struct monitor*);
9692

9793
/* bsdauth */

packet.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: packet.h,v 1.97 2024/05/17 00:30:24 djm Exp $ */
1+
/* $OpenBSD: packet.h,v 1.98 2024/05/17 06:42:04 jsg Exp $ */
22

33
/*
44
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -124,14 +124,12 @@ int ssh_packet_send2_wrapped(struct ssh *);
124124
int ssh_packet_send2(struct ssh *);
125125

126126
int ssh_packet_read(struct ssh *);
127-
int ssh_packet_read_poll(struct ssh *);
128127
int ssh_packet_read_poll2(struct ssh *, u_char *, u_int32_t *seqnr_p);
129128
int ssh_packet_process_incoming(struct ssh *, const char *buf, u_int len);
130129
int ssh_packet_process_read(struct ssh *, int);
131130
int ssh_packet_read_seqnr(struct ssh *, u_char *, u_int32_t *seqnr_p);
132131
int ssh_packet_read_poll_seqnr(struct ssh *, u_char *, u_int32_t *seqnr_p);
133132

134-
const void *ssh_packet_get_string_ptr(struct ssh *, u_int *length_ptr);
135133
void ssh_packet_disconnect(struct ssh *, const char *fmt, ...)
136134
__attribute__((format(printf, 2, 3)))
137135
__attribute__((noreturn));

servconf.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: servconf.h,v 1.161 2024/05/17 00:30:24 djm Exp $ */
1+
/* $OpenBSD: servconf.h,v 1.162 2024/05/17 06:42:04 jsg Exp $ */
22

33
/*
44
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -303,9 +303,7 @@ void parse_server_config(ServerOptions *, const char *, struct sshbuf *,
303303
struct include_list *includes, struct connection_info *, int);
304304
void parse_server_match_config(ServerOptions *,
305305
struct include_list *includes, struct connection_info *);
306-
int parse_channel_timeout(const char *, char **, u_int *);
307306
int parse_server_match_testspec(struct connection_info *, char *);
308-
int server_match_spec_complete(struct connection_info *);
309307
void servconf_merge_subsystems(ServerOptions *, ServerOptions *);
310308
void copy_set_server_options(ServerOptions *, ServerOptions *, int);
311309
void dump_config(ServerOptions *);

ssh-gss.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: ssh-gss.h,v 1.15 2021/01/27 10:05:28 djm Exp $ */
1+
/* $OpenBSD: ssh-gss.h,v 1.16 2024/05/17 06:42:04 jsg Exp $ */
22
/*
33
* Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
44
*
@@ -103,7 +103,6 @@ int ssh_gssapi_check_oid(Gssctxt *, void *, size_t);
103103
void ssh_gssapi_set_oid_data(Gssctxt *, void *, size_t);
104104
void ssh_gssapi_set_oid(Gssctxt *, gss_OID);
105105
void ssh_gssapi_supported_oids(gss_OID_set *);
106-
ssh_gssapi_mech *ssh_gssapi_get_ctype(Gssctxt *);
107106
void ssh_gssapi_prepare_supported_oids(void);
108107
OM_uint32 ssh_gssapi_test_oid_supported(OM_uint32 *, gss_OID, int *);
109108

sshkey.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: sshkey.h,v 1.62 2023/06/21 05:10:26 djm Exp $ */
1+
/* $OpenBSD: sshkey.h,v 1.63 2024/05/17 06:42:04 jsg Exp $ */
22

33
/*
44
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -316,7 +316,6 @@ int ssh_rsa_complete_crt_parameters(struct sshkey *, const BIGNUM *);
316316
int sshkey_set_filename(struct sshkey *, const char *);
317317
int sshkey_enable_maxsign(struct sshkey *, u_int32_t);
318318
u_int32_t sshkey_signatures_left(const struct sshkey *);
319-
int sshkey_forward_state(const struct sshkey *, u_int32_t, int);
320319
int sshkey_private_serialize_maxsign(struct sshkey *key,
321320
struct sshbuf *buf, u_int32_t maxsign, int);
322321

0 commit comments

Comments
 (0)