2 Star 0 Fork 0

alibaba/alibabacloud-dcdn-keyserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
lurk_openssl_1_1_1-stable.patch 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
nandsky 提交于 2024-11-11 19:46 . init version
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index 9af0c8995e..a55e6655c9 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -2442,6 +2442,7 @@ void SSL_set_allow_early_data_cb(SSL *s,
SSL_allow_early_data_cb_fn cb,
void *arg);
+void tls1_lookup_get_sig_and_md(uint16_t sigalg, int *psig, const EVP_MD **pmd);
# ifdef __cplusplus
}
# endif
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 5f657f888e..068a5d415e 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -2921,3 +2921,19 @@ uint8_t SSL_SESSION_get_max_fragment_length(const SSL_SESSION *session)
{
return session->ext.max_fragment_len_mode;
}
+
+void tls1_lookup_get_sig_and_md(uint16_t sigalg, int *psig, const EVP_MD **pmd)
+{
+ const EVP_MD *md = NULL;
+ const SIGALG_LOOKUP *lu = tls1_lookup_sigalg(sigalg);
+ if (!tls1_lookup_md(lu, &md))
+ return;
+ if (psig) {
+ if (lu)
+ *psig = lu->sig;
+ else
+ *psig = -1;
+ }
+ if(pmd)
+ *pmd = md;
+}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_alibaba/alibabacloud-dcdn-keyserver.git
git@gitee.com:mirrors_alibaba/alibabacloud-dcdn-keyserver.git
mirrors_alibaba
alibabacloud-dcdn-keyserver
alibabacloud-dcdn-keyserver
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385