Lines Matching refs:csr
198 ZEND_ARG_INFO(0, csr)
204 ZEND_ARG_INFO(0, csr)
210 ZEND_ARG_INFO(0, csr)
226 ZEND_ARG_INFO(0, csr)
230 ZEND_ARG_INFO(0, csr)
736 X509_REQ * csr = (X509_REQ*)rsrc->ptr; in php_csr_free() local
737 X509_REQ_free(csr); in php_csr_free()
2883 static int php_openssl_make_REQ(struct php_x509_request * req, X509_REQ * csr, zval * dn, zval * at… in php_openssl_make_REQ() argument
2906 if (X509_REQ_set_version(csr, 0L)) { in php_openssl_make_REQ()
2914 subj = X509_REQ_get_subject_name(csr); in php_openssl_make_REQ()
3013 if (X509_REQ_get_attr_by_NID(csr, nid, -1) >= 0) { in php_openssl_make_REQ()
3016 if (!X509_REQ_add1_attr_by_txt(csr, v->name, MBSTRING_UTF8, (unsigned char*)v->value, -1)) { in php_openssl_make_REQ()
3028 X509_REQ_set_pubkey(csr, req->priv_key); in php_openssl_make_REQ()
3036 X509_REQ * csr = NULL; in php_openssl_csr_from_zval() local
3073 csr = PEM_read_bio_X509_REQ(in, NULL,NULL,NULL); in php_openssl_csr_from_zval()
3076 return csr; in php_openssl_csr_from_zval()
3084 X509_REQ * csr; in PHP_FUNCTION() local
3097 csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource); in PHP_FUNCTION()
3098 if (csr == NULL) { in PHP_FUNCTION()
3110 X509_REQ_print(bio_out, csr); in PHP_FUNCTION()
3112 PEM_write_bio_X509_REQ(bio_out, csr); in PHP_FUNCTION()
3118 if (csr_resource == NULL && csr) { in PHP_FUNCTION()
3119 X509_REQ_free(csr); in PHP_FUNCTION()
3129 X509_REQ * csr; in PHP_FUNCTION() local
3141 csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource); in PHP_FUNCTION()
3142 if (csr == NULL) { in PHP_FUNCTION()
3151 X509_REQ_print(bio_out, csr); in PHP_FUNCTION()
3154 if (PEM_write_bio_X509_REQ(bio_out, csr)) { in PHP_FUNCTION()
3164 if (csr_resource == NULL && csr) { in PHP_FUNCTION()
3165 X509_REQ_free(csr); in PHP_FUNCTION()
3179 X509_REQ * csr; in PHP_FUNCTION() local
3191 csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource); in PHP_FUNCTION()
3192 if (csr == NULL) { in PHP_FUNCTION()
3217 key = X509_REQ_get_pubkey(csr); in PHP_FUNCTION()
3222 i = X509_REQ_verify(csr, key); in PHP_FUNCTION()
3247 X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); in PHP_FUNCTION()
3264 X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); in PHP_FUNCTION()
3294 if (csr_resource == NULL && csr) { in PHP_FUNCTION()
3295 X509_REQ_free(csr); in PHP_FUNCTION()
3313 X509_REQ * csr = NULL; in PHP_FUNCTION() local
3338 csr = X509_REQ_new(); in PHP_FUNCTION()
3339 if (csr) { in PHP_FUNCTION()
3340 if (php_openssl_make_REQ(&req, csr, dn, attribs) == SUCCESS) { in PHP_FUNCTION()
3343 X509V3_set_ctx(&ext_ctx, NULL, NULL, csr, NULL, 0); in PHP_FUNCTION()
3348 &ext_ctx, req.request_extensions_section, csr)) in PHP_FUNCTION()
3354 if (X509_REQ_sign(csr, req.priv_key, req.digest)) { in PHP_FUNCTION()
3355 ZVAL_RES(return_value, zend_register_resource(csr, le_csr)); in PHP_FUNCTION()
3356 csr = NULL; in PHP_FUNCTION()
3380 if (csr) { in PHP_FUNCTION()
3381 X509_REQ_free(csr); in PHP_FUNCTION()
3395 X509_REQ * csr; in PHP_FUNCTION() local
3401 csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource); in PHP_FUNCTION()
3403 if (csr == NULL) { in PHP_FUNCTION()
3407 subject = X509_REQ_get_subject_name(csr); in PHP_FUNCTION()
3423 X509_REQ * csr; in PHP_FUNCTION() local
3430 csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource); in PHP_FUNCTION()
3432 if (csr == NULL) { in PHP_FUNCTION()
3442 csr = X509_REQ_dup(csr); in PHP_FUNCTION()
3445 tpubkey = X509_REQ_get_pubkey(csr); in PHP_FUNCTION()
3449 X509_REQ_free(csr); in PHP_FUNCTION()