php / php/php-src

OpenSSL Stream Context SSL Session Reuse

未关闭
#20,367 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Category: Streams Extension: openssl Feature
主要语言
C
星标
40.4k
派生
8.1k
平均合并
2 天 13 小时
30 天内合并 PR
96

描述

Description

We have developed our own FTP client implementation using stream wrappers but we are unable to fully support FTPS on some servers that enforce SSL Session Reuse on the DATA connection.

I have tried to capture the session somehow from the stream context but this is not available.

I can see this has been fixed for the native FTP ext https://github.com/php/php-src/pull/12851

It would be useful if we could capture this and re-use it for new stream sessions when passing around context.

I am unsure if this already exists.

PHP 8.1/8.3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先审查 pull request 12851 中的原生 FTP 更改,以及此 issue 中描述的 stream-context 行为。确定是否已经可以捕获 SSL 会话数据并将其传递给新的流会话;完成的标准是定义并记录一种受支持的方式,使自定义 FTP 客户端能够为 FTPS-DATA 连接重用该会话。

由索引模型根据 Issue 内容生成。

评估

技术栈
c, php
领域
backend, networking, security
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。