| /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 | 187 struct hostapd_config *conf; in hostapd_config_defaults() local 210 conf = os_zalloc(sizeof(*conf)); in hostapd_config_defaults() 212 if (conf == NULL || bss == NULL) { in hostapd_config_defaults() 215 os_free(conf); in hostapd_config_defaults() 219 conf->bss = os_calloc(1, sizeof(struct hostapd_bss_config *)); in hostapd_config_defaults() 220 if (conf->bss == NULL) { in hostapd_config_defaults() 221 os_free(conf); in hostapd_config_defaults() 225 conf->bss[0] = bss; in hostapd_config_defaults() 229 os_free(conf->bss); in hostapd_config_defaults() 230 os_free(conf); in hostapd_config_defaults() [all …]
|
| H A D | authsrv.c | 108 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_radius_srv() local 126 srv.client_file = conf->radius_server_clients; in hostapd_setup_radius_srv() 127 srv.auth_port = conf->radius_server_auth_port; in hostapd_setup_radius_srv() 128 srv.acct_port = conf->radius_server_acct_port; in hostapd_setup_radius_srv() 130 srv.ipv6 = conf->radius_server_ipv6; in hostapd_setup_radius_srv() 132 srv.eap_req_id_text = conf->eap_req_id_text; in hostapd_setup_radius_srv() 133 srv.eap_req_id_text_len = conf->eap_req_id_text_len; in hostapd_setup_radius_srv() 134 srv.sqlite_file = conf->eap_user_sqlite; in hostapd_setup_radius_srv() 136 srv.dump_msk_file = conf->dump_msk_file; in hostapd_setup_radius_srv() 139 srv.subscr_remediation_url = conf->subscr_remediation_url; 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 96 if (conf->rsn_preauth) in wpa_own_rsn_capab() [all …]
|
| H A D | hostapd.c | 126 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reconfig_encryption() 138 if (hapd->conf->wmm_enabled < 0) in hostapd_reload_bss() 139 hapd->conf->wmm_enabled = hapd->iconf->ieee80211n | in hostapd_reload_bss() 143 radius_client_reconfig(hapd->radius, hapd->conf->radius); in hostapd_reload_bss() 146 ssid = &hapd->conf->ssid; in hostapd_reload_bss() 153 hostapd_config_clear_wpa_psk(&hapd->conf->ssid.wpa_psk); in hostapd_reload_bss() 155 if (hostapd_setup_wpa_psk(hapd->conf)) { in hostapd_reload_bss() 160 if (hapd->conf->ieee802_1x || hapd->conf->wpa) in hostapd_reload_bss() 161 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss() 163 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss() [all …]
|
| H A D | ieee802_11_shared.c | 46 if (hapd->conf->assoc_sa_query_max_timeout > tu) in hostapd_eid_assoc_comeback_time() 47 timeout = hapd->conf->assoc_sa_query_max_timeout - tu; in hostapd_eid_assoc_comeback_time() 50 if (timeout < hapd->conf->assoc_sa_query_max_timeout) in hostapd_eid_assoc_comeback_time() 54 if (hapd->conf->test_assoc_comeback_type != -1) in hostapd_eid_assoc_comeback_time() 55 type = hapd->conf->test_assoc_comeback_type; in hostapd_eid_assoc_comeback_time() 89 if (hapd->conf->oci_freq_override_saquery_req) { in ieee802_11_send_sa_query_req() 93 hapd->conf->oci_freq_override_saquery_req); in ieee802_11_send_sa_query_req() 95 hapd->conf->oci_freq_override_saquery_req; in ieee802_11_send_sa_query_req() 184 if (hapd->conf->oci_freq_override_saquery_resp) { in ieee802_11_send_sa_query_resp() 188 hapd->conf->oci_freq_override_saquery_resp); in ieee802_11_send_sa_query_resp() [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 | 66 typedef int conf_init_func (CONF_IMODULE *md, const CONF *cnf); 77 void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); 78 LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, 81 LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, 84 LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, 86 STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, 88 char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group, 90 long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group, 92 void CONF_free(LHASH_OF(CONF_VALUE) *conf); 94 int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out); [all …]
|
| H A D | conf.h | 3 * Generated by Makefile from include/openssl/conf.h.in 103 typedef int conf_init_func (CONF_IMODULE *md, const CONF *cnf); 114 void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); 115 LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, 118 LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, 121 LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, 123 STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, 125 char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group, 127 long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group, 129 void CONF_free(LHASH_OF(CONF_VALUE) *conf); [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>`. 57 used to check ``unbound.conf`` prior to usage. 63 Copy this to :file:`/etc/unbound/unbound.conf` and start the server with: 67 $ unbound -c /etc/unbound/unbound.conf 77 The source distribution contains an extensive :file:`example.conf` file with 82 # unbound.conf(5) config file for unbound(8). 110 .. _unbound.conf.include: 116 If also using :ref:`chroot<unbound.conf.chroot>`, using full path names for [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/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/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/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 …]
|
| /freebsd/contrib/openresolv/ |
| H A D | resolvconf.conf.5.in | 29 .Nm resolvconf.conf 106 in their resolv.conf. 126 Example, given this resolv.conf: 139 you would get this resolv.conf instead: 150 Using the same example resolv.conf and changing 154 you would get this resolv.conf instead: 169 .Xr resolv.conf 5 174 .Pa /etc/resolv.conf 178 .Xr resolv.conf 5 . 180 When set to YES the latest resolv.conf is written to [all …]
|