Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 50) sorted by relevance

12

/openssh-portable/openbsd-compat/
H A Dmemmem.c88 for (i=0; i<l; i++) in twoway_memmem()
93 while (jp+k<l) { in twoway_memmem()
113 while (jp+k<l) { in twoway_memmem()
134 p = MAX(ms, l-ms-1) + 1; in twoway_memmem()
135 } else mem0 = l-p; in twoway_memmem()
141 if (z-h < l) return 0; in twoway_memmem()
145 k = l-shift[h[l-1]]; in twoway_memmem()
153 h += l; in twoway_memmem()
160 if (k < l) { in twoway_memmem()
182 if (k<l) return 0; in memmem()
[all …]
H A Dblowfish.c543 u_int32_t l, r; in blf_ecb_encrypt() local
552 data[2] = l >> 8 & 0xff; in blf_ecb_encrypt()
553 data[3] = l & 0xff; in blf_ecb_encrypt()
565 u_int32_t l, r; in blf_ecb_decrypt() local
575 data[3] = l & 0xff; in blf_ecb_decrypt()
587 u_int32_t l, r; in blf_cbc_encrypt() local
599 data[3] = l & 0xff; in blf_cbc_encrypt()
612 u_int32_t l, r; in blf_cbc_decrypt() local
625 data[3] = l & 0xff; in blf_cbc_decrypt()
640 data[2] = l >> 8 & 0xff; in blf_cbc_decrypt()
[all …]
H A Dsha1.c31 # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
32 |(rol(block->l[i],8)&0x00FF00FF))
34 # define blk0(i) block->l[i]
36 #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
37 ^block->l[(i+2)&15]^block->l[i&15],1))
50 u_int32_t l[16]; member
H A Dinet_ntop.c90 int l; in inet_ntop4() local
92 l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]); in inet_ntop4()
93 if (l <= 0 || l >= size) { in inet_ntop4()
H A Dport-aix.c448 long l; in getgrouplist() local
466 l = strtol(grp, NULL, 10); in getgrouplist()
467 if (ngroups >= maxgroups || l == LONG_MIN || l == LONG_MAX) { in getgrouplist()
471 gid = (gid_t)l; in getgrouplist()
/openssh-portable/
H A Dmd5crypt.c58 unsigned long l; in md5_crypt() local
142 l = (final[ 0]<<16) | (final[ 6]<<8) | final[12]; in md5_crypt()
143 strlcat(passwd, to64(l, 4), sizeof(passwd)); in md5_crypt()
144 l = (final[ 1]<<16) | (final[ 7]<<8) | final[13]; in md5_crypt()
145 strlcat(passwd, to64(l, 4), sizeof(passwd)); in md5_crypt()
146 l = (final[ 2]<<16) | (final[ 8]<<8) | final[14]; in md5_crypt()
147 strlcat(passwd, to64(l, 4), sizeof(passwd)); in md5_crypt()
148 l = (final[ 3]<<16) | (final[ 9]<<8) | final[15]; in md5_crypt()
149 strlcat(passwd, to64(l, 4), sizeof(passwd)); in md5_crypt()
151 strlcat(passwd, to64(l, 4), sizeof(passwd)); in md5_crypt()
[all …]
H A Dhostfile.c84 l -= sizeof(HASH_MAGIC) - 1; in extract_salt()
241 l->path, l->linenum); in record_hostkey()
248 sshkey_type(l->key), l->path, l->linenum); in record_hostkey()
257 l->key = NULL; /* steal it */ in record_hostkey()
549 if (l->status == HKF_STATUS_MATCHED && l->marker == MRK_NONE) { in host_delete()
561 sshkey_type(l->key), l->path, l->linenum); in host_delete()
571 l->path, l->linenum, sshkey_type(l->key), ctx->host); in host_delete()
579 l->path, l->linenum); in host_delete()
759 size_t linesize = 0, l; in hostkeys_foreach_file() local
871 if (l <= 1 || l >= sizeof(ktype) || in hostkeys_foreach_file()
[all …]
H A Dsshbuf-misc.c176 size_t i, l; in sshbuf_dtourlb64() local
185 l = sshbuf_len(b); in sshbuf_dtourlb64()
196 l = sshbuf_len(b); in sshbuf_dtourlb64()
201 for (i = 0; i < l; i++) { in sshbuf_dtourlb64()
217 size_t l = sshbuf_len(buf); in sshbuf_dup_string() local
220 if (s == NULL || l > SIZE_MAX) in sshbuf_dup_string()
223 if (l > 0 && (p = memchr(s, '\0', l)) != NULL) { in sshbuf_dup_string()
224 if (p != s + l - 1) in sshbuf_dup_string()
230 if (l > 0) in sshbuf_dup_string()
231 memcpy(r, s, l); in sshbuf_dup_string()
[all …]
H A Dbitmap.c168 bitmap_to_string(struct bitmap *b, void *p, size_t l) in bitmap_to_string() argument
173 if (l < need || b->top >= b->len) in bitmap_to_string()
175 if (l > need) in bitmap_to_string()
176 l = need; in bitmap_to_string()
180 if (k >= l) in bitmap_to_string()
189 bitmap_from_string(struct bitmap *b, const void *p, size_t l) in bitmap_from_string() argument
195 if (l > BITMAP_MAX / 8) in bitmap_from_string()
197 if ((r = reserve(b, l * 8)) != 0) in bitmap_from_string()
200 if (l == 0) in bitmap_from_string()
203 shift = ((l + (BITMAP_BYTES - 1)) % BITMAP_BYTES) * 8; in bitmap_from_string()
[all …]
H A Daddr.c167 addr_netmask(int af, u_int l, struct xaddr *n) in addr_netmask() argument
171 if (masklen_valid(af, l) != 0 || n == NULL) in addr_netmask()
178 if (l == 0) in addr_netmask()
184 for (i = 0; i < 4 && l >= 32; i++, l -= 32) in addr_netmask()
186 if (i < 4 && l != 0) in addr_netmask()
187 n->addr32[i] = htonl((0xffffffff << (32 - l)) & in addr_netmask()
196 addr_hostmask(int af, u_int l, struct xaddr *n) in addr_hostmask() argument
198 if (addr_netmask(af, l, n) == -1 || addr_invert(n) == -1) in addr_hostmask()
374 addr_pton_cidr(const char *p, struct xaddr *n, u_int *l) in addr_pton_cidr() argument
404 if (l != NULL) in addr_pton_cidr()
[all …]
H A Daddr.h46 int addr_netmask(int af, u_int l, struct xaddr *n);
47 int addr_hostmask(int af, u_int l, struct xaddr *n);
52 int addr_pton_cidr(const char *p, struct xaddr *n, u_int *l);
H A Dssh-pkcs11-client.c74 u_int l, len; in recv_msg() local
88 l = len; in recv_msg()
89 if (l > sizeof(buf)) in recv_msg()
90 l = sizeof(buf); in recv_msg()
91 if (atomicio(read, fd, buf, l) != l) { in recv_msg()
95 if ((r = sshbuf_put(m, buf, l)) != 0) in recv_msg()
97 len -= l; in recv_msg()
H A Dbitmap.h52 int bitmap_to_string(struct bitmap *b, void *p, size_t l);
55 int bitmap_from_string(struct bitmap *b, const void *p, size_t l);
H A Dclientloop.c1864 if (l->key == NULL) in hostkeys_find()
1874 l->path, l->linenum); in hostkeys_find()
1884 l->path, l->linenum); in hostkeys_find()
1895 "at %s:%ld", ctx->ip_str, l->path, l->linenum); in hostkeys_find()
1901 "at %s:%ld", ctx->host_str, l->path, l->linenum); in hostkeys_find()
1911 l->path, l->linenum); in hostkeys_find()
1921 sshkey_ssh_name(ctx->keys[i]), l->path, l->linenum); in hostkeys_find()
1927 l->path, l->linenum); in hostkeys_find()
1933 l->key = NULL; in hostkeys_find()
1947 if (l->status == HKF_STATUS_MATCHED || l->key == NULL) in hostkeys_check_old()
[all …]
H A Dauthfd.c141 size_t l, len; in ssh_request_reply() local
168 l = len; in ssh_request_reply()
169 if (l > sizeof(buf)) in ssh_request_reply()
170 l = sizeof(buf); in ssh_request_reply()
171 if (atomicio(read, sock, buf, l) != l) in ssh_request_reply()
173 if ((r = sshbuf_put(reply, buf, l)) != 0) in ssh_request_reply()
175 len -= l; in ssh_request_reply()
H A Ddigest-openssl.c162 u_int l = dlen; in ssh_digest_final() local
168 if (EVP_DigestFinal_ex(ctx->mdctx, d, &l) != 1) in ssh_digest_final()
170 if (l != digest->digest_len) /* sanity */ in ssh_digest_final()
H A Dsshconnect.c692 size_t l; in try_tilde_unexpand() local
698 if (strncmp(path, home, l) != 0) in try_tilde_unexpand()
705 if (home[l - 1] != '/' && path[l] != '/') in try_tilde_unexpand()
707 if (path[l] == '/') in try_tilde_unexpand()
708 l++; in try_tilde_unexpand()
709 xasprintf(&ret, "~/%s", path + l); in try_tilde_unexpand()
720 if ((l->match & HKF_MATCH_HOST) != 0) in hostkeys_find_by_key_cb()
723 if (l->marker != MRK_NONE) in hostkeys_find_by_key_cb()
726 if (l->key == NULL || !sshkey_equal(ctx->key, l->key)) in hostkeys_find_by_key_cb()
728 path = try_tilde_unexpand(l->path); in hostkeys_find_by_key_cb()
[all …]
H A Dssh-keygen.c1177 int has_wild = l->hosts && strcspn(l->hosts, "*?!") != strlen(l->hosts); in known_hosts_hash()
1178 int was_hashed = l->hosts && l->hosts[0] == HASH_DELIM; in known_hosts_hash()
1180 switch (l->status) { in known_hosts_hash()
1192 l->linenum, l->hosts); in known_hosts_hash()
1213 logit("%s:%lu: invalid line", l->path, l->linenum); in known_hosts_hash()
1236 if (l->marker != MRK_NONE) { in known_hosts_find_delete()
1248 ctx->host, l->linenum); in known_hosts_find_delete()
1256 l->linenum, l->marker == MRK_CA ? "CA" : in known_hosts_find_delete()
1260 known_hosts_hash(l, ctx); in known_hosts_find_delete()
1270 l->comment); in known_hosts_find_delete()
[all …]
/openssh-portable/regress/unittests/hostkeys/
H A Dtest_iterate.c118 ASSERT_LONG_LONG_EQ(l->linenum, expected->l.linenum); in check()
122 if (expected->l.line != NULL) in check()
123 ASSERT_STRING_EQ(l->line, expected->l.line); in check()
124 ASSERT_INT_EQ(l->marker, expected->l.marker); in check()
127 ASSERT_STRING_EQ(l->hosts, expected->l.hosts); in check()
130 ASSERT_STRING_EQ(l->rawkey, expected->l.rawkey); in check()
134 if (expected->l.key == NULL) in check()
138 ASSERT_INT_EQ(sshkey_equal(l->key, expected->l.key), 1); in check()
141 if (parse_key && !(l->comment == NULL && expected->l.comment == NULL)) in check()
142 ASSERT_STRING_EQ(l->comment, expected->l.comment); in check()
[all …]
/openssh-portable/regress/unittests/test_helper/
H A Dtest_helper.c385 tohex(const void *_s, size_t l) in tohex() argument
390 char *r = malloc((l * 2) + 1); in tohex()
393 for (i = j = 0; i < l; i++) { in tohex()
409 if (l == 0) in assert_mem()
415 r = memcmp(aa1, aa2, l); in assert_mem()
418 aa1_tohex = tohex(aa1, MIN(l, 256)); in assert_mem()
432 for (i = 0; i < l; i++) { in memvalcmp()
450 if (l == 0) in assert_mem_filled()
455 r = memvalcmp(aa1, v, l, &where); in assert_mem_filled()
458 aa1_tohex = tohex(aa1, MIN(l, 20)); in assert_mem_filled()
[all …]
H A Dtest_helper.h112 #define ASSERT_MEM_EQ(a1, a2, l) \ argument
113 assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_EQ)
114 #define ASSERT_MEM_FILLED_EQ(a1, c, l) \ argument
116 #define ASSERT_MEM_ZERO_EQ(a1, l) \ argument
145 #define ASSERT_MEM_NE(a1, a2, l) \ argument
146 assert_mem(__FILE__, __LINE__, #a1, #a2, a1, a2, l, TEST_NE)
147 #define ASSERT_MEM_ZERO_NE(a1, l) \ argument
176 #define ASSERT_MEM_LT(a1, a2, l) \ argument
205 #define ASSERT_MEM_LE(a1, a2, l) \ argument
234 #define ASSERT_MEM_GT(a1, a2, l) \ argument
[all …]
/openssh-portable/regress/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c36 size_t l; in sshbuf_fixed() local
61 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s, &l), 0); in sshbuf_fixed()
64 ASSERT_SIZE_T_EQ(l, 5); in sshbuf_fixed()
92 ASSERT_INT_EQ(sshbuf_get_cstring(p2, &s, &l), 0); in sshbuf_fixed()
95 ASSERT_SIZE_T_EQ(l, 5); in sshbuf_fixed()
H A Dtest_sshbuf_getput_fuzz.c42 size_t l; in attempt_parse_blob() local
55 if (sshbuf_get_string(p1, &s, &l) == 0) { in attempt_parse_blob()
56 bzero(s, l); in attempt_parse_blob()
/openssh-portable/m4/
H A Dopenssh.m421 float l = i * 2.1;
22 double m = l / 0.5;
24 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
69 float l = i * 2.1;
70 double m = l / 0.5;
73 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
108 float l = i * 2.1;
109 double m = l / 0.5;
112 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p);
/openssh-portable/regress/unittests/sshkey/
H A Dtest_sshkey.c118 const u_char *d, size_t l) in signature_test() argument
123 ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg, in signature_test()
127 ASSERT_INT_EQ(sshkey_verify(k, sig, len, d, l, NULL, 0, NULL), 0); in signature_test()
128 ASSERT_INT_NE(sshkey_verify(bad, sig, len, d, l, NULL, 0, NULL), 0); in signature_test()
131 ASSERT_INT_NE(sshkey_verify(k, sig, len, d, l, NULL, 0, NULL), 0); in signature_test()
136 banana(u_char *s, size_t l) in banana() argument
141 for (o = 0; o < l; o += sizeof(the_banana)) { in banana()
142 if (l - o < sizeof(the_banana)) { in banana()
143 memcpy(s + o, "nanananana", l - o); in banana()

12