@@ -1670,20 +1670,20 @@ X.509 Certificates
16701670
16711671 Return the subject key ID set in the certificate, which may be empty.
16721672
1673- .. cpp :function ::int botan_x509_get_basic_constraints (botan_x509_cert_t cert, int* is_ca, size_t* limit)
1673+ .. cpp :function ::int botan_x509_cert_is_ca (botan_x509_cert_t cert, int* is_ca, size_t* limit)
16741674
16751675 Checks whether the certificate is a CA certificate and sets ``is_ca `` to 1 if it is, 0 otherwise.
16761676 If it is a CA certificate, ``limit `` is set to the path limit, otherwise 0.
16771677
1678- .. cpp :function ::int botan_x509_get_key_constraints (botan_x509_cert_t cert, uint32_t* usage)
1678+ .. cpp :function ::int botan_x509_cert_get_key_constraints (botan_x509_cert_t cert, uint32_t* usage)
16791679
16801680 Returns the key usage constraints.
16811681
1682- .. cpp :function ::int botan_x509_get_ocsp_responder (botan_x509_cert_t cert, botan_view_ctx ctx, botan_view_str_fn view)
1682+ .. cpp :function ::int botan_x509_cert_get_ocsp_responder (botan_x509_cert_t cert, botan_view_ctx ctx, botan_view_str_fn view)
16831683
16841684 Returns the OCSP responder.
16851685
1686- .. cpp :function ::int botan_x509_is_self_signed (botan_x509_cert_t cert, int* out)
1686+ .. cpp :function ::int botan_x509_cert_is_self_signed (botan_x509_cert_t cert, int* out)
16871687
16881688 Checks whether the certificate is self signed and sets ``out `` to 1 if it is, 0 otherwise.
16891689
@@ -1800,11 +1800,11 @@ X.509 Certificates
18001800
18011801 Destroy the IP Address Blocks object.
18021802
1803- .. cpp :function ::int botan_x509_ext_create_ip_addr_blocks (botan_x509_ext_ip_addr_blocks_t* ip_addr_blocks)
1803+ .. cpp :function ::int botan_x509_ext_ip_addr_blocks_create (botan_x509_ext_ip_addr_blocks_t* ip_addr_blocks)
18041804
18051805 Create a new IP Address Blocks object.
18061806
1807- .. cpp :function ::int botan_x509_ext_create_ip_addr_blocks_from_cert (botan_x509_cert_t cert, \
1807+ .. cpp :function ::int botan_x509_ext_ip_addr_blocks_create_from_cert (botan_x509_cert_t cert, \
18081808 botan_x509_ext_ip_addr_blocks_t * ip_addr_blocks)
18091809
18101810 Get an IP Address Blocks object from a certificate. Cannot be mutated.
@@ -1876,11 +1876,11 @@ X.509 Certificates
18761876
18771877 Destroy the AS Blocks object.
18781878
1879- .. cpp :function ::int botan_x509_ext_create_as_blocks (botan_x509_ext_as_blocks_t* as_blocks)
1879+ .. cpp :function ::int botan_x509_ext_as_blocks_create (botan_x509_ext_as_blocks_t* as_blocks)
18801880
18811881 Create a new AS Blocks object.
18821882
1883- .. cpp :function ::int botan_x509_ext_create_as_blocks_from_cert (botan_x509_cert_t cert, botan_x509_ext_as_blocks_t* as_blocks)
1883+ .. cpp :function ::int botan_x509_ext_as_blocks_create_from_cert (botan_x509_cert_t cert, botan_x509_ext_as_blocks_t* as_blocks)
18841884
18851885 Get an AS Blocks object from a certificate. Cannot be mutated.
18861886
@@ -1919,12 +1919,11 @@ X.509 Certificates
19191919
19201920.. cpp :function ::int botan_x509_cert_params_builder_destroy (botan_x509_cert_params_builder_t builder)
19211921
1922- Destroy the options object.
1922+ Destroy the Certificate Params Builder object.
19231923
1924- .. cpp :function ::int botan_x509_create_cert_params_builder (botan_x509_cert_params_builder_t* builder_obj);
1924+ .. cpp :function ::int botan_x509_cert_params_builder_create (botan_x509_cert_params_builder_t* builder_obj);
19251925
1926- Create a new certificate builder object. ``opts `` defines the common name (e.g. `common_name/country/organization/organizational_unit `).
1927- ``expire_time `` if given is the expiration time from current clock in seconds.
1926+ Create a new Certificate Params Builder object.
19281927
19291928.. cpp :function ::int botan_x509_cert_params_builder_add_common_name (botan_x509_cert_params_builder_t builder, const char* name);
19301929
@@ -1954,7 +1953,7 @@ X.509 Certificates
19541953
19551954.. cpp :function ::int botan_x509_cert_params_builder_add_allowed_extended_usage (botan_x509_cert_params_builder_t builder, botan_asn1_oid_t oid);
19561955
1957- .. cpp :function ::int botan_x509_cert_params_builder_set_as_ca_certificate (botan_x509_cert_params_builder_t builder, size_t limit);
1956+ .. cpp :function ::int botan_x509_cert_params_builder_set_as_ca_certificate (botan_x509_cert_params_builder_t builder, size_t limit=None );
19581957
19591958 Mark the certificate for CA usage.
19601959
@@ -1964,12 +1963,13 @@ X.509 Certificates
19641963.. cpp :function ::int botan_x509_cert_params_builder_add_ext_as_blocks (botan_x509_cert_params_builder_t builder, \
19651964 botan_x509_ext_as_blocks_t as_blocks, int is_critical);
19661965
1967- .. cpp :function ::int botan_x509_create_self_signed_cert (botan_x509_cert_t* cert_obj, \
1966+ .. cpp :function ::int botan_x509_cert_create_self_signed (botan_x509_cert_t* cert_obj, \
19681967 botan_privkey_t key, \
19691968 botan_x509_cert_params_builder_t builder, \
19701969 botan_rng_t rng, \
19711970 uint64_t not_before, \
19721971 uint64_t not_after, \
1972+ const botan_mp_t * serial_number, \
19731973 const char * hash_fn, \
19741974 const char * padding)
19751975
@@ -1983,7 +1983,20 @@ X.509 Certificates
19831983
19841984 Destroy the PKCS #10 certificate request object.
19851985
1986- .. cpp :function ::int botan_x509_create_pkcs10_req (botan_x509_pkcs10_req_t* req_obj, \
1986+ .. cpp :function ::int botan_x509_pkcs10_req_load_file (botan_x509_pkcs10_req_t* req_obj, const char* req_path)
1987+
1988+ .. cpp :function ::int botan_x509_pkcs10_req_load (botan_x509_pkcs10_req_t* req_obj, const uint8_t req_bits[], size_t req_bits_len)
1989+
1990+ .. cpp :function ::int int botan_x509_pkcs10_req_get_public_key (botan_x509_pkcs10_req_t req, botan_pubkey_t* key)
1991+
1992+ .. cpp :function ::int int botan_x509_pkcs10_req_get_key_constraints (botan_x509_pkcs10_req_t req, uint32_t* usage)
1993+
1994+ .. cpp :function ::int int botan_x509_pkcs10_req_is_ca (botan_x509_pkcs10_req_t req, int* is_ca, size_t* limit)
1995+
1996+ .. cpp :function ::int int botan_x509_pkcs10_req_verify_signature (botan_x509_pkcs10_req_t req, botan_pubkey_t key, int* result)
1997+
1998+
1999+ .. cpp :function ::int botan_x509_pkcs10_req_create (botan_x509_pkcs10_req_t* req_obj, \
19872000 botan_privkey_t key, \
19882001 botan_x509_cert_params_builder_t builder, \
19892002 botan_rng_t rng, \
@@ -1995,13 +2008,16 @@ X.509 Certificates
19952008
19962009.. cpp :function ::int botan_x509_pkcs10_req_view_pem (botan_x509_pkcs10_req_t req, botan_view_ctx ctx, botan_view_str_fn view)
19972010
1998- .. cpp :function ::int botan_x509_sign_req (botan_x509_cert_t* subject_cert, \
2011+ .. cpp :function ::int int botan_x509_pkcs10_req_view_der (botan_x509_pkcs10_req_t req, botan_view_ctx ctx, botan_view_bin_fn view)
2012+
2013+ .. cpp :function ::int botan_x509_pkcs10_req_sign (botan_x509_cert_t* subject_cert, \
19992014 botan_x509_pkcs10_req_t subject_req, \
20002015 botan_x509_cert_t issuing_cert, \
20012016 botan_privkey_t issuing_key, \
20022017 botan_rng_t rng, \
20032018 uint64_t not_before, \
20042019 uint64_t not_after, \
2020+ const botan_mp_t * serial_number, \
20052021 const char * hash_fn, \
20062022 const char * padding)
20072023
@@ -2023,6 +2039,38 @@ X.509 Certificate Revocation Lists
20232039
20242040 Load a CRL from a file.
20252041
2042+ .. cpp :function :: int botan_x509_crl_create (botan_x509_crl_t* crl_obj, \
2043+ botan_rng_t rng, \
2044+ botan_x509_cert_t ca_cert, \
2045+ botan_privkey_t ca_key, \
2046+ uint64_t issue_time, \
2047+ uint32_t next_update, \
2048+ const char * hash_fn, \
2049+ const char * padding)
2050+
2051+ .. cpp :function :: int botan_x509_crl_update (botan_x509_crl_t* crl_obj, \
2052+ botan_x509_crl_t last_crl, \
2053+ botan_rng_t rng, \
2054+ botan_x509_cert_t ca_cert, \
2055+ botan_privkey_t ca_key, \
2056+ uint64_t issue_time, \
2057+ uint32_t next_update, \
2058+ const botan_x509_cert_t * revoked, \
2059+ size_t revoked_len, \
2060+ uint8_t reason, \
2061+ const char * hash_fn, \
2062+ const char * padding)
2063+
2064+ .. cpp :function :: int botan_x509_crl_get_count (botan_x509_crl_t crl, size_t* count);
2065+
2066+ .. cpp :function :: int botan_x509_crl_get_entry (botan_x509_crl_t crl, size_t i, uint8_t serial[], size_t* serial_len, uint64_t* expire_time, uint8_t* reason)
2067+
2068+ .. cpp :function :: int botan_x509_crl_verify_signature (botan_x509_crl_t crl, botan_pubkey_t key, int* result)
2069+
2070+ .. cpp :function :: int botan_x509_crl_view_pem (botan_x509_crl_t crl, botan_view_ctx ctx, botan_view_str_fn view)
2071+
2072+ .. cpp :function :: int botan_x509_crl_view_der (botan_x509_crl_t crl, botan_view_ctx ctx, botan_view_bin_fn view)
2073+
20262074.. cpp :function :: int botan_x509_crl_destroy (botan_x509_crl_t crl)
20272075
20282076 Destroy the CRL object.
0 commit comments