X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=inc%2Fbearssl_x509.h;h=2463c79d8500104d0017e1f7a4a0fcb0a9c47c6e;hp=b394f6ffedb8e0b452e41a0c8e8f2e41a4f5c6e0;hb=21743ae69e609ec7ec157eaf0b54cfe4866b7ef2;hpb=9e71c0673a9f46f82e43125919619f296698292e diff --git a/inc/bearssl_x509.h b/inc/bearssl_x509.h index b394f6f..2463c79 100644 --- a/inc/bearssl_x509.h +++ b/inc/bearssl_x509.h @@ -822,6 +822,20 @@ br_x509_minimal_set_ecdsa(br_x509_minimal_context *ctx, ctx->iec = iec; } +/** + * \brief Initialise a "minimal" X.509 engine with default algorithms. + * + * This function performs the same job as `br_x509_minimal_init()`, but + * also sets implementations for RSA, ECDSA, and the standard hash + * functions. + * + * \param ctx context to initialise. + * \param trust_anchors trust anchors. + * \param trust_anchors_num number of trust anchors. + */ +void br_x509_minimal_init_full(br_x509_minimal_context *ctx, + const br_x509_trust_anchor *trust_anchors, size_t trust_anchors_num); + /** * \brief Set the validation time for the X.509 "minimal" engine. *