Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
1588a3ca
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1588a3ca
编写于
1月 26, 2011
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add new RAND errors
上级
7a4bd34a
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
21 addition
and
1 deletion
+21
-1
crypto/rand/rand.h
crypto/rand/rand.h
+10
-0
crypto/rand/rand_err.c
crypto/rand/rand_err.c
+11
-1
未找到文件。
crypto/rand/rand.h
浏览文件 @
1588a3ca
...
...
@@ -128,11 +128,21 @@ void ERR_load_RAND_strings(void);
/* Error codes for the RAND functions. */
/* Function codes. */
#define RAND_F_FIPS_RAND 102
#define RAND_F_FIPS_RAND_SET_DT 103
#define RAND_F_FIPS_SET_PRNG_SEED 104
#define RAND_F_FIPS_SET_TEST_MODE 105
#define RAND_F_RAND_GET_RAND_METHOD 101
#define RAND_F_SSLEAY_RAND_BYTES 100
/* Reason codes. */
#define RAND_R_NOT_IN_TEST_MODE 101
#define RAND_R_NO_KEY_SET 102
#define RAND_R_PRNG_ERROR 103
#define RAND_R_PRNG_KEYED 104
#define RAND_R_PRNG_NOT_SEEDED 100
#define RAND_R_PRNG_SEED_MUST_NOT_MATCH_KEY 105
#define RAND_R_PRNG_STUCK 106
#ifdef __cplusplus
}
...
...
crypto/rand/rand_err.c
浏览文件 @
1588a3ca
/* crypto/rand/rand_err.c */
/* ====================================================================
* Copyright (c) 1999-20
06
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-20
10
The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -70,6 +70,10 @@
static
ERR_STRING_DATA
RAND_str_functs
[]
=
{
{
ERR_FUNC
(
RAND_F_FIPS_RAND
),
"FIPS_RAND"
},
{
ERR_FUNC
(
RAND_F_FIPS_RAND_SET_DT
),
"FIPS_RAND_SET_DT"
},
{
ERR_FUNC
(
RAND_F_FIPS_SET_PRNG_SEED
),
"FIPS_SET_PRNG_SEED"
},
{
ERR_FUNC
(
RAND_F_FIPS_SET_TEST_MODE
),
"FIPS_SET_TEST_MODE"
},
{
ERR_FUNC
(
RAND_F_RAND_GET_RAND_METHOD
),
"RAND_get_rand_method"
},
{
ERR_FUNC
(
RAND_F_SSLEAY_RAND_BYTES
),
"SSLEAY_RAND_BYTES"
},
{
0
,
NULL
}
...
...
@@ -77,7 +81,13 @@ static ERR_STRING_DATA RAND_str_functs[]=
static
ERR_STRING_DATA
RAND_str_reasons
[]
=
{
{
ERR_REASON
(
RAND_R_NOT_IN_TEST_MODE
)
,
"not in test mode"
},
{
ERR_REASON
(
RAND_R_NO_KEY_SET
)
,
"no key set"
},
{
ERR_REASON
(
RAND_R_PRNG_ERROR
)
,
"prng error"
},
{
ERR_REASON
(
RAND_R_PRNG_KEYED
)
,
"prng keyed"
},
{
ERR_REASON
(
RAND_R_PRNG_NOT_SEEDED
)
,
"PRNG not seeded"
},
{
ERR_REASON
(
RAND_R_PRNG_SEED_MUST_NOT_MATCH_KEY
),
"prng seed must not match key"
},
{
ERR_REASON
(
RAND_R_PRNG_STUCK
)
,
"prng stuck"
},
{
0
,
NULL
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录