Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 126) sorted by relevance

123456

/openssh-portable/
H A Dsession.c376 s[i] != '.' && s[i] != ':' && s[i] != '/' && in xauth_valid_string()
377 s[i] != '-' && s[i] != '_') in xauth_valid_string()
1821 if (s->used && s->ttyfd != -1 && strcmp(s->tty, tty) == 0) { in session_by_tty()
1878 if (s->used && s->pid == pid) in session_by_pid()
1897 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_window_change_req()
1929 if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, in session_pty_req()
1946 pty_setowner(s->pw, s->tty); in session_pty_req()
1949 pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); in session_pty_req()
2092 s->env = xrecallocarray(s->env, s->num_env, in session_env_req()
2277 record_logout(s->pid, s->tty, s->pw->pw_name); in session_pty_cleanup2()
[all …]
H A Dssh-keyscan.c174 s = *str; in xstrsep()
175 e = s + strcspn(s, delim); in xstrsep()
181 return (s); in xstrsep()
376 close(s); in tcpconnect()
377 s = -1; in tcpconnect()
380 return s; in tcpconnect()
387 int s; in conalloc() local
405 fdcon[s].c_fd = s; in conalloc()
411 fdcon[s].c_data = (char *) &fdcon[s].c_plen; in conalloc()
426 if (s >= maxfd || fdcon[s].c_status == CS_UNUSED) in confree()
[all …]
H A Dsc25519.c227 r[8*i+0] = s->v[3*i+0] & 7; in sc25519_window3()
238 r[8*i+0] = s->v[3*i+0] & 7; in sc25519_window3()
239 r[8*i+1] = (s->v[3*i+0] >> 3) & 7; in sc25519_window3()
240 r[8*i+2] = (s->v[3*i+0] >> 6) & 7; in sc25519_window3()
241 r[8*i+2] ^= (s->v[3*i+1] << 2) & 7; in sc25519_window3()
242 r[8*i+3] = (s->v[3*i+1] >> 1) & 7; in sc25519_window3()
243 r[8*i+4] = (s->v[3*i+1] >> 4) & 7; in sc25519_window3()
277 r[8*i+0] = s->v[5*i+0] & 31; in sc25519_window5()
278 r[8*i+1] = (s->v[5*i+0] >> 5) & 31; in sc25519_window5()
279 r[8*i+1] ^= (s->v[5*i+1] << 3) & 31; in sc25519_window5()
[all …]
H A Dmisc.c393 *s = strpbrk(*s, in strdelim_internal()
399 memmove(*s, *s + 1, strlen(*s)); /* move nul too */ in strdelim_internal()
416 *s += strspn(*s + 1, WHITESPACE) + 1; in strdelim_internal()
680 if ((s = strchr(s, ']')) == NULL) in hpdelim2()
887 if (s[i] >= '0' && s[i] <= '9') in hexchar()
1800 for (; *s; s++) in lowercase()
1801 *s = tolower((u_char)*s); in lowercase()
1933 if (s[i] == ' ' || s[i] == '\t') in argv_split()
2315 snprintf(buf, sizeof(buf), "%.4s-%.2s-%.2s", s, s + 4, s + 6); in parse_absolute_time()
2320 s, s + 4, s + 6, s + 8, s + 10); in parse_absolute_time()
[all …]
H A Dmatch.c62 return !*s; in match_pattern()
80 for (; *s; s++) in match_pattern()
81 if (*s == *pattern && in match_pattern()
91 for (; *s; s++) in match_pattern()
92 if (match_pattern(s, pattern)) in match_pattern()
101 if (!*s) in match_pattern()
109 s++; in match_pattern()
274 char *c, *s, *p, *ret, *cp, *sp; in match_list() local
278 s = sp = xstrdup(server); in match_list()
298 free(s); in match_list()
[all …]
H A Dsshbuf-misc.c42 const u_char *p = (const u_char *)s; in sshbuf_dump_data()
96 char *s = NULL; in sshbuf_dtob64() local
104 if ((s = malloc(slen)) == NULL) in sshbuf_dtob64()
111 for (i = 0; s[i] != '\0'; i++) { in sshbuf_dtob64()
112 if ((r = sshbuf_put_u8(b64, s[i])) != 0) in sshbuf_dtob64()
120 if ((r = sshbuf_put(b64, s, strlen(s))) != 0) in sshbuf_dtob64()
126 freezero(s, slen); in sshbuf_dtob64()
220 if (s == NULL || l > SIZE_MAX) in sshbuf_dup_string()
224 if (p != s + l - 1) in sshbuf_dup_string()
231 memcpy(r, s, l); in sshbuf_dup_string()
[all …]
H A Dmoduli.c187 sieve_large(u_int32_t s) in sieve_large() argument
191 debug3("sieve_large %u", s); in sieve_large()
194 r = BN_mod_word(largebase, s); in sieve_large()
215 r = (2 * r + 1) % s; in sieve_large()
228 if (SMALL_MAXIMUM - u < s) in sieve_large()
230 u += s; in sieve_large()
248 u_int32_t j, r, s, t; in gen_candidates() local
385 s = t - r; in gen_candidates()
393 if (s & 1) in gen_candidates()
397 for (s /= 2; s < smallbits; s += t) in gen_candidates()
[all …]
H A Dsftp-realpath.c62 char *p, *q, *s; in sftp_realpath() local
116 s = p ? p : left + left_len; in sftp_realpath()
117 if (s - left >= (ptrdiff_t)sizeof(next_token)) { in sftp_realpath()
121 memcpy(next_token, left, s - left); in sftp_realpath()
122 next_token[s - left] = '\0'; in sftp_realpath()
123 left_len -= s - left; in sftp_realpath()
125 memmove(left, s + 1, left_len + 1); in sftp_realpath()
/openssh-portable/openbsd-compat/
H A Dstrtoul.c50 const char *s; in strtoul() local
58 s = nptr; in strtoul()
60 c = (unsigned char) *s++; in strtoul()
64 c = *s++; in strtoul()
68 c = *s++; in strtoul()
71 c == '0' && (*s == 'x' || *s == 'X')) { in strtoul()
72 c = s[1]; in strtoul()
73 s += 2; in strtoul()
81 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoul()
105 *endptr = (char *) (any ? s - 1 : nptr); in strtoul()
H A Dstrtoull.c52 const char *s; in strtoull() local
60 s = nptr; in strtoull()
62 c = (unsigned char) *s++; in strtoull()
66 c = *s++; in strtoull()
70 c = *s++; in strtoull()
73 c == '0' && (*s == 'x' || *s == 'X')) { in strtoull()
74 c = s[1]; in strtoull()
75 s += 2; in strtoull()
83 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoull()
107 *endptr = (char *) (any ? s - 1 : nptr); in strtoull()
H A Dstrtoll.c52 const char *s; in strtoll() local
62 s = nptr; in strtoll()
64 c = (unsigned char) *s++; in strtoll()
68 c = *s++; in strtoll()
72 c = *s++; in strtoll()
75 c == '0' && (*s == 'x' || *s == 'X')) { in strtoll()
76 c = s[1]; in strtoll()
77 s += 2; in strtoll()
111 for (acc = 0, any = 0;; c = (unsigned char) *s++) { in strtoll()
145 *endptr = (char *) (any ? s - 1 : nptr); in strtoll()
H A Dblowfish.c66 #define F(s, x) ((((s)[ (((x)>>24)&0xFF)] \ argument
71 #define BLFRND(s,p,i,j,n) (i ^= F(s,j) ^ (p)[n]) argument
85 BLFRND(s, p, Xr, Xl, 1); BLFRND(s, p, Xl, Xr, 2); in Blowfish_encipher()
86 BLFRND(s, p, Xr, Xl, 3); BLFRND(s, p, Xl, Xr, 4); in Blowfish_encipher()
87 BLFRND(s, p, Xr, Xl, 5); BLFRND(s, p, Xl, Xr, 6); in Blowfish_encipher()
88 BLFRND(s, p, Xr, Xl, 7); BLFRND(s, p, Xl, Xr, 8); in Blowfish_encipher()
89 BLFRND(s, p, Xr, Xl, 9); BLFRND(s, p, Xl, Xr, 10); in Blowfish_encipher()
114 BLFRND(s, p, Xr, Xl, 8); BLFRND(s, p, Xl, Xr, 7); in Blowfish_decipher()
115 BLFRND(s, p, Xr, Xl, 6); BLFRND(s, p, Xl, Xr, 5); in Blowfish_decipher()
116 BLFRND(s, p, Xr, Xl, 4); BLFRND(s, p, Xl, Xr, 3); in Blowfish_decipher()
[all …]
H A Dbsd-cygwin_util.c137 return !*s; in __match_pattern()
154 for (; *s; s++) in __match_pattern()
155 if (*s == *pattern && in __match_pattern()
156 __match_pattern(s + 1, pattern + 1)) in __match_pattern()
165 for (; *s; s++) in __match_pattern()
166 if (__match_pattern(s, pattern)) in __match_pattern()
175 if (!*s) in __match_pattern()
183 s++; in __match_pattern()
190 _match_pattern(const char *s, const char *pattern) in _match_pattern() argument
197 if ((len = mbstowcs(NULL, s, 0)) < 0) in _match_pattern()
[all …]
H A Drresvport.c63 int s; in rresvport_af() local
84 s = socket(af, SOCK_STREAM, 0); in rresvport_af()
85 if (s < 0) in rresvport_af()
90 if (bind(s, sa, salen) >= 0) in rresvport_af()
91 return (s); in rresvport_af()
93 (void)close(s); in rresvport_af()
100 if (bindresvport_sa(s, sa) == -1) { in rresvport_af()
101 (void)close(s); in rresvport_af()
105 return (s); in rresvport_af()
H A Dstrsep.c55 char *s; in strsep() local
60 if ((s = *stringp) == NULL) in strsep()
62 for (tok = s;;) { in strsep()
63 c = *s++; in strsep()
68 s = NULL; in strsep()
70 s[-1] = 0; in strsep()
71 *stringp = s; in strsep()
H A Dstrlcat.c38 const char *s = src; in strlcat() local
49 return(dlen + strlen(s)); in strlcat()
50 while (*s != '\0') { in strlcat()
52 *d++ = *s; in strlcat()
55 s++; in strlcat()
59 return(dlen + (s - src)); /* count does not include NUL */ in strlcat()
H A Dgetcwd.c60 struct stat s; in getcwd() local
100 if (stat("/", &s)) in getcwd()
102 root_dev = s.st_dev; in getcwd()
103 root_ino = s.st_ino; in getcwd()
109 if (lstat(up, &s)) in getcwd()
113 ino = s.st_ino; in getcwd()
114 dev = s.st_dev; in getcwd()
148 if (!(dir = opendir(up)) || fstat(dirfd(dir), &s)) in getcwd()
160 if (s.st_dev == dev) { in getcwd()
176 if (lstat(up, &s)) { in getcwd()
[all …]
H A Dstrcasestr.c49 strcasestr(const char *s, const char *find) in strcasestr() argument
59 if ((sc = *s++) == 0) in strcasestr()
62 } while (strncasecmp(s, find, len) != 0); in strcasestr()
63 s--; in strcasestr()
65 return ((char *)s); in strcasestr()
H A Dbsd-getpeereid.c28 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
33 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cred, &len) < 0) in getpeereid()
47 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
51 if (getpeerucred(s, &ucred) == -1) in getpeereid()
64 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
H A Dstrlcpy.c36 const char *s = src; in strlcpy() local
42 if ((*d++ = *s++) == '\0') in strlcpy()
51 while (*s++) in strlcpy()
55 return(s - src - 1); /* count does not include NUL */ in strlcpy()
/openssh-portable/regress/
H A Drekey.sh65 for s in 16 1k 128k 256k; do
66 verbose "client rekeylimit ${s}"
70 for s in 5 10; do
71 verbose "client rekeylimit default ${s}"
87 for s in 5 10; do
91 $OBJ/ssh_proxy somehost "sleep $s;sleep 3"
103 for s in 16 1k 128k 256k; do
104 verbose "server rekeylimit ${s}"
106 echo "rekeylimit ${s}" >>$OBJ/sshd_proxy
122 for s in 5 10; do
[all …]
H A Dnetcat.c163 s = 0; in main()
470 if (s) in main()
515 if (s) in main()
516 close(s); in main()
529 int s; in unix_bind() local
541 close(s); in unix_bind()
547 close(s); in unix_bind()
561 int s; in unix_connect() local
596 int s; in unix_listen() local
666 s = -1; in remote_connect()
[all …]
H A Dexit-status.sh6 for s in 0 1 4 5 44; do
7 trace "status $s"
8 verbose "test $tid: status $s"
9 ${SSH} -F $OBJ/ssh_proxy otherhost exit $s
11 if [ $r -ne $s ]; then
12 fail "exit code mismatch for: $r != $s"
H A Dmodpipe.c51 parse_modification(const char *s, struct modification *m) in parse_modification() argument
57 if ((n = sscanf(s, "%16[^:]%*[:]%llu%*[:]%i%*[:]%i", in parse_modification()
59 errx(1, "Invalid modification spec \"%s\"", s); in parse_modification()
62 errx(1, "Invalid modification spec \"%s\"", s); in parse_modification()
69 errx(1, "Invalid modification spec \"%s\"", s); in parse_modification()
87 ssize_t r, s, o; in main() local
107 r = s = read(STDIN_FILENO, buf, sizeof(buf)); in main()
117 mods[i].offset >= total + s) in main()
129 for (o = 0; o < s; o += r) { in main()
130 r = write(STDOUT_FILENO, buf, s - o); in main()
[all …]
H A Dbanner.sh16 for s in 0 10 100 1000 10000 100000 ; do
17 if [ "$s" = "0" ]; then
20 elif [ "$s" = "10" ]; then
31 trace "test banner size $s"
32 verbose "test $tid: size $s"
35 fail "banner size $s mismatch"

123456