X509_REQ
int batch, int verbose, X509_REQ *req, const char *ext_sect,
X509_REQ *req = NULL;
X509_REQ *rreq = NULL;
int batch, int verbose, X509_REQ *req, const char *ext_sect,
X509_REQ *req = NULL;
X509_REQ *csr = NULL;
int copy_extensions(X509 *x, X509_REQ *req, int copy_type);
X509_REQ *load_csr(const char *file, int format, const char *desc);
X509_REQ *load_csr_autofmt(const char *infile, int format,
int x509_req_ctrl_string(X509_REQ *x, const char *value);
int do_X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const char *md,
int do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey,
int x509_req_ctrl_string(X509_REQ *x, const char *value)
int copy_extensions(X509 *x, X509_REQ *req, int copy_type)
static int do_x509_req_init(X509_REQ *x, STACK_OF(OPENSSL_STRING) *opts)
int do_X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const char *md,
int do_X509_REQ_verify(X509_REQ *x, EVP_PKEY *pkey,
X509_REQ *load_csr(const char *file, int format, const char *desc)
X509_REQ *req = NULL;
X509_REQ *load_csr_autofmt(const char *infile, int format,
X509_REQ *csr;
const X509_REQ *p10cr,
static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, X509_NAME *fsubj,
static int prompt_info(X509_REQ *req,
static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk,
static int add_attribute_object(X509_REQ *req, char *text, const char *def,
X509_REQ *req = NULL;
static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, X509_NAME *fsubj,
static int prompt_info(X509_REQ *req,
static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *sk,
static int add_attribute_object(X509_REQ *req, char *text, const char *def,
static X509_REQ *x509_to_req(X509 *cert, int ext_copy, const char *names)
X509_REQ *req = X509_to_X509_REQ(cert, NULL, NULL);
X509_REQ *req = NULL, *rq = NULL;
ASN1_ITEM_ref(X509_REQ),
ASN1_EXP(OSSL_CMP_PKIBODY, value.p10cr, X509_REQ, 4),
DEFINE_OSSL_CMP_CTX_set1(p10CSR, X509_REQ)
X509_REQ *p10CSR; /* for P10CR: PKCS#10 CSR to be sent */
X509_REQ *p10cr; /* 4 */
const X509_REQ *p10cr = NULL;
X509_REQ *req = msg->body->value.p10cr;
int OSSL_CRMF_MSG_centralkeygen_requested(const OSSL_CRMF_MSG *crm, const X509_REQ *p10cr)
IMPLEMENT_PEM_rw(X509_REQ, X509_REQ, PEM_STRING_X509_REQ, X509_REQ)
IMPLEMENT_PEM_write(X509_REQ_NEW, X509_REQ, PEM_STRING_X509_REQ_OLD, X509_REQ)
int X509_REQ_print_fp(FILE *fp, X509_REQ *x)
int X509_REQ_print(BIO *bp, X509_REQ *x)
int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags,
X509_REQ *req)
void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subj, X509_REQ *req,
const char *section, X509_REQ *req)
STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x)
X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey)
static STACK_OF(X509_EXTENSION) *get_extensions_by_nid(const X509_REQ *req,
STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(OSSL_FUTURE_CONST X509_REQ *req)
int X509_REQ_add_extensions_nid(X509_REQ *req,
int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts)
int X509_REQ_get_attr_count(const X509_REQ *req)
int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos)
X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
int X509_REQ_get_attr_by_OBJ(const X509_REQ *req, const ASN1_OBJECT *obj,
X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc)
X509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc)
X509_REQ *ret;
int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr)
int X509_REQ_add1_attr_by_OBJ(X509_REQ *req,
int X509_REQ_add1_attr_by_NID(X509_REQ *req,
int X509_REQ_add1_attr_by_txt(X509_REQ *req,
long X509_REQ_get_version(const X509_REQ *req)
X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req)
void X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig,
void X509_REQ_set0_signature(X509_REQ *req, ASN1_BIT_STRING *psig)
int X509_REQ_set1_signature_algo(X509_REQ *req, X509_ALGOR *palg)
int X509_REQ_get_signature_nid(const X509_REQ *req)
int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp)
EVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req)
EVP_PKEY *X509_REQ_get0_pubkey(const X509_REQ *req)
X509_PUBKEY *X509_REQ_get_X509_PUBKEY(X509_REQ *req)
int X509_REQ_check_private_key(const X509_REQ *req, EVP_PKEY *pkey)
int X509_REQ_set_version(X509_REQ *x, long version)
int X509_REQ_set_subject_name(X509_REQ *x, const X509_NAME *name)
int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey)
int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md)
int X509_REQ_sign_ctx(X509_REQ *x, EVP_MD_CTX *ctx)
X509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req)
return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509_REQ), fp, req);
int i2d_X509_REQ_fp(FILE *fp, const X509_REQ *req)
return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_REQ), fp, req);
X509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req)
return ASN1_item_d2i_bio_ex(ASN1_ITEM_rptr(X509_REQ), bp, req, libctx, propq);
int i2d_X509_REQ_bio(BIO *bp, const X509_REQ *req)
return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_REQ), bp, req);
int X509_REQ_verify_ex(X509_REQ *a, EVP_PKEY *r, OSSL_LIB_CTX *libctx,
int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r)
int X509_REQ_digest(const X509_REQ *data, const EVP_MD *type,
return ossl_asn1_item_digest_ex(ASN1_ITEM_rptr(X509_REQ), type, (char *)data,
ASN1_SEQUENCE_ref(X509_REQ, req_cb) = {
ASN1_EMBED(X509_REQ, req_info, X509_REQ_INFO),
ASN1_EMBED(X509_REQ, sig_alg, X509_ALGOR),
ASN1_SIMPLE(X509_REQ, signature, ASN1_BIT_STRING)
} ASN1_SEQUENCE_END_ref(X509_REQ, X509_REQ)
IMPLEMENT_ASN1_FUNCTIONS(X509_REQ)
IMPLEMENT_ASN1_DUP_FUNCTION(X509_REQ)
void X509_REQ_set0_distinguishing_id(X509_REQ *x, ASN1_OCTET_STRING *d_id)
ASN1_OCTET_STRING *X509_REQ_get0_distinguishing_id(X509_REQ *x)
int ossl_x509_req_set0_libctx(X509_REQ *x, OSSL_LIB_CTX *libctx,
X509_REQ *X509_REQ_new_ex(OSSL_LIB_CTX *libctx, const char *propq)
X509_REQ *req = NULL;
req = (X509_REQ *)ASN1_item_new((X509_REQ_it()));
X509_REQ *ret = (X509_REQ *)*pval;
X509_REQ *old = exarg;
ASN1_ITEM_ref(X509_REQ),
const X509_REQ *p10cr,
int ossl_x509_req_set0_libctx(X509_REQ *x, OSSL_LIB_CTX *libctx,
int OSSL_CMP_CTX_set1_p10CSR(OSSL_CMP_CTX *ctx, const X509_REQ *csr);
const OSSL_CRMF_MSG *crm, const X509_REQ *p10cr,
int OSSL_CRMF_MSG_centralkeygen_requested(const OSSL_CRMF_MSG *crm, const X509_REQ *p10cr);
DECLARE_PEM_rw(X509_REQ, X509_REQ)
DECLARE_PEM_write(X509_REQ_NEW, X509_REQ)
int X509_REQ_print_fp(FILE *bp, X509_REQ *req);
int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag,
int X509_REQ_print(BIO *bp, X509_REQ *req);
int X509_REQ_verify_ex(X509_REQ *a, EVP_PKEY *r, OSSL_LIB_CTX *libctx,
int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r);
int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);
int X509_REQ_sign_ctx(X509_REQ *x, EVP_MD_CTX *ctx);
int X509_REQ_digest(const X509_REQ *data, const EVP_MD *type,
X509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req);
int i2d_X509_REQ_fp(FILE *fp, const X509_REQ *req);
X509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req);
int i2d_X509_REQ_bio(BIO *bp, const X509_REQ *req);
DECLARE_ASN1_DUP_FUNCTION(X509_REQ)
X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
X509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey);
DECLARE_ASN1_FUNCTIONS(X509_REQ)
X509_REQ *X509_REQ_new_ex(OSSL_LIB_CTX *libctx, const char *propq);
void X509_REQ_set0_distinguishing_id(X509_REQ *x, ASN1_OCTET_STRING *d_id);
ASN1_OCTET_STRING *X509_REQ_get0_distinguishing_id(X509_REQ *x);
long X509_REQ_get_version(const X509_REQ *req);
int X509_REQ_set_version(X509_REQ *x, long version);
X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req);
int X509_REQ_set_subject_name(X509_REQ *req, const X509_NAME *name);
void X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig,
void X509_REQ_set0_signature(X509_REQ *req, ASN1_BIT_STRING *psig);
int X509_REQ_set1_signature_algo(X509_REQ *req, X509_ALGOR *palg);
int X509_REQ_get_signature_nid(const X509_REQ *req);
int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);
int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);
EVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req);
EVP_PKEY *X509_REQ_get0_pubkey(const X509_REQ *req);
X509_PUBKEY *X509_REQ_get_X509_PUBKEY(X509_REQ *req);
STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(OSSL_FUTURE_CONST X509_REQ *req);
int X509_REQ_add_extensions_nid(X509_REQ *req,
int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *ext);
int X509_REQ_get_attr_count(const X509_REQ *req);
int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos);
int X509_REQ_get_attr_by_OBJ(const X509_REQ *req, const ASN1_OBJECT *obj,
X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc);
X509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc);
int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr);
int X509_REQ_add1_attr_by_OBJ(X509_REQ *req,
int X509_REQ_add1_attr_by_NID(X509_REQ *req,
int X509_REQ_add1_attr_by_txt(X509_REQ *req,
int X509_REQ_check_private_key(const X509_REQ *req, EVP_PKEY *pkey);
X509_REQ *subject_req;
STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x);
X509_REQ *req);
const char *section, X509_REQ *req);
X509_REQ *req, X509_CRL *crl, int flags);
X509_REQ *csr = NULL;
DEFINE_SET_TEST(OSSL_CMP, CTX, 1, 1, p10CSR, X509_REQ)
X509_REQ *p10cr = NULL;
X509_REQ *p10cr = NULL;
const X509_REQ *p10cr,
X509_REQ *load_csr_der(const char *file, OSSL_LIB_CTX *libctx);
X509_REQ *load_csr_der(const char *file, OSSL_LIB_CTX *libctx)
X509_REQ *csr = NULL;
X509_REQ *x = NULL;
X509_REQ *x509_req = NULL;
X509_REQ *req = NULL;