summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authormillert@openbsd.org <millert@openbsd.org>2017-10-21 23:06:24 +0000
committerDamien Miller <djm@mindrot.org>2017-10-23 16:10:08 +1100
commit887669ef032d63cf07f53cada216fa8a0c9a7d72 (patch)
tree089b20255da21a489d7bc796a8ee86bd0b8f028f /misc.h
parentd27bff293cfeb2252f4c7a58babe5ad3262c6c98 (diff)
upstream commit
Add URI support to ssh, sftp and scp. For example ssh://user@host or sftp://user@host/path. The connection parameters described in draft-ietf-secsh-scp-sftp-ssh-uri-04 are not implemented since the ssh fingerprint format in the draft uses md5 with no way to specify the hash function type. OK djm@ Upstream-ID: 4ba3768b662d6722de59e6ecb00abf2d4bf9cacc
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 153d11375..b6f502b3e 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.h,v 1.63 2017/08/18 05:48:04 djm Exp $ */ 1/* $OpenBSD: misc.h,v 1.64 2017/10/21 23:06:24 millert Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -54,7 +54,9 @@ char *put_host_port(const char *, u_short);
54char *hpdelim(char **); 54char *hpdelim(char **);
55char *cleanhostname(char *); 55char *cleanhostname(char *);
56char *colon(char *); 56char *colon(char *);
57int parse_user_host_path(const char *, char **, char **, char **);
57int parse_user_host_port(const char *, char **, char **, int *); 58int parse_user_host_port(const char *, char **, char **, int *);
59int parse_uri(const char *, const char *, char **, char **, int *, char **);
58long convtime(const char *); 60long convtime(const char *);
59char *tilde_expand_filename(const char *, uid_t); 61char *tilde_expand_filename(const char *, uid_t);
60char *percent_expand(const char *, ...) __attribute__((__sentinel__)); 62char *percent_expand(const char *, ...) __attribute__((__sentinel__));
@@ -66,6 +68,7 @@ time_t monotime(void);
66double monotime_double(void); 68double monotime_double(void);
67void lowercase(char *s); 69void lowercase(char *s);
68int unix_listener(const char *, int, int); 70int unix_listener(const char *, int, int);
71int valid_domain(char *, int, const char **);
69 72
70void sock_set_v6only(int); 73void sock_set_v6only(int);
71 74