Lines Matching refs:csr

171 	X509_REQ *csr;  member
204 X509_REQ_free(x509_request->csr); in php_openssl_request_free_obj()
2943 static int php_openssl_make_REQ(struct php_x509_request * req, X509_REQ * csr, zval * dn, zval * at… in php_openssl_make_REQ() argument
2969 if (X509_REQ_set_version(csr, 0L)) { in php_openssl_make_REQ()
2977 subj = X509_REQ_get_subject_name(csr); in php_openssl_make_REQ()
3085 if (X509_REQ_get_attr_by_NID(csr, nid, -1) >= 0) { in php_openssl_make_REQ()
3088 if (!X509_REQ_add1_attr_by_txt(csr, v->name, MBSTRING_UTF8, (unsigned char*)v->value, -1)) { in php_openssl_make_REQ()
3103 if (!X509_REQ_set_pubkey(csr, req->priv_key)) { in php_openssl_make_REQ()
3113 X509_REQ * csr = NULL; in php_openssl_csr_from_str() local
3131 csr = PEM_read_bio_X509_REQ(in, NULL,NULL,NULL); in php_openssl_csr_from_str()
3132 if (csr == NULL) { in php_openssl_csr_from_str()
3138 return csr; in php_openssl_csr_from_str()
3145 return php_openssl_request_from_obj(csr_obj)->csr; in php_openssl_csr_from_param()
3156 X509_REQ *csr; in PHP_FUNCTION() local
3174 csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION()
3175 if (csr == NULL) { in PHP_FUNCTION()
3186 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3189 if (!PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3202 X509_REQ_free(csr); in PHP_FUNCTION()
3210 X509_REQ *csr; in PHP_FUNCTION() local
3226 csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION()
3227 if (csr == NULL) { in PHP_FUNCTION()
3235 if (!notext && !X509_REQ_print(bio_out, csr)) { in PHP_FUNCTION()
3239 if (PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3251 X509_REQ_free(csr); in PHP_FUNCTION()
3260 X509_REQ *csr; in PHP_FUNCTION() local
3287 csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION()
3288 if (csr == NULL) { in PHP_FUNCTION()
3320 key = X509_REQ_get_pubkey(csr); in PHP_FUNCTION()
3326 i = X509_REQ_verify(csr, key); in PHP_FUNCTION()
3357 X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); in PHP_FUNCTION()
3376 X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); in PHP_FUNCTION()
3405 X509_REQ_free(csr); in PHP_FUNCTION()
3420 X509_REQ *csr = NULL; in PHP_FUNCTION() local
3445 csr = X509_REQ_new(); in PHP_FUNCTION()
3446 if (csr) { in PHP_FUNCTION()
3447 if (php_openssl_make_REQ(&req, csr, dn, attribs) == SUCCESS) { in PHP_FUNCTION()
3450 X509V3_set_ctx(&ext_ctx, NULL, NULL, csr, NULL, 0); in PHP_FUNCTION()
3455 &ext_ctx, req.request_extensions_section, csr)) in PHP_FUNCTION()
3462 if (X509_REQ_sign(csr, req.priv_key, req.digest)) { in PHP_FUNCTION()
3465 x509_request_obj->csr = csr; in PHP_FUNCTION()
3466 csr = NULL; in PHP_FUNCTION()
3488 if (csr) { in PHP_FUNCTION()
3489 X509_REQ_free(csr); in PHP_FUNCTION()
3498 X509_REQ *csr; in PHP_FUNCTION() local
3510 csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION()
3511 if (csr == NULL) { in PHP_FUNCTION()
3515 subject = X509_REQ_get_subject_name(csr); in PHP_FUNCTION()
3521 X509_REQ_free(csr); in PHP_FUNCTION()
3553 X509_REQ *csr = php_openssl_csr_from_param(csr_obj, csr_str, 1); in PHP_FUNCTION() local
3554 if (csr == NULL) { in PHP_FUNCTION()
3559 EVP_PKEY *orig_key = X509_REQ_get_pubkey(csr); in PHP_FUNCTION()
3565 X509_REQ_free(csr); in PHP_FUNCTION()