【发布时间】:2015-04-07 15:34:26
【问题描述】:
我正在分别使用 openssl-fips-ecp-2.0.9 和 openssl-1.0.1j 为 FIPS 对象模块和兼容 FIPS 的 OpenSSL 构建。
其中一个 FIPS 编译成功。但是根据User Guide 使用 ./config 添加 fips 选项会给出错误:
march=mips32 -fomit-frame-pointer -Wall -Ifips/openssl-fips-ecp-2.0.9/include -DSHA1_ASM -DSHA256_ASM -DAES_ASM -c -o o_fips.o o_fips.c
o_fips.c:60:26: fatal error: openssl/fips.h: No such file or directory
compilation terminated.
make[6]: *** [o_fips.o] Error 1
crypto 的 Makefile 使用 o_fips.c & o_fips.c 有这样的代码:
#include "cryptlib.h"
#ifdef OPENSSL_FIPS
#include <openssl/fips.h>
#include <openssl/fips_rand.h>
#include <openssl/rand.h>
#endif
由于 1.0.1 版本之后库中没有要包含的 fips 文件夹。 有谁能帮帮我吗?
【问题讨论】: