new_cert 2949 ext/openssl/openssl.c X509 * cert = NULL, *new_cert = NULL; new_cert 3006 ext/openssl/openssl.c new_cert = X509_new(); new_cert 3007 ext/openssl/openssl.c if (new_cert == NULL) { new_cert 3012 ext/openssl/openssl.c if (!X509_set_version(new_cert, 2)) new_cert 3016 ext/openssl/openssl.c ASN1_INTEGER_set(X509_get_serialNumber(new_cert), (long)serial); new_cert 3018 ext/openssl/openssl.c X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); new_cert 3021 ext/openssl/openssl.c cert = new_cert; new_cert 3023 ext/openssl/openssl.c if (!X509_set_issuer_name(new_cert, X509_get_subject_name(cert))) { new_cert 3026 ext/openssl/openssl.c X509_gmtime_adj(X509_get_notBefore(new_cert), 0); new_cert 3027 ext/openssl/openssl.c X509_gmtime_adj(X509_get_notAfter(new_cert), 60*60*24*(long)num_days); new_cert 3028 ext/openssl/openssl.c i = X509_set_pubkey(new_cert, key); new_cert 3035 ext/openssl/openssl.c X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); new_cert 3037 ext/openssl/openssl.c if (!X509V3_EXT_add_conf(req.req_config, &ctx, req.extensions_section, new_cert)) { new_cert 3043 ext/openssl/openssl.c if (!X509_sign(new_cert, priv_key, req.digest)) { new_cert 3049 ext/openssl/openssl.c ZVAL_RES(return_value, zend_register_resource(new_cert, le_x509)); new_cert 3050 ext/openssl/openssl.c new_cert = NULL; new_cert 3054 ext/openssl/openssl.c if (cert == new_cert) { new_cert 3071 ext/openssl/openssl.c if (new_cert) { new_cert 3072 ext/openssl/openssl.c X509_free(new_cert);