Skip to content

Commit 8d195b6

Browse files
committed
php#53: Fix SSL client-server test certificate and handshake issues
- Replace corrupted base64 certificate with valid RSA 2048-bit cert - Use temporary files instead of data:// URIs for Windows OpenSSL compatibility - Add explicit TLS crypto methods for server and client contexts - Fix client SSL connection by adding ssl:// prefix to server address - Add proper cleanup of temporary certificate files
1 parent 4542ff8 commit 8d195b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/openssl/xp_ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,6 +2271,8 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
22712271
memcpy(clisockdata, sock, sizeof(clisockdata->s));
22722272

22732273
clisockdata->s.socket = clisock;
2274+
clisockdata->s.poll_event = NULL;
2275+
clisockdata->s.nonblocking_applied = false;
22742276
#ifdef __linux__
22752277
/* O_NONBLOCK is not inherited on Linux */
22762278
clisockdata->s.is_blocked = true;

0 commit comments

Comments
 (0)