Lines Matching refs:val

619 static X509 * php_openssl_x509_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_D…
620 static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char * passphrase, int mak…
624 static X509_REQ * php_openssl_csr_from_zval(zval ** val, int makeresource, long * resourceval TSRML…
627 static void add_assoc_name_entry(zval * val, char * key, X509_NAME * name, int shortname TSRMLS_DC)… in add_assoc_name_entry() argument
642 subitem = val; in add_assoc_name_entry()
686 zend_hash_update(HASH_OF(val), key, strlen(key) + 1, (void *)&subitem, sizeof(subitem), NULL); in add_assoc_name_entry()
691 static void add_assoc_asn1_string(zval * val, char * key, ASN1_STRING * str) /* {{{ */ in add_assoc_asn1_string() argument
693 add_assoc_stringl(val, key, (char *)str->data, str->length, 1); in add_assoc_asn1_string()
1359 static X509 * php_openssl_x509_from_zval(zval ** val, int makeresource, long * resourceval TSRMLS_D… in php_openssl_x509_from_zval() argument
1366 if (Z_TYPE_PP(val) == IS_RESOURCE) { in php_openssl_x509_from_zval()
1371 what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509", &type, 1, le_x509); in php_openssl_x509_from_zval()
1377 *resourceval = Z_LVAL_PP(val); in php_openssl_x509_from_zval()
1387 if (!(Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_OBJECT)) { in php_openssl_x509_from_zval()
1392 convert_to_string_ex(val); in php_openssl_x509_from_zval()
1394 if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { in php_openssl_x509_from_zval()
1398 if (php_openssl_open_base_dir_chk(Z_STRVAL_PP(val) + (sizeof("file://") - 1) TSRMLS_CC)) { in php_openssl_x509_from_zval()
1402 in = BIO_new_file(Z_STRVAL_PP(val) + (sizeof("file://") - 1), "r"); in php_openssl_x509_from_zval()
1411 in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); in php_openssl_x509_from_zval()
2823 static X509_REQ * php_openssl_csr_from_zval(zval ** val, int makeresource, long * resourceval TSRML… in php_openssl_csr_from_zval() argument
2832 if (Z_TYPE_PP(val) == IS_RESOURCE) { in php_openssl_csr_from_zval()
2836 what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509 CSR", &type, 1, le_csr); in php_openssl_csr_from_zval()
2839 *resourceval = Z_LVAL_PP(val); in php_openssl_csr_from_zval()
2844 } else if (Z_TYPE_PP(val) != IS_STRING) { in php_openssl_csr_from_zval()
2848 if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { in php_openssl_csr_from_zval()
2849 filename = Z_STRVAL_PP(val) + (sizeof("file://") - 1); in php_openssl_csr_from_zval()
2857 in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); in php_openssl_csr_from_zval()
3243 static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char * passphrase, int mak… in php_openssl_evp_from_zval() argument
3263 if (Z_TYPE_PP(val) == IS_ARRAY) { in php_openssl_evp_from_zval()
3268 if (zend_hash_index_find(HASH_OF(*val), 1, (void **)&zphrase) == FAILURE) { in php_openssl_evp_from_zval()
3283 if (zend_hash_index_find(HASH_OF(*val), 0, (void **)&val) == FAILURE) { in php_openssl_evp_from_zval()
3289 if (Z_TYPE_PP(val) == IS_RESOURCE) { in php_openssl_evp_from_zval()
3293 what = zend_fetch_resource(val TSRMLS_CC, -1, "OpenSSL X.509/key", &type, 2, le_x509, le_key); in php_openssl_evp_from_zval()
3298 *resourceval = Z_LVAL_PP(val); in php_openssl_evp_from_zval()
3334 if (!(Z_TYPE_PP(val) == IS_STRING || Z_TYPE_PP(val) == IS_OBJECT)) { in php_openssl_evp_from_zval()
3337 convert_to_string_ex(val); in php_openssl_evp_from_zval()
3339 if (Z_STRLEN_PP(val) > 7 && memcmp(Z_STRVAL_PP(val), "file://", sizeof("file://") - 1) == 0) { in php_openssl_evp_from_zval()
3340 filename = Z_STRVAL_PP(val) + (sizeof("file://") - 1); in php_openssl_evp_from_zval()
3344 cert = php_openssl_x509_from_zval(val, 0, &cert_res TSRMLS_CC); in php_openssl_evp_from_zval()
3353 in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); in php_openssl_evp_from_zval()
3371 in = BIO_new_mem_buf(Z_STRVAL_PP(val), Z_STRLEN_PP(val)); in php_openssl_evp_from_zval()
4775 unsigned long val; in PHP_FUNCTION() local
4781 val = ERR_get_error(); in PHP_FUNCTION()
4782 if (val) { in PHP_FUNCTION()
4783 RETURN_STRING(ERR_error_string(val, buf), 1); in PHP_FUNCTION()