Home
last modified time | relevance | path

Searched refs:peer_fingerprint (Results 1 – 4 of 4) sorted by relevance

/PHP-8.3/ext/openssl/tests/
H A Dbug68920.phpt2 Bug #68920: peer_fingerprint input checks should be strict
36 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => true]]);
40 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => null]]);
44 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => []]]);
48 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => ['foo']]]);
79 Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form require…
81 Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
88 Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form require…
90 Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
H A Dbug76705.phpt2 Bug #76705: unusable ssl => peer_fingerprint in stream_context_create()
31 'peer_fingerprint' => [
H A Dopenssl_peer_fingerprint_basic.phpt42 stream_context_set_option($clientCtx, 'ssl', 'peer_fingerprint', '%s');
45 stream_context_set_option($clientCtx, 'ssl', 'peer_fingerprint', [
74 Warning: stream_socket_client(): peer_fingerprint match failure in %s on line %d
/PHP-8.3/ext/openssl/
H A Dxp_ssl.c562 zval *peer_fingerprint; in php_openssl_apply_peer_verification_policy() local
580 peer_fingerprint = val; in php_openssl_apply_peer_verification_policy()
613 if (Z_TYPE_P(peer_fingerprint) == IS_STRING || Z_TYPE_P(peer_fingerprint) == IS_ARRAY) { in php_openssl_apply_peer_verification_policy()
614 if (!php_openssl_x509_fingerprint_match(peer, peer_fingerprint)) { in php_openssl_apply_peer_verification_policy()

Completed in 17 milliseconds