/freebsd/contrib/llvm-project/lldb/source/Interpreter/ |
H A D | OptionValueDictionary.cpp | 1 //===-- OptionValueDictionary.cpp -----------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 42 for (const auto &value : m_values) { in DumpValue() local 43 sorted_values[value.first()] = value.second.get(); in DumpValue() 45 for (const auto &value : sorted_values) { in DumpValue() local 46 OptionValue *option_value = value.second; in DumpValue() 53 strm.Indent(value.first); in DumpValue() 64 option_value->DumpValue(exe_ctx, strm, dump_mask | extra_dump_options); in DumpValue() 79 option_value->DumpValue(exe_ctx, strm, in DumpValue() [all …]
|
/freebsd/crypto/heimdal/lib/hdb/ |
H A D | common.c | 2 * Copyright (c) 1997-2002 Kungliga Tekniska Högskolan 37 hdb_principal2key(krb5_context context, krb5_const_principal p, krb5_data *key) in hdb_principal2key() argument 48 ASN1_MALLOC_ENCODE(Principal, key->data, key->length, &new, &len, ret); in hdb_principal2key() 49 if (ret == 0 && key->length != len) in hdb_principal2key() 56 hdb_key2principal(krb5_context context, krb5_data *key, krb5_principal p) in hdb_key2principal() argument 58 return decode_Principal(key->data, key->length, p, NULL); in hdb_key2principal() 62 hdb_entry2value(krb5_context context, const hdb_entry *ent, krb5_data *value) in hdb_entry2value() argument 67 ASN1_MALLOC_ENCODE(hdb_entry, value->data, value->length, ent, &len, ret); in hdb_entry2value() 68 if (ret == 0 && value->length != len) in hdb_entry2value() 74 hdb_value2entry(krb5_context context, krb5_data *value, hdb_entry *ent) in hdb_value2entry() argument [all …]
|
/freebsd/sys/sys/ |
H A D | iov.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2013-2015 Sandvine Inc. 37 #define VF_PREFIX "VF-" 53 * configurations, the SR-IOV infrastructure dynamically queries the PF 60 * 1) All keys are case-insensitive. 64 * key is mandatory then the associated value is also mandatory. 68 * 1) There must be a top-level key with the name PF_CONFIG_NAME. The value 69 * associated with this key is a nvlist that follows the device schema 72 * 2) There must be a top-level key with the name VF_SCHEMA_NAME. The value [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_dict_helpers.c | 2 * WPA Supplicant / dbus-based control interface 102 const char *key, const int value_type) in _wpa_dbus_add_dict_entry_start() argument 110 &key); in _wpa_dbus_add_dict_entry_start() 126 const char *key, in _wpa_dbus_add_dict_entry_basic() argument 128 const void *value) in _wpa_dbus_add_dict_entry_basic() argument 133 if (key == NULL) in _wpa_dbus_add_dict_entry_basic() 141 key, value_type) || in _wpa_dbus_add_dict_entry_basic() 145 !dbus_message_iter_append_basic(&iter_dict_val, value_type, value)) in _wpa_dbus_add_dict_entry_basic() 154 DBusMessageIter *iter_dict, const char *key, in _wpa_dbus_add_dict_entry_byte_array() argument 155 const char *value, const dbus_uint32_t value_len) in _wpa_dbus_add_dict_entry_byte_array() argument [all …]
|
/freebsd/crypto/heimdal/base/ |
H A D | dict.c | 41 heim_object_t key; member 42 heim_object_t value; member 56 for (h = dict->tab; h < &dict->tab[dict->size]; ++h) { in dict_dealloc() 58 i = g->next; in dict_dealloc() 59 heim_release(g->key); in dict_dealloc() 60 heim_release(g->value); in dict_dealloc() 64 free(dict->tab); in dict_dealloc() 69 "dict-object", 118 dict->size = findprime(size); in heim_dict_create() 119 if (dict->size == 0) { in heim_dict_create() [all …]
|
/freebsd/lib/libnv/tests/ |
H A D | dnv_tests.cc | 1 /*- 2 * Copyright (c) 2014-2015 Sandvine Inc. All rights reserved. 31 #include <atf-c++.hpp> 37 const char *key; in ATF_TEST_CASE_BODY() local 38 bool value; in ATF_TEST_CASE_BODY() local 42 key = "name"; in ATF_TEST_CASE_BODY() 43 value = true; in ATF_TEST_CASE_BODY() 44 nvlist_add_bool(nvl, key, value); in ATF_TEST_CASE_BODY() 46 ATF_REQUIRE_EQ(dnvlist_get_bool(nvl, key, false), value); in ATF_TEST_CASE_BODY() 47 ATF_REQUIRE_EQ(dnvlist_get_bool(nvl, "name", false), value); in ATF_TEST_CASE_BODY() [all …]
|
H A D | nv_tests.cc | 1 /*- 2 * Copyright (c) 2014-2015 Sandvine Inc. All rights reserved. 30 #include <atf-c++.hpp> 66 const char *key; in ATF_TEST_CASE_BODY() local 69 key = "key"; in ATF_TEST_CASE_BODY() 73 ATF_REQUIRE(!nvlist_exists(nvl, key)); in ATF_TEST_CASE_BODY() 75 nvlist_add_null(nvl, key); in ATF_TEST_CASE_BODY() 78 ATF_REQUIRE(nvlist_exists(nvl, key)); in ATF_TEST_CASE_BODY() 79 ATF_REQUIRE(nvlist_exists_null(nvl, key)); in ATF_TEST_CASE_BODY() 80 ATF_REQUIRE(nvlist_exists_null(nvl, "key")); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_route.c | 2 * Copyright (c) 2001-2003 65 return (memcmp(s1->index, s2->index, 13)); in sroute_compare() 73 oid->len = sub + 13; in sroute_index_append() 75 oid->subs[sub + i] = s->index[i]; in sroute_index_append() 84 for (i = 0; i < 13 - 1; i++) 85 printf("%u.", r->index[i]); 86 printf("%u proto=%u type=%u", r->index[i], r->proto, r->type); 100 struct sroute key; in mib_sroute_process() local 104 if (dst == NULL || gw == NULL || dst->sa_family != AF_INET || in mib_sroute_process() 105 gw->sa_family != AF_INET) in mib_sroute_process() [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_ht.h | 2 * Copyright 2012-2015 Samy Al Bahra. 54 uint64_t value; member 64 #define CK_HT_KEY_LENGTH ((sizeof(void *) * 8) - CK_MD_VMA_BITS) 65 #define CK_HT_KEY_MASK ((1U << CK_HT_KEY_LENGTH) - 1) 72 uintptr_t key; member 73 uintptr_t value CK_CC_PACKED; 76 uintptr_t key; 77 uintptr_t value; 96 * Hash callback function. First argument is updated to contain a hash value, 97 * second argument is the key, third argument is key length and final argument [all …]
|
/freebsd/usr.sbin/iovctl/ |
H A D | parse.c | 1 /*- 2 * Copyright (c) 2014-2015 Sandvine Inc. 46 report_config_error(const char *key, const ucl_object_t *obj, const char *type) in report_config_error() argument 49 errx(1, "Value '%s' of key '%s' is not of type %s", in report_config_error() 50 ucl_object_tostring(obj), key, type); in report_config_error() 54 * Verifies that the value specified in the config file is a boolean value, and 55 * then adds the value to the configuration. 58 add_bool_config(const char *key, const ucl_object_t *obj, nvlist_t *config) in add_bool_config() argument 63 report_config_error(key, obj, "bool"); in add_bool_config() 65 nvlist_add_bool(config, key, val); in add_bool_config() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfsbootenv/ |
H A D | lzbe_pair.c | 23 * Get or create nvlist. If key is not NULL, get nvlist from bootenv, 27 lzbe_nvlist_get(const char *pool, const char *key, void **ptr) in lzbe_nvlist_get() argument 32 int rv = -1; in lzbe_nvlist_get() 51 if (key != NULL) { in lzbe_nvlist_get() 52 rv = nvlist_lookup_nvlist(nv, key, &nvl); in lzbe_nvlist_get() 74 lzbe_nvlist_set(const char *pool, const char *key, void *ptr) in lzbe_nvlist_set() argument 80 int rv = -1; in lzbe_nvlist_set() 95 if (key != NULL) { in lzbe_nvlist_set() 113 rv = nvlist_add_nvlist(nv, key, ptr); in lzbe_nvlist_set() 179 * Add pair defined by key, type and value into nvlist. [all …]
|
/freebsd/contrib/bearssl/inc/ |
H A D | bearssl_rsa.h | 47 * ## Key Elements 50 * such integers are represented with big-endian unsigned notation: 51 * first byte is the most significant, and the value is positive (so 52 * there is no dedicated "sign bit"). Public and private key structures 53 * thus contain, for each such integer, a pointer to the first value byte 55 * relevant bytes. As a general rule, minimal-length encoding is not 56 * enforced: values may have extra leading bytes of value 0. 60 * - the modulus (`n`); 61 * - the public exponent (`e`). 66 * - the modulus (`n`); [all …]
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_ht.c | 2 * Copyright 2012-2015 Samy Al Bahra. 53 #define CK_HT_BUCKET_MASK (CK_HT_BUCKET_LENGTH - 1) 98 struct ck_ht_map *map = table->map; in ck_ht_stat() 100 st->n_entries = map->n_entries; in ck_ht_stat() 101 st->probe_maximum = map->probe_maximum; in ck_ht_stat() 108 const void *key, in ck_ht_hash() argument 112 table->h(h, key, key_length, table->seed); in ck_ht_hash() 119 uintptr_t key) in ck_ht_hash_direct() argument 122 ck_ht_hash(h, table, &key, sizeof(key)); in ck_ht_hash_direct() 128 const void *key, in ck_ht_hash_wrapper() argument [all …]
|
/freebsd/contrib/wireguard-tools/ |
H A D | ipc-uapi.h | 1 // SPDX-License-Identifier: MIT 3 * Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 23 #include "ipc-uapi-windows.h" 25 #include "ipc-uapi-unix.h" 34 int ret, set_errno = -EPROTO; in userspace_set_device() 37 char *key = NULL, *value; in userspace_set_device() local 39 f = userspace_interface_file(dev->name); in userspace_set_device() 41 return -errno; in userspace_set_device() 44 if (dev->flags & WGDEVICE_HAS_PRIVATE_KEY) { in userspace_set_device() 45 key_to_hex(hex, dev->private_key); in userspace_set_device() [all …]
|
/freebsd/contrib/kyua/utils/config/ |
H A D | nodes.cpp | 68 /// \param node The node to fill. Should be the fresh return value of a 73 node->_dynamic = _dynamic; in copy_into() 76 base_node* new_node = (*iter).second->deep_copy(); in copy_into() 78 node->_children[(*iter).first] = new_node; in copy_into() 90 /// for invoking this twice so that the two key sets are combined if they happen 93 /// \param key Key to this node. 101 const tree_key& key, in combine_children_into() argument 109 if (node->_children.find(name) != node->_children.end()) { in combine_children_into() 117 new_node.reset((*iter1).second->deep_copy()); in combine_children_into() 119 tree_key child_key = key; in combine_children_into() [all …]
|
/freebsd/sbin/zfsbootcfg/ |
H A D | zfsbootcfg.c | 1 /*- 44 add_pair(const char *name, const char *nvlist, const char *key, in add_pair() argument 45 const char *type, const char *value) in add_pair() argument 59 data = __DECONST(void *, value); in add_pair() 61 rv = lzbe_add_pair(nv, key, type, data, size); in add_pair() 65 v = strtoull(value, &end, 0); in add_pair() 69 rv = lzbe_add_pair(nv, key, type, &v, size); in add_pair() 73 v = strtoll(value, &end, 0); in add_pair() 77 rv = lzbe_add_pair(nv, key, type, &v, size); in add_pair() 81 v = strtoul(value, &end, 0); in add_pair() [all …]
|
/freebsd/crypto/heimdal/doc/doxyout/hx509/man/man3/ |
H A D | hx509_env.3 | 1 …"hx509 environment functions" 3 "11 Jan 2012" "Version 1.5.2" "Heimdalx509library" \" -*- nroff -*- 5 hx509 environment functions \- 10 …nt \fBhx509_env_add\fP (hx509_context context, hx509_env *env, const char *key, const char *value)" 13 .RI "int \fBhx509_env_add_binding\fP (hx509_context context, hx509_env *env, const char *key, hx509… 16 .RI "const char * \fBhx509_env_lfind\fP (hx509_context context, hx509_env env, const char *key, siz… 19 .RI "const char * \fBhx509_env_find\fP (hx509_context context, hx509_env env, const char *key)" 22 .RI "hx509_env \fBhx509_env_find_binding\fP (hx509_context context, hx509_env env, const char *key)" 33 … "int hx509_env_add (hx509_context context, hx509_env * env, const char * key, const char * value)" 35 Add a new key/value pair to the hx509_env. 43 \fIkey\fP key to add [all …]
|
/freebsd/secure/usr.bin/openssl/man/ |
H A D | openssl-genpkey.1 | 18 .\" Set up some character translations and predefined strings. \*(-- will 24 .tr \(*W- 27 . ds -- \(*W- 29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch 37 . ds -- \|\(em\| 71 .\" Fear. Run. Save yourself. No user-serviceable parts. 81 . ds #H ((1u-(\\\\n(.fu%2u))*.13m) 97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" 98 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' [all …]
|
/freebsd/secure/lib/libcrypto/man/man3/ |
H A D | EVP_PKEY_CTX_ctrl.3 | 18 .\" Set up some character translations and predefined strings. \*(-- will 24 .tr \(*W- 27 . ds -- \(*W- 29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch 37 . ds -- \|\(em\| 71 .\" Fear. Run. Save yourself. No user-serviceable parts. 81 . ds #H ((1u-(\\\\n(.fu%2u))*.13m) 97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" 98 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' [all …]
|
/freebsd/usr.bin/getconf/ |
H A D | getconf.c | 44 static void do_confstr(const char *name, int key); 45 static void do_sysconf(const char *name, int key); 46 static void do_pathconf(const char *name, int key, const char *path); 52 "usage: getconf -a [pathname]\n" in usage() 53 " getconf [-v prog_env] system_var\n" in usage() 54 " getconf [-v prog_env] path_var pathname\n"); in usage() 62 int c, key, valid; in main() local 69 while ((c = getopt(argc, argv, "av:")) != -1) { in main() 131 if ((valid = find_confstr(name, &key)) != 0) { in main() 133 do_confstr(name, key); in main() [all …]
|
/freebsd/crypto/openssl/doc/man1/ |
H A D | openssl-genpkey.pod.in | 4 {- join("\n", @autowarntext) -} 10 openssl-genpkey - generate a private key 15 [B<-help>] 16 [B<-out> I<filename>] 17 [B<-outform> B<DER>|B<PEM>] 18 [B<-quiet>] 19 [B<-pass> I<arg>] 20 [B<-I<cipher>>] 21 [B<-paramfile> I<file>] 22 [B<-algorithm> I<alg>] [all …]
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | st.c | 2 * Copyright (c) 2004-2006 Voltaire, Inc. All rights reserved. 3 * Copyright (c) 2002-2006 Mellanox Technologies LTD. All rights reserved. 4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 52 st_data_t key; member 79 static inline st_ptr_t st_strhash(void *key) in st_strhash() argument 81 return strhash((const char *)key); in st_strhash() 104 #define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)(((void*)x),((void *)y)) == 0) 106 #define do_hash(key,table) (unsigned int)(*(table)->type->hash)(((void*)key)) argument [all …]
|
/freebsd/contrib/libucl/ |
H A D | README.md | 9 - [Introduction](#introduction) 10 - [Basic structure](#basic-structure) 11 - [Improvements to the json notation](#improvements-to-the-json-notation) 12 - [General syntax sugar](#general-syntax-sugar) 13 - [Automatic arrays creation](#automatic-arrays-creation) 14 - [Named keys hierarchy](#named-keys-hierarchy) 15 - [Convenient numbers and booleans](#convenient-numbers-and-booleans) 16 - [General improvements](#general-improvements) 17 - [Comments](#comments) 18 - [Macros support](#macros-support) [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | EVP_PKEY_CTX_set_hkdf_md.pod | 7 EVP_PKEY_CTX_set_hkdf_mode - 8 HMAC-based Extract-and-Expand key derivation algorithm 21 int EVP_PKEY_CTX_set1_hkdf_key(EVP_PKEY_CTX *pctx, unsigned char *key, 29 The EVP_PKEY_HKDF algorithm implements the HKDF key derivation function. 30 HKDF follows the "extract-then-expand" paradigm, where the KDF logically 32 and "extracts" from it a fixed-length pseudorandom key K. The second stage 33 "expands" the key K into several additional pseudorandom keys (the output 45 The derived key returned will be the result after the expand operation. The 46 intermediate fixed-length pseudorandom key K is not returned. 48 In this mode the digest, key, salt and info values must be set before a key is [all …]
|
H A D | EVP_PKEY_CTX_ctrl.pod | 73 - algorithm specific control operations 82 int cmd, uint64_t value); 84 const char *value); 91 int EVP_PKEY_CTX_set_mac_key(EVP_PKEY_CTX *ctx, const unsigned char *key, 180 hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value, 197 EVP_PKEY_CTX_ctrl() sends a control operation to the context I<ctx>. The key 198 type used must match I<keytype> if it is not -1. The parameter I<optype> is a 203 For I<cmd> = B<EVP_PKEY_CTRL_SET_MAC_KEY>, I<p1> is the length of the MAC key, 204 and I<p2> is the MAC key. This is used by Poly1305, SipHash, HMAC and CMAC. 210 uint64 value as I<p2> to EVP_PKEY_CTX_ctrl(). [all …]
|