201
201
apr_byte_t apr_jwk_parse_json(apr_pool_t *pool, json_t *j_json,
202
202
const char *s_json, apr_jwk_t **j_jwk);
203
203
/* convert the RSA public key in a PEM formatted file with an X.509 cert in to an RSA JWK */
204
apr_byte_t apr_jwk_x509_to_rsa_jwk(apr_pool_t *pool, const char *filename, char **jwk, char**kid);
204
apr_byte_t apr_jwk_pem_to_json(apr_pool_t *pool, const char *filename, char **jwk, char**kid);
205
205
/* convert the RSA private key in a PEM formatted file in to an RSA JWK */
206
206
apr_byte_t apr_jwk_private_key_to_rsa_jwk(apr_pool_t *pool, const char *filename, char **jwk, char**kid);