| 1066 | } |
| 1067 | |
| 1068 | apr_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 | |
| 1081 | static size_t load_cb(void *data, size_t max_len, void *baton) |
| 1082 | { |
nothing calls this directly
no test coverage detected