Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
1c7b2c0e
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1c7b2c0e
编写于
9年前
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use unit64_t for CPUID and timestamp code
Reviewed-by:
N
Matt Caswell
<
matt@openssl.org
>
上级
c1a623c5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
23 deletion
+11
-23
crypto/cryptlib.c
crypto/cryptlib.c
+1
-5
crypto/x509v3/v3_scts.c
crypto/x509v3/v3_scts.c
+10
-18
未找到文件。
crypto/cryptlib.c
浏览文件 @
1c7b2c0e
...
...
@@ -134,11 +134,7 @@ unsigned int *OPENSSL_ia32cap_loc(void)
# if defined(OPENSSL_CPUID_OBJ) && !defined(OPENSSL_NO_ASM) && !defined(I386_ONLY)
# define OPENSSL_CPUID_SETUP
# if defined(_WIN32)
typedef
unsigned
__int64
IA32CAP
;
# else
typedef
unsigned
long
long
IA32CAP
;
# endif
typedef
uint64_t
IA32CAP
;
void
OPENSSL_cpuid_setup
(
void
)
{
static
int
trigger
=
0
;
...
...
This diff is collapsed.
Click to expand it.
crypto/x509v3/v3_scts.c
浏览文件 @
1c7b2c0e
...
...
@@ -71,22 +71,14 @@
#define n2s(c,s) ((s=(((unsigned int)(c[0]))<< 8)| \
(((unsigned int)(c[1])) )),c+=2)
#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
# define SCT_TIMESTAMP unsigned __int64
#elif defined(__arch64__)
# define SCT_TIMESTAMP unsigned long
#else
# define SCT_TIMESTAMP unsigned long long
#endif
#define n2l8(c,l) (l =((SCT_TIMESTAMP)(*((c)++)))<<56, \
l|=((SCT_TIMESTAMP)(*((c)++)))<<48, \
l|=((SCT_TIMESTAMP)(*((c)++)))<<40, \
l|=((SCT_TIMESTAMP)(*((c)++)))<<32, \
l|=((SCT_TIMESTAMP)(*((c)++)))<<24, \
l|=((SCT_TIMESTAMP)(*((c)++)))<<16, \
l|=((SCT_TIMESTAMP)(*((c)++)))<< 8, \
l|=((SCT_TIMESTAMP)(*((c)++))))
#define n2l8(c,l) (l =((uint64_t)(*((c)++)))<<56, \
l|=((uint64_t)(*((c)++)))<<48, \
l|=((uint64_t)(*((c)++)))<<40, \
l|=((uint64_t)(*((c)++)))<<32, \
l|=((uint64_t)(*((c)++)))<<24, \
l|=((uint64_t)(*((c)++)))<<16, \
l|=((uint64_t)(*((c)++)))<< 8, \
l|=((uint64_t)(*((c)++))))
typedef
struct
SCT_st
{
/* The encoded SCT */
...
...
@@ -99,7 +91,7 @@ typedef struct SCT_st {
unsigned
char
version
;
unsigned
char
*
logid
;
unsigned
short
logidlen
;
SCT_TIMESTAMP
timestamp
;
uint64_t
timestamp
;
unsigned
char
*
ext
;
unsigned
short
extlen
;
unsigned
char
hash_alg
;
...
...
@@ -149,7 +141,7 @@ static void tls12_signature_print(BIO *out, const unsigned char hash_alg,
BIO_printf
(
out
,
"%s"
,
OBJ_nid2ln
(
nid
));
}
static
void
timestamp_print
(
BIO
*
out
,
SCT_TIMESTAMP
timestamp
)
static
void
timestamp_print
(
BIO
*
out
,
uint64_t
timestamp
)
{
ASN1_GENERALIZEDTIME
*
gen
;
char
genstr
[
20
];
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部