Lines Matching refs:val

108 …(PHP_STREAM_CONTEXT(stream) && (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "s…
111 if (try_convert_to_string(val)) str = Z_STRVAL_P(val); \
114 if (GET_VER_OPT(name)) { num = zval_get_long(val); }
298 zval *val; in verify_callback() local
315 zend_is_true(val) in verify_callback()
345 static zend_bool php_openssl_x509_fingerprint_match(X509 *peer, zval *val) in php_openssl_x509_fingerprint_match() argument
347 if (Z_TYPE_P(val) == IS_STRING) { in php_openssl_x509_fingerprint_match()
350 switch (Z_STRLEN_P(val)) { in php_openssl_x509_fingerprint_match()
360 return method && php_openssl_x509_fingerprint_cmp(peer, method, Z_STRVAL_P(val)) == 0; in php_openssl_x509_fingerprint_match()
361 } else if (Z_TYPE_P(val) == IS_ARRAY) { in php_openssl_x509_fingerprint_match()
365 if (!zend_hash_num_elements(Z_ARRVAL_P(val))) { in php_openssl_x509_fingerprint_match()
370 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(val), key, current) { in php_openssl_x509_fingerprint_match()
512 zval *val = NULL; in php_openssl_apply_peer_verification_policy() local
523 ? zend_is_true(val) in php_openssl_apply_peer_verification_policy()
527 ? zend_is_true(val) in php_openssl_apply_peer_verification_policy()
531 peer_fingerprint = val; in php_openssl_apply_peer_verification_policy()
546 if (GET_VER_OPT("allow_self_signed") && zend_is_true(val)) { in php_openssl_apply_peer_verification_policy()
607 zval *val = NULL; in php_openssl_passwd_callback() local
614 if (Z_STRLEN_P(val) < (size_t)num - 1) { in php_openssl_passwd_callback()
615 memcpy(buf, Z_STRVAL_P(val), Z_STRLEN_P(val)+1); in php_openssl_passwd_callback()
616 return (int)Z_STRLEN_P(val); in php_openssl_passwd_callback()
637 zval *val; in php_openssl_win_cert_verify_callback() local
742 && GET_VER_OPT("allow_self_signed") && zend_is_true(val)) { in php_openssl_win_cert_verify_callback()
839 zval *val = NULL; in php_openssl_enable_peer_verification() local
900 zval *val = NULL; in php_openssl_set_local_cert() local
1098 zval *val; in php_openssl_limit_handshake_reneg() local
1103 if (PHP_STREAM_CONTEXT(stream) && (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), in php_openssl_limit_handshake_reneg()
1112 if (FAILURE == call_user_function_ex(NULL, NULL, val, &retval, 1, &param, 0, NULL)) { in php_openssl_limit_handshake_reneg()
1142 zval *val; in php_openssl_init_server_reneg_limit() local
1147 NULL != (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "reneg_limit")) in php_openssl_init_server_reneg_limit()
1149 limit = zval_get_long(val); in php_openssl_init_server_reneg_limit()
1158 NULL != (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "reneg_window")) in php_openssl_init_server_reneg_limit()
1160 window = zval_get_long(val); in php_openssl_init_server_reneg_limit()
1388 zval *val; in php_openssl_enable_server_sni() local
1397 if (GET_VER_OPT("SNI_enabled") && !zend_is_true(val)) { in php_openssl_enable_server_sni()
1406 if (Z_TYPE_P(val) != IS_ARRAY) { in php_openssl_enable_server_sni()
1413 sslsock->sni_cert_count = zend_hash_num_elements(Z_ARRVAL_P(val)); in php_openssl_enable_server_sni()
1426 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(val), key_index, key, current) { in php_openssl_enable_server_sni()
1515 zval *val; in php_openssl_enable_client_sni() local
1519 if (GET_VER_OPT("SNI_enabled") && !zend_is_true(val)) { in php_openssl_enable_client_sni()
1602 zval *val; in php_openssl_setup_crypto() local
1637 if (GET_VER_OPT("no_ticket") && zend_is_true(val)) { in php_openssl_setup_crypto()
1643 if (!GET_VER_OPT("disable_compression") || zend_is_true(val)) { in php_openssl_setup_crypto()
1647 if (GET_VER_OPT("verify_peer") && !zend_is_true(val)) { in php_openssl_setup_crypto()
1672 zend_long lval = zval_get_long(val); in php_openssl_setup_crypto()
1826 zval *val, zcert; in php_openssl_capture_peer_certs() local
1829 if (NULL != (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), in php_openssl_capture_peer_certs()
1831 zend_is_true(val) in php_openssl_capture_peer_certs()
1839 if (NULL != (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), in php_openssl_capture_peer_certs()
1841 zend_is_true(val) in php_openssl_capture_peer_certs()
1976 zval *val; in php_openssl_enable_crypto() local
1977 if (NULL != (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), in php_openssl_enable_crypto()
1985 if (val && zend_is_true(val)) { in php_openssl_enable_crypto()
2609 zval *val; in php_openssl_get_crypto_method() local
2611 if (ctx && (val = php_stream_context_get_option(ctx, "ssl", "crypto_method")) != NULL) { in php_openssl_get_crypto_method()
2612 crypto_method = zval_get_long(val); in php_openssl_get_crypto_method()