new_cert 2943 ext/openssl/openssl.c X509 * cert = NULL, *new_cert = NULL; new_cert 3000 ext/openssl/openssl.c new_cert = X509_new(); new_cert 3001 ext/openssl/openssl.c if (new_cert == NULL) { new_cert 3006 ext/openssl/openssl.c if (!X509_set_version(new_cert, 2)) new_cert 3009 ext/openssl/openssl.c ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial); new_cert 3011 ext/openssl/openssl.c X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); new_cert 3014 ext/openssl/openssl.c cert = new_cert; new_cert 3016 ext/openssl/openssl.c if (!X509_set_issuer_name(new_cert, X509_get_subject_name(cert))) { new_cert 3019 ext/openssl/openssl.c X509_gmtime_adj(X509_get_notBefore(new_cert), 0); new_cert 3020 ext/openssl/openssl.c X509_gmtime_adj(X509_get_notAfter(new_cert), (long)60*60*24*num_days); new_cert 3021 ext/openssl/openssl.c i = X509_set_pubkey(new_cert, key); new_cert 3028 ext/openssl/openssl.c X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); new_cert 3030 ext/openssl/openssl.c if (!X509V3_EXT_add_conf(req.req_config, &ctx, req.extensions_section, new_cert)) { new_cert 3036 ext/openssl/openssl.c if (!X509_sign(new_cert, priv_key, req.digest)) { new_cert 3042 ext/openssl/openssl.c RETVAL_RESOURCE(zend_list_insert(new_cert, le_x509 TSRMLS_CC)); new_cert 3043 ext/openssl/openssl.c new_cert = NULL; new_cert 3047 ext/openssl/openssl.c if (cert == new_cert) { new_cert 3064 ext/openssl/openssl.c if (new_cert) { new_cert 3065 ext/openssl/openssl.c X509_free(new_cert);