Lines Matching refs:val

827 static X509 * php_openssl_x509_from_zval(zval * val, int makeresource, zend_resource **resourceval);
829 zval * val, int public_key, char *passphrase, size_t passphrase_len,
834 static X509_REQ * php_openssl_csr_from_zval(zval * val, int makeresource, zend_resource ** resource…
837 static void php_openssl_add_assoc_name_entry(zval * val, char * key, X509_NAME * name, int shortnam… in php_openssl_add_assoc_name_entry() argument
851 ZVAL_COPY_VALUE(&subitem, val); in php_openssl_add_assoc_name_entry()
906 zend_hash_str_update(Z_ARRVAL_P(val), key, strlen(key), &subitem); in php_openssl_add_assoc_name_entry()
911 static void php_openssl_add_assoc_asn1_string(zval * val, char * key, ASN1_STRING * str) /* {{{ */ in php_openssl_add_assoc_asn1_string() argument
913 add_assoc_stringl(val, key, (char *)str->data, str->length); in php_openssl_add_assoc_asn1_string()
1664 static X509 * php_openssl_x509_from_zval(zval * val, int makeresource, zend_resource **resourceval) in php_openssl_x509_from_zval() argument
1672 if (Z_TYPE_P(val) == IS_RESOURCE) { in php_openssl_x509_from_zval()
1675 zend_resource *res = Z_RES_P(val); in php_openssl_x509_from_zval()
1684 Z_ADDREF_P(val); in php_openssl_x509_from_zval()
1690 if (!(Z_TYPE_P(val) == IS_STRING || Z_TYPE_P(val) == IS_OBJECT)) { in php_openssl_x509_from_zval()
1695 convert_to_string_ex(val); in php_openssl_x509_from_zval()
1697 if (Z_STRLEN_P(val) > 7 && memcmp(Z_STRVAL_P(val), "file://", sizeof("file://") - 1) == 0) { in php_openssl_x509_from_zval()
1699 if (php_openssl_open_base_dir_chk(Z_STRVAL_P(val) + (sizeof("file://") - 1))) { in php_openssl_x509_from_zval()
1703 …in = BIO_new_file(Z_STRVAL_P(val) + (sizeof("file://") - 1), PHP_OPENSSL_BIO_MODE_R(PKCS7_BINARY)); in php_openssl_x509_from_zval()
1712 in = BIO_new_mem_buf(Z_STRVAL_P(val), (int)Z_STRLEN_P(val)); in php_openssl_x509_from_zval()
3218 static X509_REQ * php_openssl_csr_from_zval(zval * val, int makeresource, zend_resource **resourcev… in php_openssl_csr_from_zval() argument
3227 if (Z_TYPE_P(val) == IS_RESOURCE) { in php_openssl_csr_from_zval()
3229 zend_resource *res = Z_RES_P(val); in php_openssl_csr_from_zval()
3236 Z_ADDREF_P(val); in php_openssl_csr_from_zval()
3242 } else if (Z_TYPE_P(val) != IS_STRING) { in php_openssl_csr_from_zval()
3246 if (Z_STRLEN_P(val) > 7 && memcmp(Z_STRVAL_P(val), "file://", sizeof("file://") - 1) == 0) { in php_openssl_csr_from_zval()
3247 filename = Z_STRVAL_P(val) + (sizeof("file://") - 1); in php_openssl_csr_from_zval()
3255 in = BIO_new_mem_buf(Z_STRVAL_P(val), (int)Z_STRLEN_P(val)); in php_openssl_csr_from_zval()
3726 zval * val, int public_key, char *passphrase, size_t passphrase_len, in php_openssl_evp_from_zval() argument
3747 if (Z_TYPE_P(val) == IS_ARRAY) { in php_openssl_evp_from_zval()
3752 if ((zphrase = zend_hash_index_find(Z_ARRVAL_P(val), 1)) == NULL) { in php_openssl_evp_from_zval()
3768 if ((val = zend_hash_index_find(Z_ARRVAL_P(val), 0)) == NULL) { in php_openssl_evp_from_zval()
3774 if (Z_TYPE_P(val) == IS_RESOURCE) { in php_openssl_evp_from_zval()
3776 zend_resource * res = Z_RES_P(val); in php_openssl_evp_from_zval()
3784 Z_ADDREF_P(val); in php_openssl_evp_from_zval()
3820 if (!(Z_TYPE_P(val) == IS_STRING || Z_TYPE_P(val) == IS_OBJECT)) { in php_openssl_evp_from_zval()
3823 convert_to_string_ex(val); in php_openssl_evp_from_zval()
3825 if (Z_STRLEN_P(val) > 7 && memcmp(Z_STRVAL_P(val), "file://", sizeof("file://") - 1) == 0) { in php_openssl_evp_from_zval()
3826 filename = Z_STRVAL_P(val) + (sizeof("file://") - 1); in php_openssl_evp_from_zval()
3833 cert = php_openssl_x509_from_zval(val, 0, &cert_res); in php_openssl_evp_from_zval()
3842 in = BIO_new_mem_buf(Z_STRVAL_P(val), (int)Z_STRLEN_P(val)); in php_openssl_evp_from_zval()
3858 in = BIO_new_mem_buf(Z_STRVAL_P(val), (int)Z_STRLEN_P(val)); in php_openssl_evp_from_zval()
5866 unsigned long val; in PHP_FUNCTION() local
5879 val = OPENSSL_G(errors)->buffer[OPENSSL_G(errors)->bottom]; in PHP_FUNCTION()
5881 if (val) { in PHP_FUNCTION()
5882 ERR_error_string_n(val, buf, 256); in PHP_FUNCTION()
6795 if (php_win32_get_random_bytes((unsigned char*)buffer->val, (size_t) buffer_length) == FAILURE){ in PHP_FUNCTION()