int x509write_csr_set_extension( x509write_csr *ctx, const char *oid, size_t oid_len, const unsigned char *val, size_t val_len ) { return x509_set_extension( &ctx->extensions, oid, oid_len, 0, val, val_len ); }
int x509write_crt_set_extension( x509write_cert *ctx, const char *oid, size_t oid_len, int critical, const unsigned char *val, size_t val_len ) { return x509_set_extension( &ctx->extensions, oid, oid_len, critical, val, val_len ); }