Home
last modified time | relevance | path

Searched refs:max (Results 1 – 16 of 16) sorted by relevance

/openssh-portable/openbsd-compat/
H A Dbsd-snprintf.c187 int max; in dopr() local
198 max = -1; in dopr()
263 max = 0; in dopr()
264 max = 10*max + char_to_int (ch); in dopr()
428 if (min > 0 && max >= 0 && min > max) max = min; in dopr()
482 max = -1; in dopr()
554 if (max < 0) in fmtint()
555 max = 0; in fmtint()
724 if (max < 0) in fmtfp()
725 max = 6; in fmtfp()
[all …]
/openssh-portable/openbsd-compat/regress/
H A Dclosefromtest.c39 int i, max, fds[NUM_OPENS]; in main() local
45 max = i - 1; in main()
48 closefrom(fds[max]); in main()
49 if (close(fds[max]) != -1) in main()
53 for (i = 0; i < max; i++) in main()
/openssh-portable/
H A Dkexgexs.c76 u_int min = 0, max = 0, nbits = 0; in input_kex_dh_gex_request() local
84 (r = sshpkt_get_u32(ssh, &max)) != 0 || in input_kex_dh_gex_request()
89 kex->max = max; in input_kex_dh_gex_request()
91 max = MINIMUM(DH_GRP_MAX, max); in input_kex_dh_gex_request()
95 if (kex->max < kex->min || kex->nbits < kex->min || in input_kex_dh_gex_request()
96 kex->max < kex->nbits || kex->max < DH_GRP_MIN) { in input_kex_dh_gex_request()
102 kex->dh = PRIVSEP(choose_dh(min, nbits, max)); in input_kex_dh_gex_request()
176 kex->min, kex->nbits, kex->max, in input_kex_dh_gex_init()
H A Dsrclimit.c43 srclimit_init(int max, int persource, int ipv4len, int ipv6len) in srclimit_init() argument
47 max_children = max; in srclimit_init()
54 max, persource, ipv4len, ipv6len); in srclimit_init()
55 if (max <= 0) in srclimit_init()
56 fatal("%s: invalid number of sockets: %d", __func__, max); in srclimit_init()
H A Ddh.c159 choose_dh(int min, int wantbits, int max) in choose_dh() argument
170 return (dh_new_group_fallback(max)); in choose_dh()
182 if (dhg.size > max || dhg.size < min) in choose_dh()
202 return (dh_new_group_fallback(max)); in choose_dh()
212 if ((dhg.size > max || dhg.size < min) || in choose_dh()
227 return (dh_new_group_fallback(max)); in choose_dh()
472 dh_new_group_fallback(int max) in dh_new_group_fallback() argument
474 debug3_f("requested max size %d", max); in dh_new_group_fallback()
475 if (max < 3072) { in dh_new_group_fallback()
478 } else if (max < 6144) { in dh_new_group_fallback()
H A Dkexgexc.c69 kex->max = DH_GRP_MAX; in kexgex_client()
77 (r = sshpkt_put_u32(ssh, kex->max)) != 0 || in kexgex_client()
81 kex->min, kex->nbits, kex->max); in kexgex_client()
84 kex->min, kex->nbits, kex->max); in kexgex_client()
110 (u_int)bits < kex->min || (u_int)bits > kex->max) { in input_kex_dh_gex_group()
184 kex->min = kex->max = -1; in input_kex_dh_gex_reply()
197 kex->min, kex->nbits, kex->max, in input_kex_dh_gex_reply()
H A Dkexgex.c54 int min, int wantbits, int max, in kexgex_hash() argument
81 (max != -1 && (r = sshbuf_put_u32(b, max)) != 0) || in kexgex_hash()
H A Dsftp-server.c1650 int i, r, in, out, max, ch, skipargs = 0, log_stderr = 0; in sftp_server_main() local
1768 max = 0; in sftp_server_main()
1769 if (in > max) in sftp_server_main()
1770 max = in; in sftp_server_main()
1771 if (out > max) in sftp_server_main()
1772 max = out; in sftp_server_main()
1779 rset = xcalloc(howmany(max + 1, NFDBITS), sizeof(fd_mask)); in sftp_server_main()
1780 wset = xcalloc(howmany(max + 1, NFDBITS), sizeof(fd_mask)); in sftp_server_main()
1789 set_size = howmany(max + 1, NFDBITS) * sizeof(fd_mask); in sftp_server_main()
1810 if (select(max+1, rset, wset, NULL, NULL) == -1) { in sftp_server_main()
H A DPROTOCOL497 uint64 max-packet-length
498 uint64 max-read-length
499 uint64 max-write-length
500 uint64 max-open-handles
502 The 'max-packet-length' applies to the total number of bytes in a
505 The 'max-read-length' is the largest length in a SSH_FXP_READ packet.
510 The 'max-write-length' is the largest length in a SSH_FXP_WRITE packet
513 The 'max-open-handles' is the maximum number of active handles that the
H A Dmonitor.c571 u_int min, want, max; in mm_answer_moduli() local
575 (r = sshbuf_get_u32(m, &max)) != 0) in mm_answer_moduli()
578 debug3_f("got parameters: %d %d %d", min, want, max); in mm_answer_moduli()
580 if (max < min || want < min || max < want) in mm_answer_moduli()
581 fatal_f("bad parameters: %d %d %d", min, want, max); in mm_answer_moduli()
585 dh = choose_dh(min, want, max); in mm_answer_moduli()
H A Dkex.h165 u_int min, max, nbits; /* GEX */ member
H A Dmonitor_wrap.c181 mm_choose_dh(int min, int nbits, int max) in mm_choose_dh() argument
192 (r = sshbuf_put_u32(m, max)) != 0) in mm_choose_dh()
H A Dchannels.c430 int max = 0; in channel_find_maxfd() local
436 max = MAXIMUM(max, c->rfd); in channel_find_maxfd()
437 max = MAXIMUM(max, c->wfd); in channel_find_maxfd()
438 max = MAXIMUM(max, c->efd); in channel_find_maxfd()
441 sc->channel_max_fd = max; in channel_find_maxfd()
H A Dssh_api.c73 mm_choose_dh(int min, int nbits, int max) in mm_choose_dh() argument
H A Dconfigure.ac3682 AC_MSG_CHECKING([for max value of long long])
3762 [max value of long long calculated by configure])
/openssh-portable/regress/
H A Ddhgex.sh24 max=8192
25 groupsz="$min<$bits<$max"