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

Function md_json_getsa

modules/md/md_json.c:864–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862/* array strings */
863
864apr_status_t md_json_getsa(apr_array_header_t *a, const md_json_t *json, ...)
865{
866 json_t *j;
867 va_list ap;
868
869 va_start(ap, json);
870 j = jselect(json, ap);
871 va_end(ap);
872
873 if (j && json_is_array(j)) {
874 size_t index;
875 json_t *val;
876
877 json_array_foreach(j, index, val) {
878 if (json_is_string(val)) {
879 APR_ARRAY_PUSH(a, const char *) = json_string_value(val);
880 }
881 }
882 return APR_SUCCESS;
883 }
884 return APR_ENOENT;
885}
886
887apr_status_t md_json_dupsa(apr_array_header_t *a, apr_pool_t *p, md_json_t *json, ...)
888{

Callers 2

si_val_ca_urlsFunction · 0.85
md_acme_acct_from_jsonFunction · 0.85

Calls 1

jselectFunction · 0.85

Tested by

no test coverage detected