Lines Matching refs:csr

190 	X509_REQ *csr;  member
222 X509_REQ_free(x509_request->csr); in php_openssl_request_free_obj()
2919 static zend_result php_openssl_csr_make(struct php_x509_request * req, X509_REQ * csr, zval * dn, z… in php_openssl_csr_make() argument
2945 if (X509_REQ_set_version(csr, 0L)) { in php_openssl_csr_make()
2953 subj = X509_REQ_get_subject_name(csr); in php_openssl_csr_make()
3038 …if (!X509_REQ_add1_attr_by_NID(csr, nid, MBSTRING_UTF8, (unsigned char*)ZSTR_VAL(str_item), (int)Z… in php_openssl_csr_make()
3053 if (X509_REQ_get_attr_by_NID(csr, nid, -1) >= 0) { in php_openssl_csr_make()
3056 if (!X509_REQ_add1_attr_by_txt(csr, v->name, MBSTRING_UTF8, (unsigned char*)v->value, -1)) { in php_openssl_csr_make()
3071 if (!X509_REQ_set_pubkey(csr, req->priv_key)) { in php_openssl_csr_make()
3079 X509_REQ * csr = NULL; in php_openssl_csr_from_str() local
3097 csr = PEM_read_bio_X509_REQ(in, NULL,NULL,NULL); in php_openssl_csr_from_str()
3098 if (csr == NULL) { in php_openssl_csr_from_str()
3104 return csr; in php_openssl_csr_from_str()
3111 return php_openssl_request_from_obj(csr_obj)->csr; in php_openssl_csr_from_param()
3122 X509_REQ *csr; in PHP_FUNCTION() local
3140 csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION()
3141 if (csr == NULL) { in PHP_FUNCTION()
3152 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3155 if (!PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3169 X509_REQ_free(csr); in PHP_FUNCTION()
3177 X509_REQ *csr; in PHP_FUNCTION() local
3193 csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION()
3194 if (csr == NULL) { in PHP_FUNCTION()
3202 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3206 if (PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3218 X509_REQ_free(csr); in PHP_FUNCTION()
3233 X509_REQ *csr; in PHP_FUNCTION() local
3263 csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION()
3264 if (csr == NULL) { in PHP_FUNCTION()
3301 key = X509_REQ_get_pubkey(csr); in PHP_FUNCTION()
3307 i = X509_REQ_verify(csr, key); in PHP_FUNCTION()
3355 X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); in PHP_FUNCTION()
3374 X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); in PHP_FUNCTION()
3404 X509_REQ_free(csr); in PHP_FUNCTION()
3419 X509_REQ *csr = NULL; in PHP_FUNCTION() local
3444 csr = X509_REQ_new(); in PHP_FUNCTION()
3445 if (csr) { in PHP_FUNCTION()
3446 if (php_openssl_csr_make(&req, csr, dn, attribs) == SUCCESS) { in PHP_FUNCTION()
3449 X509V3_set_ctx(&ext_ctx, NULL, NULL, csr, NULL, 0); in PHP_FUNCTION()
3454 &ext_ctx, req.request_extensions_section, csr)) in PHP_FUNCTION()
3461 if (X509_REQ_sign(csr, req.priv_key, req.digest)) { in PHP_FUNCTION()
3464 x509_request_obj->csr = csr; in PHP_FUNCTION()
3465 csr = NULL; in PHP_FUNCTION()
3487 if (csr) { in PHP_FUNCTION()
3488 X509_REQ_free(csr); in PHP_FUNCTION()
3497 X509_REQ *csr; in PHP_FUNCTION() local
3509 csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION()
3510 if (csr == NULL) { in PHP_FUNCTION()
3514 subject = X509_REQ_get_subject_name(csr); in PHP_FUNCTION()
3520 X509_REQ_free(csr); in PHP_FUNCTION()
3552 X509_REQ *csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION() local
3553 if (csr == NULL) { in PHP_FUNCTION()
3558 EVP_PKEY *orig_key = X509_REQ_get_pubkey(csr); in PHP_FUNCTION()
3564 X509_REQ_free(csr); in PHP_FUNCTION()