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

Function md_json_readd

modules/md/md_json.c:1068–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066}
1067
1068apr_status_t md_json_readd(md_json_t **pjson, apr_pool_t *pool, const char *data, size_t data_len)
1069{
1070 json_error_t error;
1071 json_t *j;
1072
1073 j = json_loadb(data, data_len, 0, &error);
1074 if (!j) {
1075 return APR_EINVAL;
1076 }
1077 *pjson = json_create(pool, j);
1078 return APR_SUCCESS;
1079}
1080
1081static size_t load_cb(void *data, size_t max_len, void *baton)
1082{

Callers

nothing calls this directly

Calls 1

json_createFunction · 0.85

Tested by

no test coverage detected