diff --git a/lib/hx509/ca.c b/lib/hx509/ca.c index 1079ca9a5..87152c194 100644 --- a/lib/hx509/ca.c +++ b/lib/hx509/ca.c @@ -35,6 +35,12 @@ #include RCSID("$Id$"); +/** + * @page page_ca Hx509 CA functions + * + * See the library functions here: @ref hx509_ca + */ + struct hx509_ca_tbs { hx509_name subject; SubjectPublicKeyInfo spki; @@ -55,6 +61,18 @@ struct hx509_ca_tbs { CRLDistributionPoints crldp; }; +/** + * Allocate an To Be Signed object that will be converted into an + * certificate. + * + * @param context A hx509 context. + * @param tbs returned to be signed object, free with hx509_ca_tbs_free(). + * + * @return An hx509 error code, see hx509_get_error_string(). + * + * @ingroup hx509_ca + */ + int hx509_ca_tbs_init(hx509_context context, hx509_ca_tbs *tbs) { @@ -74,6 +92,14 @@ hx509_ca_tbs_init(hx509_context context, hx509_ca_tbs *tbs) return 0; } +/** + * Free an To Be Signed object. + * + * @param tbs object to free. + * + * @ingroup hx509_ca + */ + void hx509_ca_tbs_free(hx509_ca_tbs *tbs) {