diff --git a/src/libopensc/pkcs15-cert.c b/src/libopensc/pkcs15-cert.c index 20c19497..5248fd2f 100644 --- a/src/libopensc/pkcs15-cert.c +++ b/src/libopensc/pkcs15-cert.c @@ -30,7 +30,7 @@ #endif #include -static int parse_x509_cert(sc_context_t *ctx, const u8 *buf, size_t buflen, struct sc_pkcs15_cert *cert) +int parse_x509_cert(sc_context_t *ctx, const u8 *buf, size_t buflen, struct sc_pkcs15_cert *cert) { int r; struct sc_algorithm_id pk_alg, sig_alg; diff --git a/src/libopensc/pkcs15.h b/src/libopensc/pkcs15.h index ac2f420b..d76aa6aa 100644 --- a/src/libopensc/pkcs15.h +++ b/src/libopensc/pkcs15.h @@ -447,6 +447,8 @@ void sc_pkcs15_free_data_object(struct sc_pkcs15_data *data_object); int sc_pkcs15_read_certificate(struct sc_pkcs15_card *card, const struct sc_pkcs15_cert_info *info, struct sc_pkcs15_cert **cert); +int parse_x509_cert(sc_context_t *ctx, const u8 *buf, size_t buflen, + struct sc_pkcs15_cert *cert); void sc_pkcs15_free_certificate(struct sc_pkcs15_cert *cert); int sc_pkcs15_find_cert_by_id(struct sc_pkcs15_card *card, const struct sc_pkcs15_id *id,