Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 102) sorted by relevance

12345

/openssh-portable/openbsd-compat/
H A Dstrmode.c48 *p++ = 'd'; in strmode()
51 *p++ = 'c'; in strmode()
54 *p++ = 'b'; in strmode()
57 *p++ = '-'; in strmode()
60 *p++ = 'l'; in strmode()
64 *p++ = 's'; in strmode()
69 *p++ = 'p'; in strmode()
73 *p++ = '?'; in strmode()
78 *p++ = 'r'; in strmode()
80 *p++ = '-'; in strmode()
[all …]
H A Dfmt_scaled.c78 char *p = scaled; in scan_scaled() local
84 while (isascii((unsigned char)*p) && isspace((unsigned char)*p)) in scan_scaled()
85 ++p; in scan_scaled()
88 while (*p == '-' || *p == '+') { in scan_scaled()
89 if (*p == '-') { in scan_scaled()
95 ++p; in scan_scaled()
96 } else if (*p == '+') { in scan_scaled()
102 ++p; in scan_scaled()
112 (isdigit((unsigned char)*p) || *p=='.'); ++p) { in scan_scaled()
113 if (*p == '.') { in scan_scaled()
[all …]
H A Dblowfish.c71 #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()
113 BLFRND(s, p, Xr, Xl, 10); BLFRND(s, p, Xl, Xr, 9); in Blowfish_decipher()
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 Dlibressl-api-compat.c164 if (p != NULL) in DSA_get0_pqg()
165 *p = d->p; in DSA_get0_pqg()
182 BN_free(d->p); in DSA_set0_pqg()
183 d->p = p; in DSA_set0_pqg()
310 if (p != NULL) in RSA_get0_factors()
311 *p = r->p; in RSA_get0_factors()
325 BN_free(r->p); in RSA_set0_factors()
326 r->p = p; in RSA_set0_factors()
454 if (p != NULL) in DH_get0_pqg()
455 *p = dh->p; in DH_get0_pqg()
[all …]
H A Dexplicit_bzero.c21 explicit_bzero(void *p, size_t n) in explicit_bzero() argument
23 (void)explicit_memset(p, 0, n); in explicit_bzero()
29 explicit_bzero(void *p, size_t n) in explicit_bzero() argument
33 (void)memset_s(p, n, 0, n); in explicit_bzero()
45 explicit_bzero(void *p, size_t n) in explicit_bzero() argument
56 memset(p, 0, n); in explicit_bzero()
60 ssh_bzero(p, n); in explicit_bzero()
H A Dinet_ntoa.c50 char *p; in inet_ntoa() local
52 p = (char *)∈ in inet_ntoa()
55 "%u.%u.%u.%u", UC(p[0]), UC(p[1]), UC(p[2]), UC(p[3])); in inet_ntoa()
H A Dmemmem.c95 if (k == p) { in twoway_memmem()
96 jp += p; in twoway_memmem()
102 p = jp - ip; in twoway_memmem()
105 k = p = 1; in twoway_memmem()
109 p0 = p; in twoway_memmem()
115 if (k == p) { in twoway_memmem()
116 jp += p; in twoway_memmem()
122 p = jp - ip; in twoway_memmem()
125 k = p = 1; in twoway_memmem()
129 else p = p0; in twoway_memmem()
[all …]
H A Dport-aix.c103 if (p == NULL) in aix_remove_embedded_newlines()
106 for (; *p; p++) { in aix_remove_embedded_newlines()
107 if (*p == '\n') in aix_remove_embedded_newlines()
108 *p = ' '; in aix_remove_embedded_newlines()
111 if (*--p == ' ') in aix_remove_embedded_newlines()
112 *p = '\0'; in aix_remove_embedded_newlines()
153 p = auth1; in aix_valid_authentications()
155 while (p[0] != '\0' && p[1] != '\0') { in aix_valid_authentications()
157 if (strcmp(p, "NONE") != 0 && strcmp(p, "SYSTEM")) { in aix_valid_authentications()
159 user, p); in aix_valid_authentications()
[all …]
H A Dgetrrsetbyname.c560 if (p == NULL) in free_dns_query()
563 if (p->name) in free_dns_query()
566 free(p); in free_dns_query()
572 if (p == NULL) in free_dns_rr()
575 if (p->name) in free_dns_rr()
577 if (p->rdata) in free_dns_rr()
580 free(p); in free_dns_rr()
593 free(p); in free_dns_response()
601 while(p) { in count_dns_rr()
602 if (p->class == class && p->type == type) in count_dns_rr()
[all …]
H A Dglob.c370 const Char *p; local
379 h < (char *)eb && *p && *p != SLASH; *h++ = *p++)
636 Char *p, *q; local
673 p = pattern;
674 while (*p != EOS && *p != SEP) {
679 *q++ = *p++;
870 for (p = path; *p++;)
1063 Char *p; local
1066 for (p = s; *p; p++)
1069 for (p = s; *p; p++)
[all …]
H A Dbsd-cygwin_util.c103 char **e, **p; in fetch_windows_environment() local
106 p = xcalloc(WENV_SIZ + 1, sizeof(char *)); in fetch_windows_environment()
110 p[idx++] = *e; in fetch_windows_environment()
113 p[idx] = NULL; in fetch_windows_environment()
114 return p; in fetch_windows_environment()
118 free_windows_environment(char **p) in free_windows_environment() argument
120 free(p); in free_windows_environment()
/openssh-portable/
H A Dsshbuf-getput-basic.c119 *p = NULL; in check_roffset()
227 *valp = p; in sshbuf_get_string_direct()
309 u_char *p; in sshbuf_get_stringb() local
328 u_char *p; in sshbuf_put() local
363 u_char *p; in sshbuf_putfv() local
394 u_char *p; in sshbuf_put_u64() local
406 u_char *p; in sshbuf_put_u32() local
418 u_char *p; in sshbuf_put_u16() local
430 u_char *p; in sshbuf_put_u8() local
444 *p = NULL; in check_woffset()
[all …]
H A Dsntrup761.c51 for (p = top;p >= 1;p >>= 1) { in crypto_sort_int32()
503 small fg[p+p-1]; in R3_mult()
512 for (i = p;i < p+p-1;++i) { in R3_mult()
518 for (i = p+p-2;i >= p;--i) { in R3_mult()
529 small f[p+1],g[p+1],v[p+1],r[p+1]; in R3_recip()
577 Fq fg[p+p-1]; in Rq_mult_small()
586 for (i = p;i < p+p-1;++i) { in Rq_mult_small()
592 for (i = p+p-2;i >= p;--i) { in Rq_mult_small()
614 Fq f[p+1],g[p+1],v[p+1],r[p+1]; in Rq_recip3()
1058 small f[p],v[p]; in ZKeyGen()
[all …]
H A Dsshbuf.h313 #define PEEK_U64(p) \ argument
321 (u_int64_t)(((const u_char *)(p))[7]))
322 #define PEEK_U32(p) \ argument
326 (u_int32_t)(((const u_char *)(p))[3]))
327 #define PEEK_U16(p) \ argument
331 #define POKE_U64(p, v) \ argument
341 ((u_char *)(p))[7] = __v & 0xff; \
343 #define POKE_U32(p, v) \ argument
349 ((u_char *)(p))[3] = __v & 0xff; \
351 #define POKE_U16(p, v) \ argument
[all …]
H A Dsshbuf-misc.c55 if (isascii(p[j]) && isprint(p[j])) in sshbuf_dump_data()
152 u_char *p; in sshbuf_b64tod() local
159 freezero(p, plen); in sshbuf_b64tod()
163 freezero(p, plen); in sshbuf_b64tod()
166 freezero(p, plen); in sshbuf_b64tod()
174 u_char *p; in sshbuf_dtourlb64() local
202 if (p[i] == '+') in sshbuf_dtourlb64()
203 p[i] = '-'; in sshbuf_dtourlb64()
205 p[i] = '_'; in sshbuf_dtourlb64()
224 if (p != s + l - 1) in sshbuf_dup_string()
[all …]
H A Dssh-pkcs11.c115 p, p->refcount, p->valid); in pkcs11_provider_finalize()
116 if (!p->valid) in pkcs11_provider_finalize()
126 p->valid = 0; in pkcs11_provider_finalize()
140 if (p->valid) in pkcs11_provider_unref()
145 free(p); in pkcs11_provider_unref()
169 debug("check %p %s", p, p->name); in pkcs11_provider_lookup()
171 return (p); in pkcs11_provider_lookup()
1543 p = xcalloc(1, sizeof(*p)); in pkcs11_register_provider()
1631 if (pkcs11_login_slot(p, &p->slotinfo[i], in pkcs11_register_provider()
1652 if (p) { in pkcs11_register_provider()
[all …]
H A Dmatch.c239 char *p, *pat; in match_user() local
254 p = strchr(pat, '@'); in match_user()
255 *p++ = '\0'; in match_user()
274 char *c, *s, *p, *ret, *cp, *sp; in match_list() local
280 for ((p = strsep(&sp, SEP)), i=0; p && *p != '\0'; in match_list()
281 (p = strsep(&sp, SEP)), i++) { in match_list()
283 sproposals[i] = p; in match_list()
289 for ((p = strsep(&cp, SEP)), i=0; p && *p != '\0'; in match_list()
290 (p = strsep(&cp, SEP)), i++) { in match_list()
292 if (strcmp(p, sproposals[j]) == 0) { in match_list()
[all …]
H A Dge25519.c72 fe25519_mul(&r->x, &p->x, &p->t); in p1p1_to_p2()
73 fe25519_mul(&r->y, &p->y, &p->z); in p1p1_to_p2()
74 fe25519_mul(&r->z, &p->z, &p->t); in p1p1_to_p2()
80 fe25519_mul(&r->t, &p->x, &p->y); in p1p1_to_p3()
110 fe25519_sub(&a, &p->y, &p->x); /* A = (Y1-X1)*(Y2-X2) */ in add_p1p1()
113 fe25519_add(&b, &p->x, &p->y); /* B = (Y1+X1)*(Y2+X2) */ in add_p1p1()
130 fe25519_square(&a, &p->x); in dbl_p1p1()
131 fe25519_square(&b, &p->y); in dbl_p1p1()
136 fe25519_add(&r->x, &p->x, &p->y); in dbl_p1p1()
201 par = p[31] >> 7; in ge25519_unpackneg_vartime()
[all …]
H A Dcompat.c187 compat_kex_proposal(struct ssh *ssh, char *p) in compat_kex_proposal() argument
190 return p; in compat_kex_proposal()
191 debug2_f("original KEX proposal: %s", p); in compat_kex_proposal()
193 if ((p = match_filter_denylist(p, in compat_kex_proposal()
197 if ((p = match_filter_denylist(p, in compat_kex_proposal()
202 debug2_f("compat KEX proposal: %s", p); in compat_kex_proposal()
203 if (*p == '\0') in compat_kex_proposal()
205 return p; in compat_kex_proposal()
H A Dreadpass.c56 int p[2], status; in ssh_askpass() local
64 if (pipe(p) == -1) { in ssh_askpass()
75 close(p[0]); in ssh_askpass()
83 close(p[1]); in ssh_askpass()
97 close(p[0]); in ssh_askpass()
202 char *p, prompt[1024]; in ask_permission() local
209 p = read_passphrase(prompt, in ask_permission()
211 if (p != NULL) { in ask_permission()
216 if (*p == '\0' || *p == '\n' || in ask_permission()
217 strcasecmp(p, "yes") == 0) in ask_permission()
[all …]
H A Dssh-keysign.c71 char *p; in valid_request() local
99 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request()
101 if (strcmp("ssh-connection", p) != 0) in valid_request()
103 free(p); in valid_request()
106 if ((r = sshbuf_get_cstring(b, &p, NULL)) != 0) in valid_request()
108 if (strcmp("hostbased", p) != 0) in valid_request()
110 free(p); in valid_request()
129 if ((r = sshbuf_get_cstring(b, &p, &len)) != 0) in valid_request()
134 else if (p[len - 1] != '.') in valid_request()
136 else if (strncasecmp(host, p, len - 1) != 0) in valid_request()
[all …]
H A Dsftp-realpath.c62 char *p, *q, *s; in sftp_realpath() local
115 p = strchr(left, '/'); in sftp_realpath()
116 s = p ? p : left + left_len; in sftp_realpath()
124 if (p != NULL) in sftp_realpath()
163 if (errno == ENOENT && p == NULL) { in sftp_realpath()
194 if (p != NULL) { in sftp_realpath()
H A Dmisc.c550 const char *p; in convtime() local
555 p = s; in convtime()
557 if (p == NULL || *p == '\0') in convtime()
560 while (*p) { in convtime()
602 p = endp; in convtime()
2588 close(p[0]); in subprocess()
2589 close(p[1]); in subprocess()
2620 fd = p[1]; in subprocess()
2656 close(p[1]); in subprocess()
2658 close(p[0]); in subprocess()
[all …]
/openssh-portable/regress/unittests/sshbuf/
H A Dtest_sshbuf_misc.c57 p = sshbuf_dtob16(p1); in sshbuf_misc_tests()
58 ASSERT_PTR_NE(p, NULL); in sshbuf_misc_tests()
60 free(p); in sshbuf_misc_tests()
69 ASSERT_PTR_NE(p, NULL); in sshbuf_misc_tests()
71 free(p); in sshbuf_misc_tests()
83 free(p); in sshbuf_misc_tests()
96 free(p); in sshbuf_misc_tests()
108 free(p); in sshbuf_misc_tests()
146 free(p); in sshbuf_misc_tests()
153 free(p); in sshbuf_misc_tests()
[all …]
/openssh-portable/regress/unittests/sshkey/
H A Dcommon.c57 const u_char *p; in load_text_file() local
60 for (p = sshbuf_ptr(ret); sshbuf_len(ret) > 0;) { in load_text_file()
61 if (p[sshbuf_len(ret) - 1] == '\r' || in load_text_file()
62 p[sshbuf_len(ret) - 1] == '\t' || in load_text_file()
63 p[sshbuf_len(ret) - 1] == ' ' || in load_text_file()
64 p[sshbuf_len(ret) - 1] == '\n') in load_text_file()
112 const BIGNUM *p = NULL; in rsa_p() local
116 RSA_get0_factors(k->rsa, &p, NULL); in rsa_p()
117 return p; in rsa_p()

12345