MCPcopy Create free account
hub / github.com/apache/httpd / md_json_dupsa

Function md_json_dupsa

modules/md/md_json.c:887–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

885}
886
887apr_status_t md_json_dupsa(apr_array_header_t *a, apr_pool_t *p, md_json_t *json, ...)
888{
889 json_t *j;
890 va_list ap;
891
892 va_start(ap, json);
893 j = jselect(json, ap);
894 va_end(ap);
895
896 if (j && json_is_array(j)) {
897 size_t index;
898 json_t *val;
899
900 apr_array_clear(a);
901 json_array_foreach(j, index, val) {
902 if (json_is_string(val)) {
903 APR_ARRAY_PUSH(a, const char *) = apr_pstrdup(p, json_string_value(val));
904 }
905 }
906 return APR_SUCCESS;
907 }
908 return APR_ENOENT;
909}
910
911apr_status_t md_json_setsa(apr_array_header_t *a, md_json_t *json, ...)
912{

Callers 3

acct_updFunction · 0.85
order_update_from_jsonFunction · 0.85
md_from_jsonFunction · 0.85

Calls 1

jselectFunction · 0.85

Tested by

no test coverage detected