Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
2f6efd6a
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看板
提交
2f6efd6a
编写于
5月 01, 2011
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some changes to support VxWorks in the validted module.
上级
823df31b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
2 deletion
+27
-2
Configure
Configure
+2
-0
config
config
+6
-0
fips/fips_canister.c
fips/fips_canister.c
+2
-0
fips/rand/fips_rand.c
fips/rand/fips_rand.c
+17
-2
未找到文件。
Configure
浏览文件 @
2f6efd6a
...
@@ -591,6 +591,8 @@ my %table=(
...
@@ -591,6 +591,8 @@ my %table=(
"OS2-EMX", "gcc::::::::",
"OS2-EMX", "gcc::::::::",
##### VxWorks for various targets
##### VxWorks for various targets
"vxworks-ppc60x","ccppc:-D_REENTRANT -mrtp -mhard-float -mstrict-align -fno-implicit-fp -DPPC32_fp60x -O2 -fstrength-reduce -fno-builtin -fno-strict-aliasing -Wall -DCPU=PPC32 -DTOOL_FAMILY=gnu -DTOOL=gnu -I\$(WIND_BASE)/target/usr/h -I\$(WIND_BASE)/target/usr/h/wrn/coreip:::VXWORKS:-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/common:::::",
"vxworks-ppcgen","ccppc:-D_REENTRANT -mrtp -msoft-float -mstrict-align -O1 -fno-builtin -fno-strict-aliasing -Wall -DCPU=PPC32 -DTOOL_FAMILY=gnu -DTOOL=gnu -I\$(WIND_BASE)/target/usr/h -I\$(WIND_BASE)/target/usr/h/wrn/coreip:::VXWORKS:-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/sfcommon:::::",
"vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",
"vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",
"vxworks-ppc750","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h \$(DEBUG_FLAG):::VXWORKS:-r:::::",
"vxworks-ppc750","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h \$(DEBUG_FLAG):::VXWORKS:-r:::::",
"vxworks-ppc750-debug","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g:::VXWORKS:-r:::::",
"vxworks-ppc750-debug","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g:::VXWORKS:-r:::::",
...
...
config
浏览文件 @
2f6efd6a
...
@@ -370,6 +370,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
...
@@ -370,6 +370,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
NONSTOP_KERNEL
*
)
NONSTOP_KERNEL
*
)
echo
"nsr-tandem-nsk"
;
exit
0
;
echo
"nsr-tandem-nsk"
;
exit
0
;
;;
;;
vxworks
*
)
echo
"
${
MACHINE
}
-whatever-vxworks"
;
exit
0
;
;;
esac
esac
#
#
...
@@ -583,6 +587,8 @@ case "$GUESSOS" in
...
@@ -583,6 +587,8 @@ case "$GUESSOS" in
OUT
=
"linux-ppc"
OUT
=
"linux-ppc"
;;
;;
ppc-
*
-linux2
)
OUT
=
"linux-ppc"
;;
ppc-
*
-linux2
)
OUT
=
"linux-ppc"
;;
ppc60x-
*
-vxworks
*
)
OUT
=
"vxworks-ppc60x"
;;
ppcgen-
*
-vxworks
*
)
OUT
=
"vxworks-ppcgen"
;;
ia64-
*
-linux
?
)
OUT
=
"linux-ia64"
;;
ia64-
*
-linux
?
)
OUT
=
"linux-ia64"
;;
sparc64-
*
-linux2
)
sparc64-
*
-linux2
)
echo
"WARNING! If you *know* that your GNU C supports 64-bit/V9 ABI"
echo
"WARNING! If you *know* that your GNU C supports 64-bit/V9 ABI"
...
...
fips/fips_canister.c
浏览文件 @
2f6efd6a
...
@@ -177,6 +177,8 @@ const void *FIPS_ref_point()
...
@@ -177,6 +177,8 @@ const void *FIPS_ref_point()
# else
# else
return
(
void
*
)
FIPS_ref_point
;
return
(
void
*
)
FIPS_ref_point
;
# endif
# endif
#elif defined(__vxworks)
return
(
void
*
)
FIPS_ref_point
;
/*
/*
* In case you wonder why there is no #ifdef __linux. All Linux targets
* In case you wonder why there is no #ifdef __linux. All Linux targets
* are GCC-based and therefore are covered by instruction_pointer above
* are GCC-based and therefore are covered by instruction_pointer above
...
...
fips/rand/fips_rand.c
浏览文件 @
2f6efd6a
...
@@ -66,8 +66,11 @@
...
@@ -66,8 +66,11 @@
#include <openssl/aes.h>
#include <openssl/aes.h>
#include <openssl/err.h>
#include <openssl/err.h>
#include <openssl/fips_rand.h>
#include <openssl/fips_rand.h>
#ifndef OPENSSL_SYS_WIN32
#if !(defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VXWORKS))
#include <sys/time.h>
# include <sys/time.h>
#endif
#if defined(OPENSSL_SYS_VXWORKS)
# include <time.h>
#endif
#endif
#include <assert.h>
#include <assert.h>
#ifndef OPENSSL_SYS_WIN32
#ifndef OPENSSL_SYS_WIN32
...
@@ -225,6 +228,8 @@ void FIPS_get_timevec(unsigned char *buf, unsigned long *pctr)
...
@@ -225,6 +228,8 @@ void FIPS_get_timevec(unsigned char *buf, unsigned long *pctr)
{
{
#ifdef OPENSSL_SYS_WIN32
#ifdef OPENSSL_SYS_WIN32
FILETIME
ft
;
FILETIME
ft
;
#elif defined(OPENSSL_SYS_VXWORKS)
struct
timespec
ts
;
#else
#else
struct
timeval
tv
;
struct
timeval
tv
;
#endif
#endif
...
@@ -243,6 +248,16 @@ void FIPS_get_timevec(unsigned char *buf, unsigned long *pctr)
...
@@ -243,6 +248,16 @@ void FIPS_get_timevec(unsigned char *buf, unsigned long *pctr)
buf
[
5
]
=
(
unsigned
char
)
((
ft
.
dwLowDateTime
>>
8
)
&
0xff
);
buf
[
5
]
=
(
unsigned
char
)
((
ft
.
dwLowDateTime
>>
8
)
&
0xff
);
buf
[
6
]
=
(
unsigned
char
)
((
ft
.
dwLowDateTime
>>
16
)
&
0xff
);
buf
[
6
]
=
(
unsigned
char
)
((
ft
.
dwLowDateTime
>>
16
)
&
0xff
);
buf
[
7
]
=
(
unsigned
char
)
((
ft
.
dwLowDateTime
>>
24
)
&
0xff
);
buf
[
7
]
=
(
unsigned
char
)
((
ft
.
dwLowDateTime
>>
24
)
&
0xff
);
#elif defined(OPENSSL_SYS_VXWORKS)
clock_gettime
(
CLOCK_REALTIME
,
&
ts
);
buf
[
0
]
=
(
unsigned
char
)
(
ts
.
tv_sec
&
0xff
);
buf
[
1
]
=
(
unsigned
char
)
((
ts
.
tv_sec
>>
8
)
&
0xff
);
buf
[
2
]
=
(
unsigned
char
)
((
ts
.
tv_sec
>>
16
)
&
0xff
);
buf
[
3
]
=
(
unsigned
char
)
((
ts
.
tv_sec
>>
24
)
&
0xff
);
buf
[
4
]
=
(
unsigned
char
)
(
ts
.
tv_nsec
&
0xff
);
buf
[
5
]
=
(
unsigned
char
)
((
ts
.
tv_nsec
>>
8
)
&
0xff
);
buf
[
6
]
=
(
unsigned
char
)
((
ts
.
tv_nsec
>>
16
)
&
0xff
);
buf
[
7
]
=
(
unsigned
char
)
((
ts
.
tv_nsec
>>
24
)
&
0xff
);
#else
#else
gettimeofday
(
&
tv
,
NULL
);
gettimeofday
(
&
tv
,
NULL
);
buf
[
0
]
=
(
unsigned
char
)
(
tv
.
tv_sec
&
0xff
);
buf
[
0
]
=
(
unsigned
char
)
(
tv
.
tv_sec
&
0xff
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录