| /freebsd/crypto/openssl/crypto/conf/ |
| H A D | conf_lib.c | 13 #include "internal/conf.h" 17 #include <openssl/conf.h> 24 /* Init a 'CONF' structure from an old LHASH */ 26 void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash) in CONF_set_nconf() argument 31 default_CONF_method->init(conf); in CONF_set_nconf() 32 conf->data = hash; in CONF_set_nconf() 36 * The following section contains the "CONF classic" functions, rewritten in 37 * terms of the new CONF interface. 46 LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, in LHASH_OF() 62 ltmp = CONF_load_bio(conf, in, eline); in LHASH_OF() [all …]
|
| H A D | conf_def.c | 10 /* Part of the code in here was originally in conf.c, which is now removed */ 22 #include <openssl/conf.h> 45 static int is_keytype(const CONF *conf, char c, unsigned short type); 46 static char *eat_ws(CONF *conf, char *p); 47 static void trim_ws(CONF *conf, char *start); 48 static char *eat_alpha_numeric(CONF *conf, char *p); 49 static void clear_comments(CONF *conf, char *p); 50 static int str_copy(CONF *conf, char *section, char **to, char *from); 51 static char *scan_quote(CONF *conf, char *p); 52 static char *scan_dquote(CONF *conf, char *p); [all …]
|
| H A D | conf_api.c | 10 /* Part of the code in here was originally in conf.c, which is now removed */ 16 #include <openssl/conf.h> 20 static void value_free_hash(const CONF_VALUE *a, LHASH_OF(CONF_VALUE) *conf); 23 CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section) in _CONF_get_section() argument 27 if (conf == NULL || section == NULL) in _CONF_get_section() 31 return conf->data != NULL ? lh_CONF_VALUE_retrieve(conf->data, &vv) : NULL; in _CONF_get_section() 34 STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, in STACK_OF() 39 v = _CONF_get_section(conf, section); in STACK_OF() 45 int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value) in _CONF_add_string() argument 56 v = lh_CONF_VALUE_insert(conf->data, value); in _CONF_add_string() [all …]
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | ap_config.c | 195 struct hostapd_config *conf; in hostapd_config_defaults() local 218 conf = os_zalloc(sizeof(*conf)); in hostapd_config_defaults() 220 if (conf == NULL || bss == NULL) { in hostapd_config_defaults() 223 os_free(conf); in hostapd_config_defaults() 227 conf->bss = os_calloc(1, sizeof(struct hostapd_bss_config *)); in hostapd_config_defaults() 228 if (conf->bss == NULL) { in hostapd_config_defaults() 229 os_free(conf); in hostapd_config_defaults() 233 conf->bss[0] = bss; in hostapd_config_defaults() 237 os_free(conf->bss); in hostapd_config_defaults() 238 os_free(conf); in hostapd_config_defaults() [all …]
|
| H A D | authsrv.c | 216 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_radius_srv() local 234 srv.client_file = conf->radius_server_clients; in hostapd_setup_radius_srv() 235 srv.auth_port = conf->radius_server_auth_port; in hostapd_setup_radius_srv() 236 srv.acct_port = conf->radius_server_acct_port; in hostapd_setup_radius_srv() 238 srv.ipv6 = conf->radius_server_ipv6; in hostapd_setup_radius_srv() 240 if (conf->radius_server_acct_log) in hostapd_setup_radius_srv() 242 srv.eap_req_id_text = conf->eap_req_id_text; in hostapd_setup_radius_srv() 243 srv.eap_req_id_text_len = conf->eap_req_id_text_len; in hostapd_setup_radius_srv() 244 srv.sqlite_file = conf->eap_user_sqlite; in hostapd_setup_radius_srv() 246 srv.dump_msk_file = conf->dump_msk_file; in hostapd_setup_radius_srv() [all …]
|
| H A D | wpa_auth_ie.c | 28 static int wpa_write_wpa_ie(struct wpa_auth_config *conf, u8 *buf, size_t len) in wpa_write_wpa_ie() argument 41 suite = wpa_cipher_to_suite(WPA_PROTO_WPA, conf->wpa_group); in wpa_write_wpa_ie() 44 conf->wpa_group); in wpa_write_wpa_ie() 53 num_suites = wpa_cipher_put_suites(pos, conf->wpa_pairwise); in wpa_write_wpa_ie() 56 conf->wpa_pairwise); in wpa_write_wpa_ie() 66 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X) { in wpa_write_wpa_ie() 71 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) { in wpa_write_wpa_ie() 79 conf->wpa_key_mgmt); in wpa_write_wpa_ie() 92 static u16 wpa_own_rsn_capab(struct wpa_auth_config *conf, in wpa_own_rsn_capab() argument 97 if (conf->rsn_preauth) in wpa_own_rsn_capab() [all …]
|
| H A D | wpa_auth_glue.c | 53 (hapd->conf->wpa_deny_ptk0_rekey == PTK0_REKEY_ALLOW_NEVER || in hostapd_wpa_auth_config_update() 54 (hapd->conf->wpa_deny_ptk0_rekey == PTK0_REKEY_ALLOW_LOCAL_OK && in hostapd_wpa_auth_config_update() 95 if (hapd->conf->mld_ap) { in hostapd_wpa_auth_config_update() 113 struct hostapd_bss_config *conf, in hostapd_wpa_auth_conf() argument 120 wconf->wpa = conf->wpa; in hostapd_wpa_auth_conf() 122 wconf->assoc_frame_encryption = conf->assoc_frame_encryption; in hostapd_wpa_auth_conf() 123 wconf->pmksa_caching_privacy = conf->pmksa_caching_privacy; in hostapd_wpa_auth_conf() 125 conf->eap_using_authentication_frames; in hostapd_wpa_auth_conf() 127 wconf->extended_key_id = conf->extended_key_id; in hostapd_wpa_auth_conf() 128 wconf->wpa_key_mgmt = conf->wpa_key_mgmt; in hostapd_wpa_auth_conf() [all …]
|
| /freebsd/contrib/bsddialog/lib/ |
| H A D | bsddialog.3 | 67 .Fn bsddialog_backtitle "struct bsddialog_conf *conf" "const char *backtitle" 69 .Fn bsddialog_backtitle_rf "struct bsddialog_conf *conf" "const char *backtitle" 72 .Fa "struct bsddialog_conf *conf" 82 .Fa "struct bsddialog_conf *conf" 95 .Fa "struct bsddialog_conf *conf" 107 .Fa "struct bsddialog_conf *conf" 118 .Fa "struct bsddialog_conf *conf" 131 .Fa "struct bsddialog_conf *conf" 143 .Fn bsddialog_initconf "struct bsddialog_conf *conf" 146 .Fa "struct bsddialog_conf *conf" [all …]
|
| H A D | lib_util.c | 66 * [static] widget_max_height(conf); 67 * [static] widget_max_width(struct bsddialog_conf *conf) 72 * [static] widget_min_height(conf, htext, hnotext, bool buttons); 73 * [static] widget_min_width(conf, wtext, minw, buttons); 84 * f1help_dialog(conf); 85 * draw_borders(conf, win, elev); 86 * update_box(conf, win, y, x, h, w, elev); 312 if (d->conf->button.left1_label != NULL) { in set_buttons() 313 d->bs.label[d->bs.nbuttons] = d->conf->button.left1_label; in set_buttons() 318 if (d->conf->button.left2_label != NULL) { in set_buttons() [all …]
|
| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | osm_prtn_config.c | 128 static inline boolean_t ip_mgroup_pkey_ok(struct part_conf *conf, in ip_mgroup_pkey_ok() argument 138 || mpkey == (conf->p_prtn->pkey | cl_hton16(0x8000))) in ip_mgroup_pkey_ok() 141 OSM_LOG(conf->p_log, OSM_LOG_ERROR, in ip_mgroup_pkey_ok() 145 cl_ntoh16(mpkey), cl_ntoh16(conf->p_prtn->pkey), conf->p_prtn->name); in ip_mgroup_pkey_ok() 149 static inline boolean_t ip_mgroup_rate_ok(struct part_conf *conf, in ip_mgroup_rate_ok() argument 154 if (group->flags.rate == conf->flags.rate) in ip_mgroup_rate_ok() 157 OSM_LOG(conf->p_log, OSM_LOG_ERROR, in ip_mgroup_rate_ok() 162 group->flags.rate, cl_ntoh16(conf->p_prtn->pkey), in ip_mgroup_rate_ok() 163 conf->p_prtn->name, conf->flags.rate); in ip_mgroup_rate_ok() 167 static inline boolean_t ip_mgroup_mtu_ok(struct part_conf *conf, in ip_mgroup_mtu_ok() argument [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | mesh.c | 85 struct mesh_conf *conf; in mesh_config_create() local 88 conf = os_zalloc(sizeof(struct mesh_conf)); in mesh_config_create() 89 if (!conf) in mesh_config_create() 92 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len); in mesh_config_create() 93 conf->meshid_len = ssid->ssid_len; in mesh_config_create() 96 conf->security |= MESH_CONF_SEC_AUTH | in mesh_config_create() 99 conf->security |= MESH_CONF_SEC_NONE; in mesh_config_create() 100 conf->ieee80211w = ssid->ieee80211w; in mesh_config_create() 101 if (conf->ieee80211w == MGMT_FRAME_PROTECTION_DEFAULT) { in mesh_config_create() 103 conf->ieee80211w = wpa_s->conf->pmf; in mesh_config_create() [all …]
|
| H A D | ap.c | 49 struct hostapd_config *conf) in is_chanwidth160_supported() argument 52 if (conf->ieee80211ax) { in is_chanwidth160_supported() 72 struct hostapd_config *conf, in wpas_conf_ap_vht() argument 77 u8 channel = conf->channel; in wpas_conf_ap_vht() 81 if (!conf->secondary_channel) in wpas_conf_ap_vht() 86 hostapd_set_oper_chwidth(conf, ssid->max_oper_chwidth); in wpas_conf_ap_vht() 87 if (hostapd_get_oper_chwidth(conf)) in wpas_conf_ap_vht() 89 hostapd_get_oper_chwidth(conf), in wpas_conf_ap_vht() 90 &conf->op_class, in wpas_conf_ap_vht() 91 &conf->channel); in wpas_conf_ap_vht() [all …]
|
| /freebsd/sys/netgraph/ |
| H A D | ng_patch.c | 53 struct ng_patch_config *conf; member 71 const struct ng_patch_config *conf; in ng_patch_config_getlen() local 73 conf = (const struct ng_patch_config *)(buf - in ng_patch_config_getlen() 76 return (conf->count); in ng_patch_config_getlen() 209 struct ng_patch_config *conf, *newconf; in ng_patch_rcvmsg() local 222 if (privp->conf == NULL) in ng_patch_rcvmsg() 226 NG_PATCH_CONF_SIZE(privp->conf->count), M_WAITOK); in ng_patch_rcvmsg() 231 bcopy(privp->conf, resp->data, in ng_patch_rcvmsg() 232 NG_PATCH_CONF_SIZE(privp->conf->count)); in ng_patch_rcvmsg() 234 conf = (struct ng_patch_config *) resp->data; in ng_patch_rcvmsg() [all …]
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | conf.h.in | 70 typedef int conf_init_func(CONF_IMODULE *md, const CONF *cnf); 81 void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); 82 LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, 85 LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, 88 LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, 90 STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, 92 char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group, 94 long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group, 96 void CONF_free(LHASH_OF(CONF_VALUE) *conf); 98 int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out); [all …]
|
| /freebsd/contrib/ntp/ntpd/ |
| H A D | Makefile.am | 86 man5_MANS= ntp.conf.5 ntp.keys.5 112 compsave.conf \ 113 compsave.conf+ \ 115 psl0save.conf \ 116 psl0save.conf+ \ 117 psl1save.conf \ 118 psl1save.conf+ \ 119 psl2save.conf \ 120 psl2save.conf+ \ 129 complete.conf.in \ [all …]
|
| /freebsd/contrib/unbound/doc/ |
| H A D | unbound.conf.rst | 37 unbound.conf(5) 43 **unbound.conf** 48 **unbound.conf** is used to configure :doc:`unbound(8)</manpages/unbound>`. 51 used to check ``unbound.conf`` prior to usage. 66 is introduced by a :ref:`section clause<unbound.conf.clauses>`. 84 The source distribution contains an extensive :file:`example.conf` file with 89 # unbound.conf(5) config file for unbound(8). 107 .. _unbound.conf.clauses: 114 :ref:`server:<unbound.conf.server>` 117 :ref:`remote-control:<unbound.conf.remote>` [all …]
|
| /freebsd/contrib/mandoc/ |
| H A D | manpath.c | 40 manconf_parse(struct manconf *conf, const char *file, char *pend, char *pbeg) in manconf_parse() argument 45 manpath_parseline(&conf->manpath, pbeg, 'm'); in manconf_parse() 49 manpath_parseline(&conf->manpath, pend, 'M'); in manconf_parse() 53 /* No MANPATH; use man.conf(5) only. */ in manconf_parse() 56 /* Prepend man.conf(5) to MANPATH. */ in manconf_parse() 60 /* Insert man.conf(5) into MANPATH. */ in manconf_parse() 64 /* Append man.conf(5) to MANPATH. */ in manconf_parse() 67 /* MANPATH overrides man.conf(5) completely. */ in manconf_parse() 72 manpath_parseline(&conf->manpath, pbeg, '\0'); in manconf_parse() 76 manconf_file(conf, fil in manconf_parse() 137 manconf_free(struct manconf * conf) manconf_free() argument 152 manconf_file(struct manconf * conf,const char * file,int use_path_from_file) manconf_file() argument 212 manconf_output(struct manoutput * conf,const char * cp,int fromfile) manconf_output() argument [all...] |
| /freebsd/contrib/openresolv/ |
| H A D | resolvconf.8.in | 57 .Xr resolv.conf 5 60 .Pa /etc/resolv.conf . 65 .Pa /etc/resolv.conf . 69 .Xr resolv.conf 5 79 .Pa /etc/resolv.conf 82 .Pa /etc/resolv.conf 100 .Pa resolv.conf 107 .Pa resolv.conf 123 .Pa resolv.conf 126 .Pa resolv.conf [all …]
|
| H A D | resolvconf.conf.5.in | 29 .Nm resolvconf.conf 80 Then any resolv.conf with both a search option starting with foo with a nameserver of 1.2.3.4 124 in their resolv.conf. 137 .Pa /etc/resolv.conf . 149 Example, given this resolv.conf: 164 you would get this resolv.conf instead: 176 Using the same example resolv.conf and changing 180 you would get this resolv.conf instead: 196 .Xr resolv.conf 5 201 .Pa /etc/resolv.conf [all …]
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | NCONF_new_ex.pod | 11 #include <openssl/conf.h> 19 CONF *NCONF_new_ex(OSSL_LIB_CTX *libctx, CONF_METHOD *meth); 20 CONF *NCONF_new(CONF_METHOD *meth); 21 void NCONF_free(CONF *conf); 23 int NCONF_load(CONF *conf, const char *file, long *eline); 24 OSSL_LIB_CTX *NCONF_get0_libctx(const CONF *conf); 26 STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *name); 27 STACK_OF(OPENSSL_CSTRING) *NCONF_get_section_names(const CONF *conf); 31 NCONF_new_ex() creates a new CONF object in heap memory and assigns to 37 NCONF_free() frees the data associated with I<conf> and then frees the I<conf> [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | nan.c | 43 struct cfg80211_nan_conf *conf, in iwl_mld_nan_config() argument 55 cmd.master_pref = conf->master_pref; in iwl_mld_nan_config() 57 if (conf->cluster_id) in iwl_mld_nan_config() 58 memcpy(cmd.cluster_id, conf->cluster_id + 4, in iwl_mld_nan_config() 61 cmd.scan_period = conf->scan_period < 255 ? conf->scan_period : 255; in iwl_mld_nan_config() 63 conf->scan_dwell_time < 255 ? conf->scan_dwell_time : 255; in iwl_mld_nan_config() 65 if (conf->discovery_beacon_interval) in iwl_mld_nan_config() 67 cpu_to_le32(conf->discovery_beacon_interval); in iwl_mld_nan_config() 72 if (conf->enable_dw_notification) in iwl_mld_nan_config() 77 abs(conf->band_cfgs[NL80211_BAND_2GHZ].rssi_close); in iwl_mld_nan_config() [all …]
|
| /freebsd/tools/regression/geom/ConfCmp/ |
| H A D | Makefile | 22 ./${PROG} a1.conf a1.conf 23 ./${PROG} a1.conf a1a.conf 24 if ./${PROG} a1.conf a1b.conf > /dev/null 2>&1 ; then exit 1 ; fi 25 if ./${PROG} a1.conf a1c.conf > /dev/null 2>&1 ; then exit 1 ; fi 26 if ./${PROG} a1.conf a1d.conf > /dev/null 2>&1 ; then exit 1 ; fi 27 ./${PROG} a2.conf a2.conf 28 ./${PROG} a2.conf a2a.conf 29 if ./${PROG} a2.conf a2b.conf > /dev/null 2>&1 ; then exit 1 ; fi 30 if ./${PROG} a2.conf a2c.conf > /dev/null 2>&1 ; then exit 1 ; fi 31 if ./${PROG} a2.conf a2d.conf > /dev/null 2>&1 ; then exit 1 ; fi
|
| /freebsd/crypto/openssl/crypto/ts/ |
| H A D | ts_conf.c | 135 const char *TS_CONF_get_tsa_section(CONF *conf, const char *section) in TS_CONF_get_tsa_section() argument 138 section = NCONF_get_string(conf, BASE_SECTION, ENV_DEFAULT_TSA); in TS_CONF_get_tsa_section() 145 int TS_CONF_set_serial(CONF *conf, const char *section, TS_serial_cb cb, in TS_CONF_set_serial() argument 149 char *serial = NCONF_get_string(conf, section, ENV_SERIAL); in TS_CONF_set_serial() 163 int TS_CONF_set_crypto_device(CONF *conf, const char *section, in TS_CONF_set_crypto_device() argument 169 device = NCONF_get_string(conf, section, ENV_CRYPTO_DEVICE); in TS_CONF_set_crypto_device() 206 int TS_CONF_set_signer_cert(CONF *conf, const char *section, in TS_CONF_set_signer_cert() argument 213 cert = NCONF_get_string(conf, section, ENV_SIGNER_CERT); in TS_CONF_set_signer_cert() 230 int TS_CONF_set_certs(CONF *conf, const char *section, const char *certs, in TS_CONF_set_certs() argument 238 if ((certs = NCONF_get_string(conf, section, ENV_CERTS)) == NULL) in TS_CONF_set_certs() [all …]
|
| /freebsd/share/examples/jails/ |
| H A D | README | 5 $ cp VIMAGE /usr/src/sys/amd64/conf/ 20 Sample 1: jail.conf(5) 23 $ cat jail.xxx.conf >> /etc/jail.conf 24 $ vi /etc/jail.conf 27 # NB: Assumes jail_list="" (meaning ``all jails in jail.conf'') 28 # NB: Assumes rc_conf_files="" (``below rc.conf(5) samples not used'') 31 Sample 2: rc.conf(5) 34 $ cp rc.conf.jails /etc/ 35 $ vi /etc/rc.conf.jails 37 $ sysrc rc_conf_files+=/etc/rc.conf.jails [all …]
|
| /freebsd/sys/contrib/alpine-hal/ |
| H A D | al_hal_udma_config.c | 301 struct al_udma_m2s_pkt_len_conf *conf) in al_udma_m2s_packet_size_cfg_set() argument 308 if (conf->encode_64k_as_zero == AL_TRUE) in al_udma_m2s_packet_size_cfg_set() 311 if (conf->max_pkt_size > max_supported_size) { in al_udma_m2s_packet_size_cfg_set() 314 conf->max_pkt_size, max_supported_size); in al_udma_m2s_packet_size_cfg_set() 319 if (conf->encode_64k_as_zero == AL_TRUE) in al_udma_m2s_packet_size_cfg_set() 325 reg |= conf->max_pkt_size; in al_udma_m2s_packet_size_cfg_set() 345 struct al_udma_m2s_desc_pref_conf *conf) in al_udma_m2s_pref_set() argument 351 reg |= conf->desc_fifo_depth; in al_udma_m2s_pref_set() 356 if (conf->sch_mode == SRR) in al_udma_m2s_pref_set() 358 else if (conf->sch_mode == STRICT) in al_udma_m2s_pref_set() [all …]
|