/freebsd/crypto/openssl/crypto/pkcs12/ |
H A D | p12_attr.c | 18 int namelen) in PKCS12_add_localkeyid() argument 21 V_ASN1_OCTET_STRING, name, namelen) != NULL) in PKCS12_add_localkeyid() 39 int namelen) in PKCS12_add_friendlyname_asc() argument 42 MBSTRING_ASC, (unsigned char *)name, namelen) != NULL) in PKCS12_add_friendlyname_asc() 49 int namelen) in PKCS12_add_friendlyname_utf8() argument 52 MBSTRING_UTF8, (unsigned char *)name, namelen) != NULL) in PKCS12_add_friendlyname_utf8() 59 const unsigned char *name, int namelen) in PKCS12_add_friendlyname_uni() argument 62 MBSTRING_BMP, name, namelen) != NULL) in PKCS12_add_friendlyname_uni() 68 int PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name, int namelen) in PKCS12_add_CSPName_asc() argument 71 MBSTRING_ASC, (unsigned char *)name, namelen) != NULL) in PKCS12_add_CSPName_asc()
|
H A D | p12_crt.c | 20 int namelen, 49 int namelen = -1; in PKCS12_create_ex() local 77 name = (char *)X509_alias_get0(cert, &namelen); in PKCS12_create_ex() 85 bag = pkcs12_add_cert_bag(&bags, cert, name, namelen, pkeyid, pkeyidlen); in PKCS12_create_ex() 159 int namelen, in pkcs12_add_cert_bag() argument 169 if (name != NULL && !PKCS12_add_friendlyname(bag, name, namelen)) in pkcs12_add_cert_bag() 188 int namelen = -1; in PKCS12_add_cert() local 195 name = (char *)X509_alias_get0(cert, &namelen); in PKCS12_add_cert() 198 return pkcs12_add_cert_bag(pbags, cert, name, namelen, keyid, keyidlen); in PKCS12_add_cert()
|
/freebsd/contrib/unbound/services/cache/ |
H A D | infra.h | 66 size_t namelen; member 155 size_t namelen; member 248 size_t namelen, int wr); 269 socklen_t addrlen, uint8_t* name, size_t namelen, 289 uint8_t* name, size_t namelen, time_t timenow, int dnsseclame, 308 socklen_t addrlen, uint8_t* name, size_t namelen, int qtype, 321 uint8_t* name, size_t namelen); 337 uint8_t* name, size_t namelen, int edns_version, time_t timenow); 359 uint8_t* name, size_t namelen, uint16_t qtype, 380 size_t namelen, struct rtt_info* rtt, int* delay, time_t timenow, [all …]
|
H A D | infra.c | 89 return sizeof(*key) + sizeof(struct infra_data) + key->namelen in infra_sizefunc() 101 if(k1->namelen != k2->namelen) { in infra_compfunc() 102 if(k1->namelen < k2->namelen) in infra_compfunc() 131 return sizeof(*key) + sizeof(struct rate_data) + key->namelen in rate_sizefunc() 140 if(k1->namelen != k2->namelen) { in rate_compfunc() 141 if(k1->namelen < k2->namelen) in rate_compfunc() 474 socklen_t addrlen, uint8_t* name, size_t namelen, int wr) in infra_lookup_nottl() argument 479 k.namelen = namelen; in infra_lookup_nottl() 519 socklen_t addrlen, uint8_t* name, size_t namelen, time_t tm) in new_entry() argument 530 key->zonename = memdup(name, namelen); in new_entry() [all …]
|
/freebsd/sys/rpc/ |
H A D | authunix_prot.c | 62 uint32_t namelen; in xdr_authunix_parms() local 72 namelen = strlen(hostbuf); in xdr_authunix_parms() 73 if (namelen > 255) in xdr_authunix_parms() 74 namelen = 255; in xdr_authunix_parms() 76 namelen = 0; in xdr_authunix_parms() 81 || !xdr_uint32_t(xdrs, &namelen)) in xdr_authunix_parms() 88 if (!xdr_opaque(xdrs, hostbuf, namelen)) in xdr_authunix_parms() 91 xdr_setpos(xdrs, xdr_getpos(xdrs) + RNDUP(namelen)); in xdr_authunix_parms()
|
/freebsd/lib/libc/gen/ |
H A D | getlogin.c | 58 __ssp_real(getlogin_r)(char *logname, size_t namelen) in __ssp_real() 63 if (namelen < 1) in __ssp_real() 70 if (len > namelen) in __ssp_real() 78 __getlogin_r_fbsd12(char *logname, int namelen) in __getlogin_r_fbsd12() argument 80 if (namelen < 1) in __getlogin_r_fbsd12() 82 return (getlogin_r(logname, namelen)); in __getlogin_r_fbsd12()
|
/freebsd/contrib/unbound/validator/ |
H A D | val_kcache.c | 106 key_cache_search(struct key_cache* kcache, uint8_t* name, size_t namelen, in key_cache_search() argument 113 lookfor.namelen = namelen; in key_cache_search() 123 key_cache_obtain(struct key_cache* kcache, uint8_t* name, size_t namelen, in key_cache_obtain() argument 129 namelen, key_class, 0); in key_cache_obtain() 146 dname_remove_label(&name, &namelen); in key_cache_obtain() 158 uint8_t* name, size_t namelen, uint16_t key_class) in key_cache_remove() argument 163 lookfor.namelen = namelen; in key_cache_remove()
|
H A D | val_kentry.c | 56 size_t s = sizeof(*kk) + kk->namelen; in key_entry_sizefunc() 117 newk->name = regional_alloc_init(region, kkey->name, kkey->namelen); in key_entry_copy_toregion() 163 newk->name = memdup(kkey->name, kkey->namelen); in key_entry_copy() 260 uint8_t* name, size_t namelen, uint16_t dclass, in key_entry_setup() argument 268 (*k)->name = regional_alloc_init(region, name, namelen); in key_entry_setup() 271 (*k)->namelen = namelen; in key_entry_setup() 282 uint8_t* name, size_t namelen, uint16_t dclass, time_t ttl, in key_entry_create_null() argument 288 if(!key_entry_setup(region, name, namelen, dclass, &k, &d)) in key_entry_create_null() 304 uint8_t* name, size_t namelen, uint16_t dclass, in key_entry_create_rrset() argument 313 if(!key_entry_setup(region, name, namelen, dclass, &k, &d)) in key_entry_create_rrset() [all …]
|
H A D | val_kentry.h | 62 size_t namelen; member 178 uint8_t* name, size_t namelen, uint16_t dclass, time_t ttl, 196 uint8_t* name, size_t namelen, uint16_t dclass, 214 uint8_t* name, size_t namelen, uint16_t dclass, time_t ttl,
|
/freebsd/tools/tools/vimage/ |
H A D | vimage.c | 97 int jid, i, s, namelen; in main() local 155 namelen = strlen(argv[0]); in main() 157 namelen = 0; in main() 164 if (namelen && in main() 165 ((strlen(vst[vst_last].name) < namelen || in main() 166 strncmp(vst[vst_last].name, argv[0], namelen) != 0) in main() 167 || (strlen(vst[vst_last].name) > namelen && in main() 168 vst[vst_last].name[namelen] != '.'))) in main() 172 (strlen(vst[vst_last].name) < namelen || in main() 173 strchr(&vst[vst_last].name[namelen], '.') != NULL)) in main() [all …]
|
/freebsd/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/legacy/ |
H A D | ittnotify.h | 323 int LIBITTAPI __itt_thr_name_setA(const char *name, int namelen); 324 int LIBITTAPI __itt_thr_name_setW(const wchar_t *name, int namelen); 333 int LIBITTAPI __itt_thr_name_set(const char *name, int namelen); 340 ITT_STUB(LIBITTAPI, int, thr_name_setA, (const char *name, int namelen)) 341 ITT_STUB(LIBITTAPI, int, thr_name_setW, (const wchar_t *name, int namelen)) 343 ITT_STUB(LIBITTAPI, int, thr_name_set, (const char *name, int namelen)) 356 #define __itt_thr_name_setA(name, namelen) 358 #define __itt_thr_name_setW(name, namelen) 361 #define __itt_thr_name_set(name, namelen) 514 int namelen, int attribute); [all …]
|
/freebsd/sys/kern/ |
H A D | kern_module.c | 151 size_t namelen; in module_register() local 162 namelen = strlen(data->name) + 1; in module_register() 163 newmod = malloc(sizeof(struct module) + namelen, M_MODULE, M_WAITOK); in module_register() 380 int id, namelen, refs, version; in sys_modstat() local 408 namelen = strlen(mod->name) + 1; in sys_modstat() 409 if (is_v1v2 && namelen > MAXMODNAMEV1V2) in sys_modstat() 410 namelen = MAXMODNAMEV1V2; in sys_modstat() 411 else if (namelen > MAXMODNAMEV3) in sys_modstat() 412 namelen = MAXMODNAMEV3; in sys_modstat() 413 if ((error = copyout(name, &stat->name[0], namelen)) != 0) in sys_modstat() [all …]
|
/freebsd/sys/contrib/libfdt/ |
H A D | fdt_ro.c | 160 const char *name, int namelen) in fdt_subnode_offset_namelen() argument 170 && fdt_nodename_eq_(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen() 184 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument 186 const char *end = path + namelen; in fdt_path_offset_namelen() 330 int namelen, in fdt_get_property_namelen_() argument 344 name, namelen)) { in fdt_get_property_namelen_() 360 int namelen, int *lenp) in fdt_get_property_namelen() argument 370 return fdt_get_property_namelen_(fdt, offset, name, namelen, lenp, in fdt_get_property_namelen() 384 const char *name, int namelen, int *lenp) in fdt_getprop_namelen() argument 389 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x509_vpm.c | 37 const char *name, size_t namelen) in int_x509_param_set_hosts() argument 45 if (namelen == 0 || name == NULL) in int_x509_param_set_hosts() 46 namelen = name ? strlen(name) : 0; in int_x509_param_set_hosts() 48 && memchr(name, '\0', namelen > 1 ? namelen - 1 : namelen) != NULL) in int_x509_param_set_hosts() 50 if (namelen > 0 && name[namelen - 1] == '\0') in int_x509_param_set_hosts() 51 --namelen; in int_x509_param_set_hosts() 57 if (name == NULL || namelen == 0) in int_x509_param_set_hosts() 60 copy = OPENSSL_strndup(name, namelen); in int_x509_param_set_hosts() 387 const char *name, size_t namelen) in X509_VERIFY_PARAM_set1_host() argument 389 return int_x509_param_set_hosts(param, SET_HOST, name, namelen); in X509_VERIFY_PARAM_set1_host() [all …]
|
/freebsd/include/ssp/ |
H A D | socket.h | 51 (int fdes, struct sockaddr *__restrict name, socklen_t *__restrict namelen)) 55 if (namesz != (size_t)-1 && namesz < *namelen) 58 return (__ssp_real(getpeername)(fdes, name, namelen)); 63 socklen_t *__restrict namelen)) 67 if (namesz != (size_t)-1 && namesz < *namelen) 70 return (__ssp_real(getsockname)(fdes, name, namelen));
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 275 tarfs_lookup_path(struct tarfs_mount *tmp, char *name, size_t namelen, in tarfs_lookup_path() argument 286 MPASS(name != NULL && namelen != 0); in tarfs_lookup_path() 295 (int)namelen, name); in tarfs_lookup_path() 300 while (name[0] == '/' && namelen > 0) in tarfs_lookup_path() 301 name++, namelen--; in tarfs_lookup_path() 304 if (namelen == 0 || name[0] == '\0') { in tarfs_lookup_path() 306 namelen = do_lookup ? 0 : cn.cn_namelen; in tarfs_lookup_path() 313 (int)tnp->namelen, tnp->name); in tarfs_lookup_path() 320 *sep != '\0' && *sep != '/' && len < namelen; in tarfs_lookup_path() 327 namelen -= len; in tarfs_lookup_path() [all …]
|
/freebsd/lib/libc/net/ |
H A D | linkaddr.c | 125 int namelen, i, rem; in link_ntoa() local 127 namelen = (sdl->sdl_nlen <= IFNAMSIZ) ? sdl->sdl_nlen : IFNAMSIZ; in link_ntoa() 131 if (namelen > 0) { in link_ntoa() 132 bcopy(sdl->sdl_data, out, namelen); in link_ntoa() 133 out += namelen; in link_ntoa() 134 rem -= namelen; in link_ntoa()
|
/freebsd/sys/fs/nfs/ |
H A D | nfs_commonacl.c | 285 nfsrv_buildace(struct nfsrv_descript *nd, u_char *name, int namelen, in nfsrv_buildace() argument 291 full_len = NFSM_RNDUP(namelen); in nfsrv_buildace() 383 *tl++ = txdr_unsigned(namelen); in nfsrv_buildace() 384 if (full_len - namelen) in nfsrv_buildace() 385 *(tl + (namelen / NFSX_UNSIGNED)) = 0x0; in nfsrv_buildace() 386 NFSBCOPY(name, (caddr_t)tl, namelen); in nfsrv_buildace() 399 int isowner, isgroup, namelen, malloced; in nfsrv_buildacl() local 413 namelen = 6; in nfsrv_buildacl() 418 namelen = 6; in nfsrv_buildacl() 422 namelen = 9; in nfsrv_buildacl() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | config_winreg.c | 69 DWORD namelen, datalen, type; in wpa_config_read_blobs() local 71 namelen = TNAMELEN; in wpa_config_read_blobs() 73 ret = RegEnumValue(bhk, i, name, &namelen, NULL, &type, in wpa_config_read_blobs() 85 if (namelen >= TNAMELEN) in wpa_config_read_blobs() 86 namelen = TNAMELEN - 1; in wpa_config_read_blobs() 87 name[namelen] = TEXT('\0'); in wpa_config_read_blobs() 323 DWORD namelen, datalen, type; in wpa_config_read_network() local 325 namelen = 255; in wpa_config_read_network() 327 ret = RegEnumValue(nhk, i, name, &namelen, NULL, &type, in wpa_config_read_network() 339 if (namelen >= 255) in wpa_config_read_network() [all …]
|
/freebsd/bin/pax/ |
H A D | cache.c | 303 int namelen; in uid_name() local 308 if (((namelen = strlen(name)) == 0) || (name[0] == '\0')) in uid_name() 317 ptr = usrtb[st_hash(name, namelen, UNM_SZ)]; in uid_name() 331 ptr = usrtb[st_hash(name, namelen, UNM_SZ)] = in uid_name() 367 int namelen; in gid_name() local 372 if (((namelen = strlen(name)) == 0) || (name[0] == '\0')) in gid_name() 381 ptr = grptb[st_hash(name, namelen, GID_SZ)]; in gid_name() 394 ptr = grptb[st_hash(name, namelen, GID_SZ)] = in gid_name()
|
/freebsd/contrib/flex/src/ |
H A D | scanopt.c | 47 int namelen; /* Length of the actual option word, e.g., "--file[=foo]" is 4 */ member 183 aux->namelen = 0; in scanopt_init() 188 if (aux->namelen == 0) in scanopt_init() 189 aux->namelen = (int) (p - pname); in scanopt_init() 195 if (aux->namelen == 0) in scanopt_init() 196 aux->namelen = (int) (p - pname); in scanopt_init() 202 if (aux->namelen == 0) in scanopt_init() 203 aux->namelen = (int) (p - pname); in scanopt_init() 614 if (len > s->aux[i].namelen) in find_opt() 622 if (len == s->aux[i].namelen) { in find_opt() [all …]
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_lookup.c | 120 u_short namelen; in cd9660_lookup() local 218 namelen = isonum_711(ep->name_len); in cd9660_lookup() 222 if (reclen < ISO_DIRECTORY_RECORD_SIZE + namelen) in cd9660_lookup() 235 if (namelen == 1 in cd9660_lookup() 244 if (namelen != 1 in cd9660_lookup() 248 ep->name, namelen, in cd9660_lookup() 275 cd9660_rrip_getname(ep, altname, &namelen, &i_ino, imp); in cd9660_lookup() 276 if (namelen == cnp->cn_namelen in cd9660_lookup() 277 && !bcmp(name,altname,namelen)) in cd9660_lookup()
|
/freebsd/contrib/unbound/iterator/ |
H A D | iter_delegpt.c | 100 dp->namelabs = dname_count_size_labels(name, &dp->namelen); in delegpt_set_name() 101 dp->name = regional_alloc_init(region, name, dp->namelen); in delegpt_set_name() 122 ns->namelen = len; in delegpt_add_ns() 124 ns->name = regional_alloc_init(region, name, ns->namelen); in delegpt_add_ns() 144 delegpt_find_ns(struct delegpt* dp, uint8_t* name, size_t namelen) in delegpt_find_ns() argument 148 if(namelen == p->namelen && in delegpt_find_ns() 175 uint8_t* name, size_t namelen, struct sockaddr_storage* addr, in delegpt_add_target() argument 178 struct delegpt_ns* ns = delegpt_find_ns(dp, name, namelen); in delegpt_add_target() 599 dp->namelabs = dname_count_size_labels(name, &dp->namelen); in delegpt_create_mlc() 600 dp->name = memdup(name, dp->namelen); in delegpt_create_mlc() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | gethostname.c | 51 gethostname(char *name, int namelen) in gethostname() argument 61 strlcpy (name, utsname.nodename, namelen); in gethostname() 65 strlcpy (name, "some.random.host", namelen); in gethostname()
|
/freebsd/usr.bin/mkstr/ |
H A D | mkstr.c | 82 size_t namelen; in main() local 97 namelen = strlcpy(name, argv[0], sizeof(name)); in main() 98 if (namelen >= sizeof(name)) { in main() 102 np = name + namelen; in main() 105 if (strlcpy(np, argv[0], sizeof(name) - namelen) >= in main() 106 sizeof(name) - namelen) { in main()
|