Home
last modified time | relevance | path

Searched refs:pctx (Results 1 – 25 of 174) sorted by relevance

1234567

/netbsd-src/external/mpl/bind/dist/lib/isccfg/
H A Dparser.c80 #define TOKEN_STRING(pctx) (pctx->token.value.as_textregion.base)
94 cfg_obj_destroy(pctx, &(obj)); \
102 free_tuple(cfg_parser_t *pctx, cfg_obj_t *obj);
105 parse_list(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
108 print_list(cfg_printer_t *pctx, const cfg_obj_t *obj);
111 free_list(cfg_parser_t *pctx, cfg_obj_t *obj);
114 create_listelt(cfg_parser_t *pctx, cfg_listelt_t **eltp);
117 create_string(cfg_parser_t *pctx, const char *contents, const cfg_type_t *type,
121 free_string(cfg_parser_t *pctx, cfg_obj_
81 TOKEN_STRING(pctx) global() argument
189 cfg_print_obj(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_obj() argument
197 cfg_print_chars(cfg_printer_t * pctx,const char * text,int len) cfg_print_chars() argument
205 print_open(cfg_printer_t * pctx) print_open() argument
215 cfg_print_indent(cfg_printer_t * pctx) cfg_print_indent() argument
228 print_close(cfg_printer_t * pctx) print_close() argument
237 cfg_parse_obj(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_obj() argument
266 cfg_printer_t pctx; cfg_printx() local
281 cfg_create_tuple(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_create_tuple() argument
316 cfg_parse_tuple(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_tuple() argument
343 cfg_print_tuple(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_tuple() argument
366 cfg_doc_tuple(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_tuple() argument
386 free_tuple(cfg_parser_t * pctx,cfg_obj_t * obj) free_tuple() argument
429 cfg_parse_special(cfg_parser_t * pctx,int special) cfg_parse_special() argument
455 parse_semicolon(cfg_parser_t * pctx) parse_semicolon() argument
475 parse_eof(cfg_parser_t * pctx) parse_eof() argument
499 cfg_parser_t *pctx; cfg_parser_create() local
559 cfg_parser_setflags(cfg_parser_t * pctx,unsigned int flags,bool turn_on) cfg_parser_setflags() argument
570 parser_openfile(cfg_parser_t * pctx,const char * filename) parser_openfile() argument
594 cfg_parser_setcallback(cfg_parser_t * pctx,cfg_parsecallback_t callback,void * arg) cfg_parser_setcallback() argument
603 cfg_parser_reset(cfg_parser_t * pctx) cfg_parser_reset() argument
622 parse2(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse2() argument
654 cfg_parse_file(cfg_parser_t * pctx,const char * filename,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_file() argument
679 cfg_parse_buffer(cfg_parser_t * pctx,isc_buffer_t * buffer,const char * file,unsigned int line,const cfg_type_t * type,unsigned int flags,cfg_obj_t ** ret) cfg_parse_buffer() argument
717 cfg_parser_t *pctx; cfg_parser_destroy() local
740 cfg_parse_void(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_void() argument
750 cfg_print_void(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_void() argument
759 cfg_doc_void(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_void() argument
780 cfg_parse_percentage(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_percentage() argument
813 cfg_print_percentage(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_percentage() argument
845 cfg_parse_fixedpoint(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_fixedpoint() argument
895 cfg_print_fixedpoint(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_fixedpoint() argument
928 cfg_parse_uint32(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_uint32() argument
952 cfg_print_cstr(cfg_printer_t * pctx,const char * s) cfg_print_cstr() argument
957 cfg_print_rawuint(cfg_printer_t * pctx,unsigned int u) cfg_print_rawuint() argument
965 cfg_print_uint32(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_uint32() argument
1001 cfg_print_uint64(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_uint64() argument
1034 cfg_print_duration(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_duration() argument
1120 cfg_print_duration_or_unlimited(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_duration_or_unlimited() argument
1148 parse_duration(cfg_parser_t * pctx,cfg_obj_t ** ret) parse_duration() argument
1177 cfg_parse_duration(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_duration() argument
1198 cfg_parse_duration_or_unlimited(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_duration_or_unlimited() argument
1265 create_string(cfg_parser_t * pctx,const char * contents,const cfg_type_t * type,cfg_obj_t ** ret) create_string() argument
1288 cfg_parse_qstring(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_qstring() argument
1308 parse_ustring(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_ustring() argument
1326 cfg_parse_astring(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_astring() argument
1342 cfg_parse_sstring(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_sstring() argument
1358 parse_btext(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_btext() argument
1375 print_btext(cfg_printer_t * pctx,const cfg_obj_t * obj) print_btext() argument
1390 doc_btext(cfg_printer_t * pctx,const cfg_type_t * type) doc_btext() argument
1412 check_enum(cfg_parser_t * pctx,cfg_obj_t * obj,const char * const * enums) check_enum() argument
1423 cfg_parse_enum(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_enum() argument
1441 cfg_doc_enum(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_enum() argument
1458 cfg_parse_enum_or_other(cfg_parser_t * pctx,const cfg_type_t * enumtype,const cfg_type_t * othertype,cfg_obj_t ** ret) cfg_parse_enum_or_other() argument
1474 cfg_doc_enum_or_other(cfg_printer_t * pctx,const cfg_type_t * enumtype,const cfg_type_t * othertype) cfg_doc_enum_or_other() argument
1508 cfg_print_ustring(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_ustring() argument
1516 print_qstring(cfg_printer_t * pctx,const cfg_obj_t * obj) print_qstring() argument
1528 print_sstring(cfg_printer_t * pctx,const cfg_obj_t * obj) print_sstring() argument
1542 free_string(cfg_parser_t * pctx,cfg_obj_t * obj) free_string() argument
1619 parse_geoip(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_geoip() argument
1654 print_geoip(cfg_printer_t * pctx,const cfg_obj_t * obj) print_geoip() argument
1664 doc_geoip(cfg_printer_t * pctx,const cfg_type_t * type) doc_geoip() argument
1680 parse_addrmatchelt(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_addrmatchelt() argument
1747 print_negated(cfg_printer_t * pctx,const cfg_obj_t * obj) print_negated() argument
1779 parse_optional_btext(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_optional_btext() argument
1796 print_optional_btext(cfg_printer_t * pctx,const cfg_obj_t * obj) print_optional_btext() argument
1808 doc_optional_btext(cfg_printer_t * pctx,const cfg_type_t * type) doc_optional_btext() argument
1838 cfg_parse_boolean(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_boolean() argument
1885 cfg_print_boolean(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_boolean() argument
1905 cfg_create_list(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** obj) cfg_create_list() argument
1919 create_listelt(cfg_parser_t * pctx,cfg_listelt_t ** eltp) create_listelt() argument
1930 free_listelt(cfg_parser_t * pctx,cfg_listelt_t * elt) free_listelt() argument
1938 free_list(cfg_parser_t * pctx,cfg_obj_t * obj) free_list() argument
1947 cfg_parse_listelt(cfg_parser_t * pctx,const cfg_type_t * elttype,cfg_listelt_t ** ret) cfg_parse_listelt() argument
1979 parse_list(cfg_parser_t * pctx,const cfg_type_t * listtype,cfg_obj_t ** ret) parse_list() argument
2011 print_list(cfg_printer_t * pctx,const cfg_obj_t * obj) print_list() argument
2030 cfg_parse_bracketed_list(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_bracketed_list() argument
2046 cfg_print_bracketed_list(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_bracketed_list() argument
2056 cfg_doc_bracketed_list(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_bracketed_list() argument
2071 cfg_parse_spacelist(cfg_parser_t * pctx,const cfg_type_t * listtype,cfg_obj_t ** ret) cfg_parse_spacelist() argument
2106 cfg_print_spacelist(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_spacelist() argument
2189 cfg_parse_mapbody(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_mapbody() argument
2391 parse_symtab_elt(cfg_parser_t * pctx,const char * name,cfg_type_t * elttype,isc_symtab_t * symtab,bool callback) parse_symtab_elt() argument
2416 cfg_parse_map(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_map() argument
2434 parse_any_named_map(cfg_parser_t * pctx,cfg_type_t * nametype,const cfg_type_t * type,cfg_obj_t ** ret) parse_any_named_map() argument
2461 cfg_parse_named_map(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_named_map() argument
2471 cfg_parse_addressed_map(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_addressed_map() argument
2481 cfg_parse_netprefix_map(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_netprefix_map() argument
2487 print_symval(cfg_printer_t * pctx,const char * name,cfg_obj_t * obj) print_symval() argument
2504 cfg_print_mapbody(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_mapbody() argument
2560 cfg_print_clauseflags(cfg_printer_t * pctx,unsigned int flags) cfg_print_clauseflags() argument
2577 cfg_doc_mapbody(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_mapbody() argument
2608 cfg_print_map(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_map() argument
2622 cfg_doc_map(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_map() argument
2762 parse_token(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_token() argument
2803 parse_unsupported(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_unsupported() argument
2858 token_addr(cfg_parser_t * pctx,unsigned int flags,isc_netaddr_t * na) token_addr() argument
2930 cfg_parse_rawaddr(cfg_parser_t * pctx,unsigned int flags,isc_netaddr_t * na) cfg_parse_rawaddr() argument
2966 cfg_lookingat_netaddr(cfg_parser_t * pctx,unsigned int flags) cfg_lookingat_netaddr() argument
2977 cfg_parse_rawport(cfg_parser_t * pctx,unsigned int flags,in_port_t * port) cfg_parse_rawport() argument
3009 cfg_print_rawaddr(cfg_printer_t * pctx,const isc_netaddr_t * na) cfg_print_rawaddr() argument
3033 parse_netaddr(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_netaddr() argument
3051 cfg_doc_netaddr(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_netaddr() argument
3104 cfg_parse_netprefix(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_netprefix() argument
3180 print_netprefix(cfg_printer_t * pctx,const cfg_obj_t * obj) print_netprefix() argument
3210 parse_sockaddrsub(cfg_parser_t * pctx,const cfg_type_t * type,int flags,cfg_obj_t ** ret) parse_sockaddrsub() argument
3289 cfg_parse_sockaddr(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_sockaddr() argument
3303 cfg_print_sockaddr(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_sockaddr() argument
3326 cfg_doc_sockaddr(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_sockaddr() argument
3378 cfg_gettoken(cfg_parser_t * pctx,int options) cfg_gettoken() argument
3438 cfg_ungettoken(cfg_parser_t * pctx) cfg_ungettoken() argument
3449 cfg_peektoken(cfg_parser_t * pctx,int options) cfg_peektoken() argument
3465 cfg_getstringtoken(cfg_parser_t * pctx) cfg_getstringtoken() argument
3483 cfg_parser_error(cfg_parser_t * pctx,unsigned int flags,const char * fmt,...) cfg_parser_error() argument
3496 cfg_parser_warning(cfg_parser_t * pctx,unsigned int flags,const char * fmt,...) cfg_parser_warning() argument
3512 have_current_file(cfg_parser_t * pctx) have_current_file() argument
3527 current_file(cfg_parser_t * pctx) current_file() argument
3547 parser_complain(cfg_parser_t * pctx,bool is_warning,unsigned int flags,const char * format,va_list args) parser_complain() argument
3653 cfg_create_obj(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_create_obj() argument
3678 cfg_parser_t *pctx = (cfg_parser_t *)userarg; map_symtabitem_destroy() local
3687 create_map(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) create_map() argument
3709 free_map(cfg_parser_t * pctx,cfg_obj_t * obj) free_map() argument
3726 cfg_obj_destroy(cfg_parser_t * pctx,cfg_obj_t ** objp) cfg_obj_destroy() argument
3750 free_noop(cfg_parser_t * pctx,cfg_obj_t * obj) free_noop() argument
3756 cfg_doc_obj(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_obj() argument
3764 cfg_doc_terminal(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_terminal() argument
3777 cfg_printer_t pctx; cfg_print_grammar() local
3787 cfg_parser_mapadd(cfg_parser_t * pctx,cfg_obj_t * mapobj,cfg_obj_t * obj,const char * clausename) cfg_parser_mapadd() argument
[all...]
H A Dnamedconf.c36 #define TOKEN_STRING(pctx) (pctx->token.value.as_textregion.base)
50 cfg_obj_destroy(pctx, &(obj)); \
58 parse_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
61 parse_optional_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type,
65 parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
67 print_updatepolicy(cfg_printer_t *pctx, const cfg_obj_t *obj);
70 doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type);
73 print_keyvalue(cfg_printer_t *pctx, const cfg_obj_t *obj);
76 doc_keyvalue(cfg_printer_t *pctx, cons
37 TOKEN_STRING(pctx) global() argument
317 parse_matchtype(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_matchtype() argument
333 parse_matchname(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_matchname() argument
350 doc_matchname(cfg_printer_t * pctx,const cfg_type_t * type) doc_matchname() argument
406 parse_updatepolicy(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_updatepolicy() argument
439 print_updatepolicy(cfg_printer_t * pctx,const cfg_obj_t * obj) print_updatepolicy() argument
448 doc_updatepolicy(cfg_printer_t * pctx,const cfg_type_t * type) doc_updatepolicy() argument
507 parse_maxduration(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_maxduration() argument
512 doc_maxduration(cfg_printer_t * pctx,const cfg_type_t * type) doc_maxduration() argument
546 parse_optional_enum(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_optional_enum() argument
552 doc_optional_enum(cfg_printer_t * pctx,const cfg_type_t * type) doc_optional_enum() argument
774 parse_zonestat(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_zonestat() argument
778 doc_zonestat(cfg_printer_t * pctx,const cfg_type_t * type) doc_zonestat() argument
878 print_none(cfg_printer_t * pctx,const cfg_obj_t * obj) print_none() argument
890 parse_qstringornone(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_qstringornone() argument
907 doc_qstringornone(cfg_printer_t * pctx,const cfg_type_t * type) doc_qstringornone() argument
924 print_auto(cfg_printer_t * pctx,const cfg_obj_t * obj) print_auto() argument
933 parse_boolorauto(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_boolorauto() argument
949 print_boolorauto(cfg_printer_t * pctx,const cfg_obj_t * obj) print_boolorauto() argument
960 doc_boolorauto(cfg_printer_t * pctx,const cfg_type_t * type) doc_boolorauto() argument
974 print_hostname(cfg_printer_t * pctx,const cfg_obj_t * obj) print_hostname() argument
988 parse_serverid(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_serverid() argument
1012 doc_serverid(cfg_printer_t * pctx,const cfg_type_t * type) doc_serverid() argument
1024 print_porttuple(cfg_printer_t * pctx,const cfg_obj_t * obj) print_porttuple() argument
1038 parse_port(cfg_parser_t * pctx,cfg_obj_t ** ret) parse_port() argument
1053 parse_portrange(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_portrange() argument
1524 parse_dtout(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_dtout() argument
1588 print_dtout(cfg_printer_t * pctx,const cfg_obj_t * obj) print_dtout() argument
1606 doc_dtout(cfg_printer_t * pctx,const cfg_type_t * type) doc_dtout() argument
1652 doc_rpz_policy(cfg_printer_t * pctx,const cfg_type_t * type) doc_rpz_policy() argument
1667 doc_rpz_cname(cfg_printer_t * pctx,const cfg_type_t * type) doc_rpz_cname() argument
1677 cfg_parse_rpz_policy(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_rpz_policy() argument
1710 cfg_parse_kv_tuple(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) cfg_parse_kv_tuple() argument
1765 cfg_print_kv_tuple(cfg_printer_t * pctx,const cfg_obj_t * obj) cfg_print_kv_tuple() argument
1786 cfg_doc_kv_tuple(cfg_printer_t * pctx,const cfg_type_t * type) cfg_doc_kv_tuple() argument
1949 parse_optional_uint32(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_optional_uint32() argument
1965 doc_optional_uint32(cfg_printer_t * pctx,const cfg_type_t * type) doc_optional_uint32() argument
2008 parse_staleanswerclienttimeout(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_staleanswerclienttimeout() argument
2014 doc_staleanswerclienttimeout(cfg_printer_t * pctx,const cfg_type_t * type) doc_staleanswerclienttimeout() argument
2584 parse_printtime(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_printtime() argument
2588 doc_printtime(cfg_printer_t * pctx,const cfg_type_t * type) doc_printtime() argument
2702 parse_sizeval(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_sizeval() argument
2728 parse_sizeval_percent(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_sizeval_percent() argument
2766 doc_sizeval_percent(cfg_printer_t * pctx,const cfg_type_t * type) doc_sizeval_percent() argument
2788 parse_size(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_size() argument
2793 doc_size(cfg_printer_t * pctx,const cfg_type_t * type) doc_size() argument
2825 parse_size_or_percent(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_size_or_percent() argument
2832 doc_parse_size_or_percent(cfg_printer_t * pctx,const cfg_type_t * type) doc_parse_size_or_percent() argument
2852 parse_ixfrratio(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_ixfrratio() argument
2857 doc_ixfrratio(cfg_printer_t * pctx,const cfg_type_t * type) doc_ixfrratio() argument
2873 parse_maybe_optional_keyvalue(cfg_parser_t * pctx,const cfg_type_t * type,bool optional,cfg_obj_t ** ret) parse_maybe_optional_keyvalue() argument
2902 parse_keyvalue(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_keyvalue() argument
2907 parse_optional_keyvalue(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_optional_keyvalue() argument
2913 print_keyvalue(cfg_printer_t * pctx,const cfg_obj_t * obj) print_keyvalue() argument
2921 doc_keyvalue(cfg_printer_t * pctx,const cfg_type_t * type) doc_keyvalue() argument
2929 doc_optional_keyvalue(cfg_printer_t * pctx,const cfg_type_t * type) doc_optional_keyvalue() argument
2941 parse_dialup_type(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_dialup_type() argument
2945 doc_dialup_type(cfg_printer_t * pctx,const cfg_type_t * type) doc_dialup_type() argument
2955 parse_notify_type(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_notify_type() argument
2959 doc_notify_type(cfg_printer_t * pctx,const cfg_type_t * type) doc_notify_type() argument
2969 parse_minimal(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_minimal() argument
2973 doc_minimal(cfg_printer_t * pctx,const cfg_type_t * type) doc_minimal() argument
2984 parse_ixfrdiff_type(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_ixfrdiff_type() argument
2989 doc_ixfrdiff_type(cfg_printer_t * pctx,const cfg_type_t * type) doc_ixfrdiff_type() argument
3105 doc_optional_bracketed_list(cfg_printer_t * pctx,const cfg_type_t * type) doc_optional_bracketed_list() argument
3148 parse_optional_class(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_optional_class() argument
3163 doc_optional_class(cfg_printer_t * pctx,const cfg_type_t * type) doc_optional_class() argument
3176 parse_querysource(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_querysource() argument
3266 print_querysource(cfg_printer_t * pctx,const cfg_obj_t * obj) print_querysource() argument
3280 doc_querysource(cfg_printer_t * pctx,const cfg_type_t * type) doc_querysource() argument
3330 parse_server_key_kludge(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_server_key_kludge() argument
3371 parse_optional_facility(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_optional_facility() argument
3389 doc_optional_facility(cfg_printer_t * pctx,const cfg_type_t * type) doc_optional_facility() argument
3412 parse_logseverity(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_logseverity() argument
3452 parse_logversions(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_logversions() argument
3457 doc_logversions(cfg_printer_t * pctx,const cfg_type_t * type) doc_logversions() argument
3480 parse_logfile(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_logfile() argument
3540 print_logfile(cfg_printer_t * pctx,const cfg_obj_t * obj) print_logfile() argument
3557 doc_logfile(cfg_printer_t * pctx,const cfg_type_t * type) doc_logfile() argument
3666 doc_sockaddrnameport(cfg_printer_t * pctx,const cfg_type_t * type) doc_sockaddrnameport() argument
3684 parse_sockaddrnameport(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_sockaddrnameport() argument
3758 doc_remoteselement(cfg_printer_t * pctx,const cfg_type_t * type) doc_remoteselement() argument
3774 parse_remoteselement(cfg_parser_t * pctx,const cfg_type_t * type,cfg_obj_t ** ret) parse_remoteselement() argument
3850 cfg_printer_t pctx; cfg_print_zonegrammar() local
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isccfg/
H A Dparser.c81 #define TOKEN_STRING(pctx) (pctx->token.value.as_textregion.base) argument
95 cfg_obj_destroy(pctx, &(obj)); \
103 free_tuple(cfg_parser_t *pctx, cfg_obj_t *obj);
106 parse_list(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
109 print_list(cfg_printer_t *pctx, const cfg_obj_t *obj);
112 free_list(cfg_parser_t *pctx, cfg_obj_t *obj);
115 create_listelt(cfg_parser_t *pctx, cfg_listelt_t **eltp);
118 create_string(cfg_parser_t *pctx, const char *contents, const cfg_type_t *type,
122 free_string(cfg_parser_t *pctx, cfg_obj_t *obj);
125 create_map(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **objp);
[all …]
H A Dnamedconf.c38 #define TOKEN_STRING(pctx) (pctx->token.value.as_textregion.base) argument
52 cfg_obj_destroy(pctx, &(obj)); \
60 parse_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
63 parse_optional_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type,
67 parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
69 print_updatepolicy(cfg_printer_t *pctx, const cfg_obj_t *obj);
72 doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type);
75 print_keyvalue(cfg_printer_t *pctx, const cfg_obj_t *obj);
78 doc_keyvalue(cfg_printer_t *pctx, const cfg_type_t *type);
81 doc_optional_keyvalue(cfg_printer_t *pctx, const cfg_type_t *type);
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A Dm_sigver.c39 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in do_sigver_init() argument
64 if (ctx->pctx == NULL) { in do_sigver_init()
67 ctx->pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, props); in do_sigver_init()
69 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); in do_sigver_init()
71 if (ctx->pctx == NULL) in do_sigver_init()
74 locpctx = ctx->pctx; in do_sigver_init()
213 if (pctx != NULL) in do_sigver_init()
214 *pctx = locpctx; in do_sigver_init()
304 if (ctx->pctx->pmeth == NULL) { in do_sigver_init()
309 if (!(ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM)) { in do_sigver_init()
[all …]
H A Dp_seal.c27 EVP_PKEY_CTX *pctx = NULL; in EVP_SealInit() local
60 pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pubk[i], NULL); in EVP_SealInit()
61 if (pctx == NULL) { in EVP_SealInit()
66 if (EVP_PKEY_encrypt_init(pctx) <= 0 in EVP_SealInit()
67 || EVP_PKEY_encrypt(pctx, ek[i], &keylen, key, keylen) <= 0) in EVP_SealInit()
70 EVP_PKEY_CTX_free(pctx); in EVP_SealInit()
72 pctx = NULL; in EVP_SealInit()
75 EVP_PKEY_CTX_free(pctx); in EVP_SealInit()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A Dm_sigver.c24 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in do_sigver_init() argument
28 if (ctx->pctx == NULL) in do_sigver_init()
29 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); in do_sigver_init()
30 if (ctx->pctx == NULL) in do_sigver_init()
33 if (!(ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM)) { in do_sigver_init()
48 if (ctx->pctx->pmeth->verifyctx_init) { in do_sigver_init()
49 if (ctx->pctx->pmeth->verifyctx_init(ctx->pctx, ctx) <= 0) in do_sigver_init()
51 ctx->pctx->operation = EVP_PKEY_OP_VERIFYCTX; in do_sigver_init()
52 } else if (ctx->pctx->pmeth->digestverify != 0) { in do_sigver_init()
53 ctx->pctx->operation = EVP_PKEY_OP_VERIFY; in do_sigver_init()
[all …]
/netbsd-src/external/mpl/bind/dist/lib/isccfg/include/isccfg/
H A Dgrammar.h192 cfg_parser_t *pctx; member
334 cfg_gettoken(cfg_parser_t *pctx, int options);
337 cfg_peektoken(cfg_parser_t *pctx, int options);
340 cfg_ungettoken(cfg_parser_t *pctx);
345 cfg_create_obj(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **objp);
348 cfg_print_rawuint(cfg_printer_t *pctx, unsigned int u);
351 cfg_parse_uint32(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
354 cfg_print_uint32(cfg_printer_t *pctx, const cfg_obj_t *obj);
357 cfg_print_uint64(cfg_printer_t *pctx, const cfg_obj_t *obj);
360 cfg_parse_qstring(cfg_parser_t *pctx, cons
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isccfg/include/isccfg/
H A Dgrammar.h218 cfg_parser_t *pctx; member
356 cfg_gettoken(cfg_parser_t *pctx, int options);
359 cfg_peektoken(cfg_parser_t *pctx, int options);
362 cfg_ungettoken(cfg_parser_t *pctx);
367 cfg_create_obj(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **objp);
370 cfg_print_rawuint(cfg_printer_t *pctx, unsigned int u);
373 cfg_parse_uint32(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
376 cfg_print_uint32(cfg_printer_t *pctx, const cfg_obj_t *obj);
379 cfg_print_uint64(cfg_printer_t *pctx, const cfg_obj_t *obj);
382 cfg_parse_qstring(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret);
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dpkey_meth_kdf_test.c21 EVP_PKEY_CTX *pctx; in test_kdf_tls1_prf() local
24 pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_TLS1_PRF, NULL); in test_kdf_tls1_prf()
26 if (EVP_PKEY_derive_init(pctx) <= 0) { in test_kdf_tls1_prf()
30 if (EVP_PKEY_CTX_set_tls1_prf_md(pctx, EVP_sha256()) <= 0) { in test_kdf_tls1_prf()
34 if (EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, "secret", 6) <= 0) { in test_kdf_tls1_prf()
38 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, "seed", 4) <= 0) { in test_kdf_tls1_prf()
42 if (EVP_PKEY_derive(pctx, out, &outlen) <= 0) { in test_kdf_tls1_prf()
56 EVP_PKEY_CTX_free(pctx); in test_kdf_tls1_prf()
62 EVP_PKEY_CTX *pctx; in test_kdf_hkdf() local
65 pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_HKDF, NULL); in test_kdf_hkdf()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dpkey_meth_kdf_test.c22 EVP_PKEY_CTX *pctx; in test_kdf_tls1_prf() local
26 if ((pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_TLS1_PRF, NULL)) == NULL) { in test_kdf_tls1_prf()
30 if (EVP_PKEY_derive_init(pctx) <= 0) { in test_kdf_tls1_prf()
34 if (EVP_PKEY_CTX_set_tls1_prf_md(pctx, EVP_sha256()) <= 0) { in test_kdf_tls1_prf()
38 if (EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, in test_kdf_tls1_prf()
44 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, in test_kdf_tls1_prf()
50 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, in test_kdf_tls1_prf()
55 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, in test_kdf_tls1_prf()
61 if (EVP_PKEY_derive(pctx, out, &outlen) <= 0) { in test_kdf_tls1_prf()
77 EVP_PKEY_CTX_free(pctx); in test_kdf_tls1_prf()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Dkdf.h37 # define EVP_PKEY_CTX_set_tls1_prf_md(pctx, md) \ argument
38 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \
41 # define EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, sec, seclen) \ argument
42 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \
45 # define EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, seed, seedlen) \ argument
46 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \
49 # define EVP_PKEY_CTX_set_hkdf_md(pctx, md) \ argument
50 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \
53 # define EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, saltlen) \ argument
54 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/siphash/
H A Dsiphash_pmeth.c29 SIPHASH_PKEY_CTX *pctx; in pkey_siphash_init() local
31 if ((pctx = OPENSSL_zalloc(sizeof(*pctx))) == NULL) { in pkey_siphash_init()
35 pctx->ktmp.type = V_ASN1_OCTET_STRING; in pkey_siphash_init()
37 EVP_PKEY_CTX_set_data(ctx, pctx); in pkey_siphash_init()
44 SIPHASH_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); in pkey_siphash_cleanup() local
46 if (pctx != NULL) { in pkey_siphash_cleanup()
47 OPENSSL_clear_free(pctx->ktmp.data, pctx->ktmp.length); in pkey_siphash_cleanup()
48 OPENSSL_clear_free(pctx, sizeof(*pctx)); in pkey_siphash_cleanup()
75 SIPHASH_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); in pkey_siphash_keygen() local
77 if (ASN1_STRING_get0_data(&pctx->ktmp) == NULL) in pkey_siphash_keygen()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/poly1305/
H A Dpoly1305_pmeth.c29 POLY1305_PKEY_CTX *pctx; in pkey_poly1305_init() local
31 if ((pctx = OPENSSL_zalloc(sizeof(*pctx))) == NULL) { in pkey_poly1305_init()
35 pctx->ktmp.type = V_ASN1_OCTET_STRING; in pkey_poly1305_init()
37 EVP_PKEY_CTX_set_data(ctx, pctx); in pkey_poly1305_init()
44 POLY1305_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); in pkey_poly1305_cleanup() local
46 if (pctx != NULL) { in pkey_poly1305_cleanup()
47 OPENSSL_clear_free(pctx->ktmp.data, pctx->ktmp.length); in pkey_poly1305_cleanup()
48 OPENSSL_clear_free(pctx, sizeof(*pctx)); in pkey_poly1305_cleanup()
75 POLY1305_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); in pkey_poly1305_keygen() local
77 if (ASN1_STRING_get0_data(&pctx->ktmp) == NULL) in pkey_poly1305_keygen()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/cms/
H A Dcms_ec.c23 EVP_PKEY_CTX *pctx = NULL; in pkey_type2param() local
48 pctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", propq); in pkey_type2param()
49 if (pctx == NULL || EVP_PKEY_paramgen_init(pctx) <= 0) in pkey_type2param()
52 || EVP_PKEY_CTX_set_group_name(pctx, groupname) <= 0) { in pkey_type2param()
56 if (EVP_PKEY_paramgen(pctx, &pkey) <= 0) in pkey_type2param()
58 EVP_PKEY_CTX_free(pctx); in pkey_type2param()
67 EVP_PKEY_CTX_free(pctx); in pkey_type2param()
72 static int ecdh_cms_set_peerkey(EVP_PKEY_CTX *pctx, in ecdh_cms_set_peerkey() argument
91 pk = EVP_PKEY_CTX_get0_pkey(pctx); in ecdh_cms_set_peerkey()
102 EVP_PKEY_CTX_get0_libctx(pctx), in ecdh_cms_set_peerkey()
[all …]
H A Dcms_dh.c19 static int dh_cms_set_peerkey(EVP_PKEY_CTX *pctx, in dh_cms_set_peerkey() argument
40 pk = EVP_PKEY_CTX_get0_pkey(pctx); in dh_cms_set_peerkey()
70 if (EVP_PKEY_derive_set_peer(pctx, pkpeer) > 0) in dh_cms_set_peerkey()
80 static int dh_cms_set_shared_info(EVP_PKEY_CTX *pctx, CMS_RecipientInfo *ri) in dh_cms_set_shared_info() argument
105 if (EVP_PKEY_CTX_set_dh_kdf_type(pctx, EVP_PKEY_DH_KDF_X9_42) <= 0 in dh_cms_set_shared_info()
106 || EVP_PKEY_CTX_set_dh_kdf_md(pctx, EVP_sha1()) <= 0) in dh_cms_set_shared_info()
124 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in dh_cms_set_shared_info()
134 if (EVP_PKEY_CTX_set_dh_kdf_outlen(pctx, keylen) <= 0) in dh_cms_set_shared_info()
137 if (EVP_PKEY_CTX_set0_dh_kdf_oid(pctx, in dh_cms_set_shared_info()
149 if (EVP_PKEY_CTX_set0_dh_kdf_ukm(pctx, dukm, dukmlen) <= 0) in dh_cms_set_shared_info()
[all …]
H A Dcms_kari.c165 EVP_PKEY_CTX *pctx; in CMS_RecipientInfo_kari_set0_pkey_and_peer() local
168 EVP_PKEY_CTX_free(kari->pctx); in CMS_RecipientInfo_kari_set0_pkey_and_peer()
169 kari->pctx = NULL; in CMS_RecipientInfo_kari_set0_pkey_and_peer()
173 pctx = EVP_PKEY_CTX_new_from_pkey(ossl_cms_ctx_get0_libctx(kari->cms_ctx), in CMS_RecipientInfo_kari_set0_pkey_and_peer()
176 if (pctx == NULL || EVP_PKEY_derive_init(pctx) <= 0) in CMS_RecipientInfo_kari_set0_pkey_and_peer()
182 if (EVP_PKEY_derive_set_peer(pctx, pub_pkey) <= 0) in CMS_RecipientInfo_kari_set0_pkey_and_peer()
186 kari->pctx = pctx; in CMS_RecipientInfo_kari_set0_pkey_and_peer()
189 EVP_PKEY_CTX_free(pctx); in CMS_RecipientInfo_kari_set0_pkey_and_peer()
225 if (EVP_PKEY_derive(kari->pctx, kek, &keklen) <= 0) in cms_kek_cipher()
248 EVP_PKEY_CTX_free(kari->pctx); in cms_kek_cipher()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/asn1/
H A Dtasn_prn.c107 int nohdr, const ASN1_PCTX *pctx);
110 const ASN1_TEMPLATE *tt, const ASN1_PCTX *pctx);
115 const ASN1_PCTX *pctx);
119 const ASN1_PCTX *pctx);
122 const ASN1_ITEM *it, const ASN1_PCTX *pctx) in ASN1_item_print() argument
125 if (pctx == NULL) in ASN1_item_print()
126 pctx = &default_pctx; in ASN1_item_print()
127 if (pctx->flags & ASN1_PCTX_FLAGS_NO_STRUCT_NAME) in ASN1_item_print()
131 return asn1_item_print_ctx(out, &ifld, indent, it, NULL, sname, 0, pctx); in ASN1_item_print()
137 int nohdr, const ASN1_PCTX *pctx) in asn1_item_print_ctx() argument
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dtasn_prn.c107 int nohdr, const ASN1_PCTX *pctx);
110 const ASN1_TEMPLATE *tt, const ASN1_PCTX *pctx);
115 const ASN1_PCTX *pctx);
119 const ASN1_PCTX *pctx);
122 const ASN1_ITEM *it, const ASN1_PCTX *pctx) in ASN1_item_print() argument
125 if (pctx == NULL) in ASN1_item_print()
126 pctx = &default_pctx; in ASN1_item_print()
127 if (pctx->flags & ASN1_PCTX_FLAGS_NO_STRUCT_NAME) in ASN1_item_print()
131 return asn1_item_print_ctx(out, &ifld, indent, it, NULL, sname, 0, pctx); in ASN1_item_print()
137 int nohdr, const ASN1_PCTX *pctx) in asn1_item_print_ctx() argument
[all …]
/netbsd-src/usr.sbin/puffs/mount_psshfs/
H A Dpsshfs.c142 struct psshfs_ctx pctx; in main() local
145 struct psshfs_node *root = &pctx.psn_root; in main()
166 memset(&pctx, 0, sizeof(pctx)); in main()
196 pctx.domanglegid = 1; in main()
197 pctx.manglegid = atoi(optarg); in main()
198 if (pctx.manglegid == (gid_t)-1) in main()
200 pctx.mygid = getegid(); in main()
227 pctx.domangleuid = 1; in main()
228 pctx.mangleuid = atoi(optarg); in main()
229 if (pctx.mangleuid == (uid_t)-1) in main()
[all …]
H A Dfs.c87 struct psshfs_ctx *pctx = puffs_getspecific(pu); in psshfs_handshake() local
108 pctx->protover = psbuf_get_reqid(pb); in psshfs_handshake()
123 pctx->extensions |= extu->extflag; in psshfs_handshake()
129 psbuf_put_4(pb, NEXTREQ(pctx)); in psshfs_handshake()
130 psbuf_put_str(pb, pctx->mountpath); in psshfs_handshake()
137 pctx->mountpath), EPROTO); in psshfs_handshake()
145 psbuf_req_str(pb, SSH_FXP_LSTAT, NEXTREQ(pctx), rootpath); in psshfs_handshake()
183 if ((pctx->extensions & SFTP_EXT_STATVFS) == 0) in psshfs_fs_statvfs()
187 psbuf_put_str(pb, pctx->mountpath); in psshfs_fs_statvfs()
188 GETRESPONSE(pb, pctx->sshfd); in psshfs_fs_statvfs()
[all …]
H A Dnode.c45 struct psshfs_ctx *pctx = puffs_getspecific(pu); in psshfs_node_lookup() local
62 rv = sftp_readdir(pu, pctx, pn_dir); in psshfs_node_lookup()
137 struct psshfs_ctx *pctx = puffs_getspecific(pu); in psshfs_node_setattr() local
153 if (!psn->attrread || REFRESHTIMEOUT(pctx, time(NULL)-psn->attrread)) in psshfs_node_setattr()
165 ((pctx->DOMANGLE && (va->FIELD == pctx->MINE)) \ in psshfs_node_setattr()
166 ? pctx->MANGLED \ in psshfs_node_setattr()
185 reqid = NEXTREQ(pctx); in psshfs_node_setattr()
208 psbuf_put_vattr(pb, &kludgeva, pctx); in psshfs_node_setattr()
209 GETRESPONSE(pb, pctx->sshfd); in psshfs_node_setattr()
236 psbuf_put_vattr(pb, va, pctx); in psshfs_node_create()
[all …]
H A Dsubr.c73 struct psshfs_ctx *pctx = puffs_getspecific(pu); in setpnva() local
88 if (pctx->domangleuid && modva.va_uid == pctx->mangleuid) in setpnva()
89 modva.va_uid = pctx->myuid; in setpnva()
90 if (pctx->domanglegid && modva.va_gid == pctx->manglegid) in setpnva()
91 modva.va_gid = pctx->mygid; in setpnva()
135 struct psshfs_ctx *pctx = puffs_getspecific(pu); in closehandles() local
143 reqid = NEXTREQ(pctx); in closehandles()
146 puffs_framev_enqueue_justsend(pu, pctx->sshfd_data, pb1, 1, 0); in closehandles()
155 reqid = NEXTREQ(pctx); in closehandles()
158 puffs_framev_enqueue_justsend(pu, pctx->sshfd_data, pb2, 1, 0); in closehandles()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/cms/
H A Dcms_kari.c157 EVP_PKEY_CTX *pctx; in CMS_RecipientInfo_kari_set0_pkey() local
160 EVP_PKEY_CTX_free(kari->pctx); in CMS_RecipientInfo_kari_set0_pkey()
161 kari->pctx = NULL; in CMS_RecipientInfo_kari_set0_pkey()
164 pctx = EVP_PKEY_CTX_new(pk, NULL); in CMS_RecipientInfo_kari_set0_pkey()
165 if (!pctx || EVP_PKEY_derive_init(pctx) <= 0) in CMS_RecipientInfo_kari_set0_pkey()
167 kari->pctx = pctx; in CMS_RecipientInfo_kari_set0_pkey()
170 EVP_PKEY_CTX_free(pctx); in CMS_RecipientInfo_kari_set0_pkey()
200 if (EVP_PKEY_derive(kari->pctx, kek, &keklen) <= 0) in cms_kek_cipher()
223 EVP_PKEY_CTX_free(kari->pctx); in cms_kek_cipher()
224 kari->pctx = NULL; in cms_kek_cipher()
[all …]
H A Dcms_env.c58 EVP_PKEY_CTX *pctx = ri->d.kari->pctx; in cms_env_asn1_ctrl() local
59 if (!pctx) in cms_env_asn1_ctrl()
61 pkey = EVP_PKEY_CTX_get0_pkey(pctx); in cms_env_asn1_ctrl()
98 return ri->d.ktri->pctx; in CMS_RecipientInfo_get0_pkey_ctx()
100 return ri->d.kari->pctx; in CMS_RecipientInfo_get0_pkey_ctx()
164 ktri->pctx = EVP_PKEY_CTX_new(ktri->pkey, NULL); in cms_RecipientInfo_ktri_init()
165 if (ktri->pctx == NULL) in cms_RecipientInfo_ktri_init()
167 if (EVP_PKEY_encrypt_init(ktri->pctx) <= 0) in cms_RecipientInfo_ktri_init()
297 EVP_PKEY_CTX *pctx; in cms_RecipientInfo_ktri_encrypt() local
310 pctx = ktri->pctx; in cms_RecipientInfo_ktri_encrypt()
[all …]

1234567