Home
last modified time | relevance | path

Searched refs:pstr (Results 1 – 25 of 46) sorted by relevance

12

/src/lib/libthr/thread/
H A Dthr_printf.c38 static void pstr(int fd, const char *s);
87 pstr(fd, va_arg(ap, char *)); in _thread_vprintf()
93 pstr(fd, "0x"); in _thread_vprintf()
100 pstr(fd, "0x"); in _thread_vprintf()
145 pstr(int fd, const char *s) in pstr() function
/src/crypto/openssl/crypto/http/
H A Dhttp_lib.c25 static void init_pstring(char **pstr) in init_pstring() argument
27 if (pstr != NULL) { in init_pstring()
28 *pstr = NULL; in init_pstring()
45 static void free_pstring(char **pstr) in free_pstring() argument
47 if (pstr != NULL) { in free_pstring()
48 OPENSSL_free(*pstr); in free_pstring()
49 *pstr = NULL; in free_pstring()
/src/usr.sbin/spi/
H A Dspi.c163 char *pstr; in main() local
220 opt.mode = (int)strtol(optarg, &pstr, 10); in main()
222 if (!pstr || *pstr || opt.mode < 0 || opt.mode > 3) { in main()
230 opt.speed = (int)strtol(optarg, &pstr, 10); in main()
232 if (!pstr || *pstr || opt.speed < 0) { in main()
240 opt.count = (int)strtol(optarg, &pstr, 10); in main()
242 if (!pstr || *pstr) { in main()
/src/bin/pax/
H A Dpat_rep.c213 pt->pstr = str; in pat_add()
252 (void)fprintf(stderr, "%s\n", pt->pstr); in pat_chk()
321 if ((pt->pstr = strdup(arcn->name)) == NULL) { in pat_sel()
336 pt->plen = strlen(pt->pstr); in pat_sel()
342 if (*(pt->pstr + len) == '/') { in pat_sel()
343 *(pt->pstr + len) = '\0'; in pat_sel()
425 (strncmp(pt->pstr, arcn->name, pt->plen) == 0)) in pat_match()
427 } else if (fn_match(pt->pstr, arcn->name, &pt->pend) == 0) in pat_match()
H A Dpax.h168 char *pstr; /* pattern to match, user supplied */ member
/src/crypto/openssl/crypto/dsa/
H A Ddsa_backend.c128 const ASN1_STRING *pstr; in ossl_dsa_key_from_pkcs8() local
146 pstr = pval; in ossl_dsa_key_from_pkcs8()
147 pm = pstr->data; in ossl_dsa_key_from_pkcs8()
148 pmlen = pstr->length; in ossl_dsa_key_from_pkcs8()
H A Ddsa_ameth.c35 const ASN1_STRING *pstr; in dsa_pub_decode() local
46 pstr = pval; in dsa_pub_decode()
47 pm = pstr->data; in dsa_pub_decode()
48 pmlen = pstr->length; in dsa_pub_decode()
/src/crypto/openssl/crypto/dh/
H A Ddh_backend.c187 const ASN1_STRING *pstr; in ossl_dh_key_from_pkcs8() local
203 pstr = pval; in ossl_dh_key_from_pkcs8()
204 pm = pstr->data; in ossl_dh_key_from_pkcs8()
205 pmlen = pstr->length; in ossl_dh_key_from_pkcs8()
H A Ddh_ameth.c66 const ASN1_STRING *pstr; in dh_pub_decode() local
81 pstr = pval; in dh_pub_decode()
82 pm = pstr->data; in dh_pub_decode()
83 pmlen = pstr->length; in dh_pub_decode()
/src/tools/tools/usbtest/
H A Dusbtest.c90 char *pstr; in usb_ts_show_menu() local
110 for (pstr = menu; *pstr; pstr++) { in usb_ts_show_menu()
115 printf("%c", *pstr); in usb_ts_show_menu()
117 if (*pstr == '\n') in usb_ts_show_menu()
/src/crypto/krb5/src/plugins/preauth/otp/
H A Dotp_state.c180 char *server = NULL, *name_copy = NULL, *secret = NULL, *pstr = NULL; in token_type_decode() local
200 retval = profile_get_string(profile, "otp", name, "server", NULL, &pstr); in token_type_decode()
203 if (pstr != NULL) { in token_type_decode()
204 server = strdup(pstr); in token_type_decode()
205 profile_release_string(pstr); in token_type_decode()
216 retval = profile_get_string(profile, "otp", name, "secret", NULL, &pstr); in token_type_decode()
219 if (pstr != NULL) { in token_type_decode()
220 retval = read_secret_file(pstr, &secret); in token_type_decode()
221 profile_release_string(pstr); in token_type_decode()
/src/crypto/openssl/crypto/ec/
H A Dec_ameth.c52 ASN1_STRING *pstr = NULL; in eckey_param2type() local
53 pstr = ASN1_STRING_new(); in eckey_param2type()
54 if (pstr == NULL) in eckey_param2type()
56 pstr->length = i2d_ECParameters(ec_key, &pstr->data); in eckey_param2type()
57 if (pstr->length <= 0) { in eckey_param2type()
58 ASN1_STRING_free(pstr); in eckey_param2type()
62 *ppval = pstr; in eckey_param2type()
/src/usr.bin/fortune/fortune/
H A Dfortune.c352 char **pstr; in form_file_list() local
357 pstr = Fortune_path_arr; in form_file_list()
359 while (*pstr) { in form_file_list()
360 i += add_file(NO_PROB, *pstr++, NULL, in form_file_list()
370 pstr = Fortune_path_arr; in form_file_list()
372 while (*pstr) { in form_file_list()
373 i += add_file(NO_PROB, "fortunes", *pstr++, in form_file_list()
418 pstr = Fortune_path_arr; in form_file_list()
420 while (*pstr) { in form_file_list()
421 i += add_file(NO_PROB, *pstr++, NULL, in form_file_list()
[all …]
/src/usr.bin/whois/
H A Dwhois.c522 char *pstr; in whois() local
532 pstr = ++p; in whois()
534 if (p > pstr && (p - pstr) < 6) { in whois()
536 (int)(p - pstr), pstr); in whois()
/src/crypto/openssl/providers/implementations/rands/
H A Ddrbg_hmac.c120 const unsigned char *pstr, size_t pstr_len) in ossl_drbg_hmac_init() argument
132 return drbg_hmac_update(hmac, ent, ent_len, nonce, nonce_len, pstr, in ossl_drbg_hmac_init()
138 const unsigned char *pstr, size_t pstr_len) in drbg_hmac_instantiate() argument
141 nonce, nonce_len, pstr, pstr_len); in drbg_hmac_instantiate()
146 const unsigned char *pstr, in drbg_hmac_instantiate_wrapper() argument
160 pstr, pstr_len); in drbg_hmac_instantiate_wrapper()
H A Ddrbg_hash.c256 const unsigned char *pstr, size_t pstr_len) in drbg_hash_instantiate() argument
266 ent, ent_len, nonce, nonce_len, pstr, pstr_len) in drbg_hash_instantiate()
273 const unsigned char *pstr, in drbg_hash_instantiate_wrapper() argument
287 pstr, pstr_len); in drbg_hash_instantiate_wrapper()
/src/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2any.c454 void **pstr, int *pstrtype) in prepare_dh_params() argument
475 *pstr = params; in prepare_dh_params()
559 void **pstr, int *pstrtype) in encode_dsa_params() argument
577 *pstr = params; in encode_dsa_params()
582 void **pstr, int *pstrtype) in prepare_dsa_params() argument
589 return encode_dsa_params(dsa, nid, pstr, pstrtype); in prepare_dsa_params()
591 *pstr = NULL; in prepare_dsa_params()
659 void **pstr, int *pstrtype) in k2d_NOCTX()
676 *pstr = params; in k2d_NOCTX()
685 void **pstr, int *pstrtype) in prepare_ec_params() argument
[all …]
/src/contrib/blocklist/bin/
H A Dconf.c244 const char *pstr; in conf_gethostport() local
254 pstr = d; in conf_gethostport()
257 pstr = p; in conf_gethostport()
259 if (conf_getmask(f, l, local, &pstr, &c->c_lmask) == -1) in conf_gethostport()
275 if (!*pstr) in conf_gethostport()
276 pstr = "*"; in conf_gethostport()
277 } else if (pstr != p || strchr(p, '.') || conf_is_interface(p)) { in conf_gethostport()
278 if (pstr == p) in conf_gethostport()
279 pstr = "*"; in conf_gethostport()
312 if (conf_getport(f, l, local, &c->c_port, pstr) == -1) in conf_gethostport()
/src/crypto/openssl/crypto/x509/
H A Dv3_cpols.c92 char *pstr;
119 pstr = cnf->name;
120 if (strcmp(pstr, "ia5org") == 0) {
123 } else if (*pstr == '@') {
126 polsect = X509V3_get_section(ctx, pstr + 1);
/src/crypto/openssl/crypto/cms/
H A Dcms_ec.c28 const ASN1_STRING *pstr = pval; in pkey_type2param() local
29 const unsigned char *pm = pstr->data; in pkey_type2param()
30 size_t pmlen = (size_t)pstr->length; in pkey_type2param()
/src/crypto/openssl/providers/implementations/include/prov/
H A Dhmac_drbg.h28 const unsigned char *pstr, size_t pstr_len);
/src/contrib/atf/atf-c/detail/
H A Dfs.c474 const char *pstr = atf_fs_path_cstring(p); in atf_fs_stat_init() local
476 if (lstat(pstr, &st->m_sb) == -1) { in atf_fs_stat_init()
478 "lstat(2) failed", pstr); in atf_fs_stat_init()
494 err = unknown_type_error(pstr, type); in atf_fs_stat_init()
/src/crypto/openssl/crypto/evp/
H A Devp_rand.c512 const unsigned char *pstr, size_t pstr_len, const OSSL_PARAM params[]) in evp_rand_instantiate_locked() argument
515 pstr, pstr_len, params); in evp_rand_instantiate_locked()
520 const unsigned char *pstr, size_t pstr_len, in EVP_RAND_instantiate() argument
528 pstr, pstr_len, params); in EVP_RAND_instantiate()
/src/sys/powerpc/powerpc/
H A Ddb_disasm.c604 char * pstr; in disasm_fields() local
611 pstr += len; \ in disasm_fields()
613 #define APP_PSTR(fmt, arg) ADD_LEN(snprintf(pstr, slen, (fmt), (arg))) in disasm_fields()
614 #define APP_PSTRS(fmt) ADD_LEN(snprintf(pstr, slen, "%s", (fmt))) in disasm_fields()
616 pstr = disasm_str; in disasm_fields()
/src/crypto/openssl/fuzz/
H A Dfuzz_rand.c43 ossl_unused const unsigned char *pstr, in fuzz_rand_instantiate() argument

12