Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
29dc3508
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
9
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看板
提交
29dc3508
编写于
4月 12, 2005
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rebuild error codes.
上级
bc3cae7e
变更
29
展开全部
隐藏空白更改
内联
并排
Showing
29 changed file
with
1874 addition
and
1781 deletion
+1874
-1781
crypto/asn1/asn1_err.c
crypto/asn1/asn1_err.c
+193
-189
crypto/bio/bio_err.c
crypto/bio/bio_err.c
+67
-64
crypto/bn/bn_err.c
crypto/bn/bn_err.c
+55
-52
crypto/buffer/buf_err.c
crypto/buffer/buf_err.c
+12
-8
crypto/comp/comp_err.c
crypto/comp/comp_err.c
+7
-4
crypto/conf/conf_err.c
crypto/conf/conf_err.c
+41
-38
crypto/cpt_err.c
crypto/cpt_err.c
+17
-13
crypto/crypto.h
crypto/crypto.h
+0
-3
crypto/dh/dh_err.c
crypto/dh/dh_err.c
+15
-12
crypto/dsa/dsa_err.c
crypto/dsa/dsa_err.c
+23
-20
crypto/dso/dso_err.c
crypto/dso/dso_err.c
+59
-56
crypto/ec/ec.h
crypto/ec/ec.h
+0
-4
crypto/ec/ec_err.c
crypto/ec/ec_err.c
+146
-142
crypto/ecdh/ech_err.c
crypto/ecdh/ech_err.c
+12
-8
crypto/ecdsa/ecs_err.c
crypto/ecdsa/ecs_err.c
+17
-14
crypto/engine/eng_err.c
crypto/engine/eng_err.c
+81
-77
crypto/evp/evp_err.c
crypto/evp/evp_err.c
+84
-80
crypto/objects/obj_err.c
crypto/objects/obj_err.c
+16
-12
crypto/ocsp/ocsp_err.c
crypto/ocsp/ocsp_err.c
+54
-50
crypto/pem/pem_err.c
crypto/pem/pem_err.c
+46
-42
crypto/pkcs12/pk12err.c
crypto/pkcs12/pk12err.c
+54
-50
crypto/pkcs7/pkcs7err.c
crypto/pkcs7/pkcs7err.c
+78
-74
crypto/rand/rand_err.c
crypto/rand/rand_err.c
+10
-6
crypto/rsa/rsa_err.c
crypto/rsa/rsa_err.c
+64
-60
crypto/store/str_err.c
crypto/store/str_err.c
+121
-117
crypto/ui/ui_err.c
crypto/ui/ui_err.c
+26
-22
crypto/x509/x509_err.c
crypto/x509/x509_err.c
+72
-68
crypto/x509v3/v3err.c
crypto/x509v3/v3err.c
+117
-113
ssl/ssl_err.c
ssl/ssl_err.c
+387
-383
未找到文件。
crypto/asn1/asn1_err.c
浏览文件 @
29dc3508
此差异已折叠。
点击以展开。
crypto/bio/bio_err.c
浏览文件 @
29dc3508
/* crypto/bio/bio_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -61,77 +61,80 @@
#include <stdio.h>
#include <openssl/err.h>
#include <openssl/bio.h>
#include <openssl/opensslconf.h>
/* To see if OPENSSL_NO_ERR is defined */
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_BIO,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_BIO,0,reason)
static
ERR_STRING_DATA
BIO_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
BIO_F_ACPT_STATE
,
0
),
"ACPT_STATE"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_ACCEPT
,
0
),
"BIO_accept"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_BER_GET_HEADER
,
0
),
"BIO_BER_GET_HEADER"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_CTRL
,
0
),
"BIO_ctrl"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_GETHOSTBYNAME
,
0
),
"BIO_gethostbyname"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_GETS
,
0
),
"BIO_gets"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_GET_ACCEPT_SOCKET
,
0
),
"BIO_get_accept_socket"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_GET_HOST_IP
,
0
),
"BIO_get_host_ip"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_GET_PORT
,
0
),
"BIO_get_port"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_MAKE_PAIR
,
0
),
"BIO_MAKE_PAIR"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_NEW
,
0
),
"BIO_new"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_NEW_FILE
,
0
),
"BIO_new_file"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_NEW_MEM_BUF
,
0
),
"BIO_new_mem_buf"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_NREAD
,
0
),
"BIO_nread"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_NREAD0
,
0
),
"BIO_nread0"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_NWRITE
,
0
),
"BIO_nwrite"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_NWRITE0
,
0
),
"BIO_nwrite0"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_PUTS
,
0
),
"BIO_puts"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_READ
,
0
),
"BIO_read"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_SOCK_INIT
,
0
),
"BIO_sock_init"
},
{
ERR_
PACK
(
0
,
BIO_F_BIO_WRITE
,
0
),
"BIO_write"
},
{
ERR_
PACK
(
0
,
BIO_F_BUFFER_CTRL
,
0
),
"BUFFER_CTRL"
},
{
ERR_
PACK
(
0
,
BIO_F_CONN_CTRL
,
0
),
"CONN_CTRL"
},
{
ERR_
PACK
(
0
,
BIO_F_CONN_STATE
,
0
),
"CONN_STATE"
},
{
ERR_
PACK
(
0
,
BIO_F_FILE_CTRL
,
0
),
"FILE_CTRL"
},
{
ERR_
PACK
(
0
,
BIO_F_FILE_READ
,
0
),
"FILE_READ"
},
{
ERR_
PACK
(
0
,
BIO_F_LINEBUFFER_CTRL
,
0
),
"LINEBUFFER_CTRL"
},
{
ERR_
PACK
(
0
,
BIO_F_MEM_READ
,
0
),
"MEM_READ"
},
{
ERR_
PACK
(
0
,
BIO_F_MEM_WRITE
,
0
),
"MEM_WRITE"
},
{
ERR_
PACK
(
0
,
BIO_F_SSL_NEW
,
0
),
"SSL_new"
},
{
ERR_
PACK
(
0
,
BIO_F_WSASTARTUP
,
0
),
"WSASTARTUP"
},
{
ERR_
FUNC
(
BIO_F_ACPT_STATE
),
"ACPT_STATE"
},
{
ERR_
FUNC
(
BIO_F_BIO_ACCEPT
),
"BIO_accept"
},
{
ERR_
FUNC
(
BIO_F_BIO_BER_GET_HEADER
),
"BIO_BER_GET_HEADER"
},
{
ERR_
FUNC
(
BIO_F_BIO_CTRL
),
"BIO_ctrl"
},
{
ERR_
FUNC
(
BIO_F_BIO_GETHOSTBYNAME
),
"BIO_gethostbyname"
},
{
ERR_
FUNC
(
BIO_F_BIO_GETS
),
"BIO_gets"
},
{
ERR_
FUNC
(
BIO_F_BIO_GET_ACCEPT_SOCKET
),
"BIO_get_accept_socket"
},
{
ERR_
FUNC
(
BIO_F_BIO_GET_HOST_IP
),
"BIO_get_host_ip"
},
{
ERR_
FUNC
(
BIO_F_BIO_GET_PORT
),
"BIO_get_port"
},
{
ERR_
FUNC
(
BIO_F_BIO_MAKE_PAIR
),
"BIO_MAKE_PAIR"
},
{
ERR_
FUNC
(
BIO_F_BIO_NEW
),
"BIO_new"
},
{
ERR_
FUNC
(
BIO_F_BIO_NEW_FILE
),
"BIO_new_file"
},
{
ERR_
FUNC
(
BIO_F_BIO_NEW_MEM_BUF
),
"BIO_new_mem_buf"
},
{
ERR_
FUNC
(
BIO_F_BIO_NREAD
),
"BIO_nread"
},
{
ERR_
FUNC
(
BIO_F_BIO_NREAD
0
),
"BIO_nread0"
},
{
ERR_
FUNC
(
BIO_F_BIO_NWRITE
),
"BIO_nwrite"
},
{
ERR_
FUNC
(
BIO_F_BIO_NWRITE
0
),
"BIO_nwrite0"
},
{
ERR_
FUNC
(
BIO_F_BIO_PUTS
),
"BIO_puts"
},
{
ERR_
FUNC
(
BIO_F_BIO_READ
),
"BIO_read"
},
{
ERR_
FUNC
(
BIO_F_BIO_SOCK_INIT
),
"BIO_sock_init"
},
{
ERR_
FUNC
(
BIO_F_BIO_WRITE
),
"BIO_write"
},
{
ERR_
FUNC
(
BIO_F_BUFFER_CTRL
),
"BUFFER_CTRL"
},
{
ERR_
FUNC
(
BIO_F_CONN_CTRL
),
"CONN_CTRL"
},
{
ERR_
FUNC
(
BIO_F_CONN_STATE
),
"CONN_STATE"
},
{
ERR_
FUNC
(
BIO_F_FILE_CTRL
),
"FILE_CTRL"
},
{
ERR_
FUNC
(
BIO_F_FILE_READ
),
"FILE_READ"
},
{
ERR_
FUNC
(
BIO_F_LINEBUFFER_CTRL
),
"LINEBUFFER_CTRL"
},
{
ERR_
FUNC
(
BIO_F_MEM_READ
),
"MEM_READ"
},
{
ERR_
FUNC
(
BIO_F_MEM_WRITE
),
"MEM_WRITE"
},
{
ERR_
FUNC
(
BIO_F_SSL_NEW
),
"SSL_new"
},
{
ERR_
FUNC
(
BIO_F_WSASTARTUP
),
"WSASTARTUP"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
BIO_str_reasons
[]
=
{
{
BIO_R_ACCEPT_ERROR
,
"accept error"
},
{
BIO_R_BAD_FOPEN_MODE
,
"bad fopen mode"
},
{
BIO_R_BAD_HOSTNAME_LOOKUP
,
"bad hostname lookup"
},
{
BIO_R_BROKEN_PIPE
,
"broken pipe"
},
{
BIO_R_CONNECT_ERROR
,
"connect error"
},
{
BIO_R_EOF_ON_MEMORY_BIO
,
"EOF on memory BIO"
},
{
BIO_R_ERROR_SETTING_NBIO
,
"error setting nbio"
},
{
BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET
,
"error setting nbio on accepted socket"
},
{
BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET
,
"error setting nbio on accept socket"
},
{
BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET
,
"gethostbyname addr is not af inet"
},
{
BIO_R_INVALID_ARGUMENT
,
"invalid argument"
},
{
BIO_R_INVALID_IP_ADDRESS
,
"invalid ip address"
},
{
BIO_R_IN_USE
,
"in use"
},
{
BIO_R_KEEPALIVE
,
"keepalive"
},
{
BIO_R_NBIO_CONNECT_ERROR
,
"nbio connect error"
},
{
BIO_R_NO_ACCEPT_PORT_SPECIFIED
,
"no accept port specified"
},
{
BIO_R_NO_HOSTNAME_SPECIFIED
,
"no hostname specified"
},
{
BIO_R_NO_PORT_DEFINED
,
"no port defined"
},
{
BIO_R_NO_PORT_SPECIFIED
,
"no port specified"
},
{
BIO_R_NO_SUCH_FILE
,
"no such file"
},
{
BIO_R_NULL_PARAMETER
,
"null parameter"
},
{
BIO_R_TAG_MISMATCH
,
"tag mismatch"
},
{
BIO_R_UNABLE_TO_BIND_SOCKET
,
"unable to bind socket"
},
{
BIO_R_UNABLE_TO_CREATE_SOCKET
,
"unable to create socket"
},
{
BIO_R_UNABLE_TO_LISTEN_SOCKET
,
"unable to listen socket"
},
{
BIO_R_UNINITIALIZED
,
"uninitialized"
},
{
BIO_R_UNSUPPORTED_METHOD
,
"unsupported method"
},
{
BIO_R_WRITE_TO_READ_ONLY_BIO
,
"write to read only BIO"
},
{
BIO_R_WSASTARTUP
,
"WSAStartup"
},
{
ERR_REASON
(
BIO_R_ACCEPT_ERROR
)
,
"accept error"
},
{
ERR_REASON
(
BIO_R_BAD_FOPEN_MODE
)
,
"bad fopen mode"
},
{
ERR_REASON
(
BIO_R_BAD_HOSTNAME_LOOKUP
)
,
"bad hostname lookup"
},
{
ERR_REASON
(
BIO_R_BROKEN_PIPE
)
,
"broken pipe"
},
{
ERR_REASON
(
BIO_R_CONNECT_ERROR
)
,
"connect error"
},
{
ERR_REASON
(
BIO_R_EOF_ON_MEMORY_BIO
)
,
"EOF on memory BIO"
},
{
ERR_REASON
(
BIO_R_ERROR_SETTING_NBIO
)
,
"error setting nbio"
},
{
ERR_REASON
(
BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET
)
,
"error setting nbio on accepted socket"
},
{
ERR_REASON
(
BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET
)
,
"error setting nbio on accept socket"
},
{
ERR_REASON
(
BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET
)
,
"gethostbyname addr is not af inet"
},
{
ERR_REASON
(
BIO_R_INVALID_ARGUMENT
)
,
"invalid argument"
},
{
ERR_REASON
(
BIO_R_INVALID_IP_ADDRESS
)
,
"invalid ip address"
},
{
ERR_REASON
(
BIO_R_IN_USE
)
,
"in use"
},
{
ERR_REASON
(
BIO_R_KEEPALIVE
)
,
"keepalive"
},
{
ERR_REASON
(
BIO_R_NBIO_CONNECT_ERROR
)
,
"nbio connect error"
},
{
ERR_REASON
(
BIO_R_NO_ACCEPT_PORT_SPECIFIED
)
,
"no accept port specified"
},
{
ERR_REASON
(
BIO_R_NO_HOSTNAME_SPECIFIED
)
,
"no hostname specified"
},
{
ERR_REASON
(
BIO_R_NO_PORT_DEFINED
)
,
"no port defined"
},
{
ERR_REASON
(
BIO_R_NO_PORT_SPECIFIED
)
,
"no port specified"
},
{
ERR_REASON
(
BIO_R_NO_SUCH_FILE
)
,
"no such file"
},
{
ERR_REASON
(
BIO_R_NULL_PARAMETER
)
,
"null parameter"
},
{
ERR_REASON
(
BIO_R_TAG_MISMATCH
)
,
"tag mismatch"
},
{
ERR_REASON
(
BIO_R_UNABLE_TO_BIND_SOCKET
)
,
"unable to bind socket"
},
{
ERR_REASON
(
BIO_R_UNABLE_TO_CREATE_SOCKET
)
,
"unable to create socket"
},
{
ERR_REASON
(
BIO_R_UNABLE_TO_LISTEN_SOCKET
)
,
"unable to listen socket"
},
{
ERR_REASON
(
BIO_R_UNINITIALIZED
)
,
"uninitialized"
},
{
ERR_REASON
(
BIO_R_UNSUPPORTED_METHOD
)
,
"unsupported method"
},
{
ERR_REASON
(
BIO_R_WRITE_TO_READ_ONLY_BIO
)
,
"write to read only BIO"
},
{
ERR_REASON
(
BIO_R_WSASTARTUP
)
,
"WSAStartup"
},
{
0
,
NULL
}
};
...
...
@@ -145,8 +148,8 @@ void ERR_load_BIO_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_BIO
,
BIO_str_functs
);
ERR_load_strings
(
ERR_LIB_BIO
,
BIO_str_reasons
);
ERR_load_strings
(
0
,
BIO_str_functs
);
ERR_load_strings
(
0
,
BIO_str_reasons
);
#endif
}
...
...
crypto/bn/bn_err.c
浏览文件 @
29dc3508
/* crypto/bn/bn_err.c */
/* ====================================================================
* Copyright (c) 1999-200
2
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -61,65 +61,68 @@
#include <stdio.h>
#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/opensslconf.h>
/* To see if OPENSSL_NO_ERR is defined */
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_BN,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_BN,0,reason)
static
ERR_STRING_DATA
BN_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
BN_F_BN_BLINDING_CONVERT
,
0
),
"BN_BLINDING_convert"
},
{
ERR_
PACK
(
0
,
BN_F_BN_BLINDING_INVERT
,
0
),
"BN_BLINDING_invert"
},
{
ERR_
PACK
(
0
,
BN_F_BN_BLINDING_NEW
,
0
),
"BN_BLINDING_new"
},
{
ERR_
PACK
(
0
,
BN_F_BN_BLINDING_UPDATE
,
0
),
"BN_BLINDING_update"
},
{
ERR_
PACK
(
0
,
BN_F_BN_BN2DEC
,
0
),
"BN_bn2dec"
},
{
ERR_
PACK
(
0
,
BN_F_BN_BN2HEX
,
0
),
"BN_bn2hex"
},
{
ERR_
PACK
(
0
,
BN_F_BN_CTX_GET
,
0
),
"BN_CTX_get"
},
{
ERR_
PACK
(
0
,
BN_F_BN_CTX_NEW
,
0
),
"BN_CTX_new"
},
{
ERR_
PACK
(
0
,
BN_F_BN_DIV
,
0
),
"BN_div"
},
{
ERR_
PACK
(
0
,
BN_F_BN_EXPAND2
,
0
),
"bn_expand2"
},
{
ERR_
PACK
(
0
,
BN_F_BN_EXPAND_INTERNAL
,
0
),
"BN_EXPAND_INTERNAL"
},
{
ERR_
PACK
(
0
,
BN_F_BN_GF2M_MOD
,
0
),
"BN_GF2m_mod"
},
{
ERR_
PACK
(
0
,
BN_F_BN_GF2M_MOD_DIV
,
0
),
"BN_GF2m_mod_div"
},
{
ERR_
PACK
(
0
,
BN_F_BN_GF2M_MOD_EXP
,
0
),
"BN_GF2m_mod_exp"
},
{
ERR_
PACK
(
0
,
BN_F_BN_GF2M_MOD_MUL
,
0
),
"BN_GF2m_mod_mul"
},
{
ERR_
PACK
(
0
,
BN_F_BN_GF2M_MOD_SOLVE_QUAD
,
0
),
"BN_GF2m_mod_solve_quad"
},
{
ERR_
PACK
(
0
,
BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR
,
0
),
"BN_GF2m_mod_solve_quad_arr"
},
{
ERR_
PACK
(
0
,
BN_F_BN_GF2M_MOD_SQR
,
0
),
"BN_GF2m_mod_sqr"
},
{
ERR_
PACK
(
0
,
BN_F_BN_MOD_EXP2_MONT
,
0
),
"BN_mod_exp2_mont"
},
{
ERR_
PACK
(
0
,
BN_F_BN_MOD_EXP_MONT
,
0
),
"BN_mod_exp_mont"
},
{
ERR_
PACK
(
0
,
BN_F_BN_MOD_EXP_MONT_WORD
,
0
),
"BN_mod_exp_mont_word"
},
{
ERR_
PACK
(
0
,
BN_F_BN_MOD_INVERSE
,
0
),
"BN_mod_inverse"
},
{
ERR_
PACK
(
0
,
BN_F_BN_MOD_LSHIFT_QUICK
,
0
),
"BN_mod_lshift_quick"
},
{
ERR_
PACK
(
0
,
BN_F_BN_MOD_MUL_RECIPROCAL
,
0
),
"BN_mod_mul_reciprocal"
},
{
ERR_
PACK
(
0
,
BN_F_BN_MOD_SQRT
,
0
),
"BN_mod_sqrt"
},
{
ERR_
PACK
(
0
,
BN_F_BN_MPI2BN
,
0
),
"BN_mpi2bn"
},
{
ERR_
PACK
(
0
,
BN_F_BN_NEW
,
0
),
"BN_new"
},
{
ERR_
PACK
(
0
,
BN_F_BN_RAND
,
0
),
"BN_rand"
},
{
ERR_
PACK
(
0
,
BN_F_BN_RAND_RANGE
,
0
),
"BN_rand_range"
},
{
ERR_
PACK
(
0
,
BN_F_BN_USUB
,
0
),
"BN_usub"
},
{
ERR_
FUNC
(
BN_F_BN_BLINDING_CONVERT
),
"BN_BLINDING_convert"
},
{
ERR_
FUNC
(
BN_F_BN_BLINDING_INVERT
),
"BN_BLINDING_invert"
},
{
ERR_
FUNC
(
BN_F_BN_BLINDING_NEW
),
"BN_BLINDING_new"
},
{
ERR_
FUNC
(
BN_F_BN_BLINDING_UPDATE
),
"BN_BLINDING_update"
},
{
ERR_
FUNC
(
BN_F_BN_BN2DEC
),
"BN_bn2dec"
},
{
ERR_
FUNC
(
BN_F_BN_BN2HEX
),
"BN_bn2hex"
},
{
ERR_
FUNC
(
BN_F_BN_CTX_GET
),
"BN_CTX_get"
},
{
ERR_
FUNC
(
BN_F_BN_CTX_NEW
),
"BN_CTX_new"
},
{
ERR_
FUNC
(
BN_F_BN_DIV
),
"BN_div"
},
{
ERR_
FUNC
(
BN_F_BN_EXPAND2
),
"bn_expand2"
},
{
ERR_
FUNC
(
BN_F_BN_EXPAND_INTERNAL
),
"BN_EXPAND_INTERNAL"
},
{
ERR_
FUNC
(
BN_F_BN_GF2M_MOD
),
"BN_GF2m_mod"
},
{
ERR_
FUNC
(
BN_F_BN_GF2M_MOD_DIV
),
"BN_GF2m_mod_div"
},
{
ERR_
FUNC
(
BN_F_BN_GF2M_MOD_EXP
),
"BN_GF2m_mod_exp"
},
{
ERR_
FUNC
(
BN_F_BN_GF2M_MOD_MUL
),
"BN_GF2m_mod_mul"
},
{
ERR_
FUNC
(
BN_F_BN_GF2M_MOD_SOLVE_QUAD
),
"BN_GF2m_mod_solve_quad"
},
{
ERR_
FUNC
(
BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR
),
"BN_GF2m_mod_solve_quad_arr"
},
{
ERR_
FUNC
(
BN_F_BN_GF2M_MOD_SQR
),
"BN_GF2m_mod_sqr"
},
{
ERR_
FUNC
(
BN_F_BN_MOD_EXP2_MONT
),
"BN_mod_exp2_mont"
},
{
ERR_
FUNC
(
BN_F_BN_MOD_EXP_MONT
),
"BN_mod_exp_mont"
},
{
ERR_
FUNC
(
BN_F_BN_MOD_EXP_MONT_WORD
),
"BN_mod_exp_mont_word"
},
{
ERR_
FUNC
(
BN_F_BN_MOD_INVERSE
),
"BN_mod_inverse"
},
{
ERR_
FUNC
(
BN_F_BN_MOD_LSHIFT_QUICK
),
"BN_mod_lshift_quick"
},
{
ERR_
FUNC
(
BN_F_BN_MOD_MUL_RECIPROCAL
),
"BN_mod_mul_reciprocal"
},
{
ERR_
FUNC
(
BN_F_BN_MOD_SQRT
),
"BN_mod_sqrt"
},
{
ERR_
FUNC
(
BN_F_BN_MPI2BN
),
"BN_mpi2bn"
},
{
ERR_
FUNC
(
BN_F_BN_NEW
),
"BN_new"
},
{
ERR_
FUNC
(
BN_F_BN_RAND
),
"BN_rand"
},
{
ERR_
FUNC
(
BN_F_BN_RAND_RANGE
),
"BN_rand_range"
},
{
ERR_
FUNC
(
BN_F_BN_USUB
),
"BN_usub"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
BN_str_reasons
[]
=
{
{
BN_R_ARG2_LT_ARG3
,
"arg2 lt arg3"
},
{
BN_R_BAD_RECIPROCAL
,
"bad reciprocal"
},
{
BN_R_BIGNUM_TOO_LONG
,
"bignum too long"
},
{
BN_R_CALLED_WITH_EVEN_MODULUS
,
"called with even modulus"
},
{
BN_R_DIV_BY_ZERO
,
"div by zero"
},
{
BN_R_ENCODING_ERROR
,
"encoding error"
},
{
BN_R_EXPAND_ON_STATIC_BIGNUM_DATA
,
"expand on static bignum data"
},
{
BN_R_INPUT_NOT_REDUCED
,
"input not reduced"
},
{
BN_R_INVALID_LENGTH
,
"invalid length"
},
{
BN_R_INVALID_RANGE
,
"invalid range"
},
{
BN_R_NOT_A_SQUARE
,
"not a square"
},
{
BN_R_NOT_IMPLEMENTED
,
"not implemented"
},
{
BN_R_NOT_INITIALIZED
,
"not initialized"
},
{
BN_R_NO_INVERSE
,
"no inverse"
},
{
BN_R_NO_SOLUTION
,
"no solution"
},
{
BN_R_P_IS_NOT_PRIME
,
"p is not prime"
},
{
BN_R_TOO_MANY_ITERATIONS
,
"too many iterations"
},
{
BN_R_TOO_MANY_TEMPORARY_VARIABLES
,
"too many temporary variables"
},
{
ERR_REASON
(
BN_R_ARG2_LT_ARG3
)
,
"arg2 lt arg3"
},
{
ERR_REASON
(
BN_R_BAD_RECIPROCAL
)
,
"bad reciprocal"
},
{
ERR_REASON
(
BN_R_BIGNUM_TOO_LONG
)
,
"bignum too long"
},
{
ERR_REASON
(
BN_R_CALLED_WITH_EVEN_MODULUS
)
,
"called with even modulus"
},
{
ERR_REASON
(
BN_R_DIV_BY_ZERO
)
,
"div by zero"
},
{
ERR_REASON
(
BN_R_ENCODING_ERROR
)
,
"encoding error"
},
{
ERR_REASON
(
BN_R_EXPAND_ON_STATIC_BIGNUM_DATA
)
,
"expand on static bignum data"
},
{
ERR_REASON
(
BN_R_INPUT_NOT_REDUCED
)
,
"input not reduced"
},
{
ERR_REASON
(
BN_R_INVALID_LENGTH
)
,
"invalid length"
},
{
ERR_REASON
(
BN_R_INVALID_RANGE
)
,
"invalid range"
},
{
ERR_REASON
(
BN_R_NOT_A_SQUARE
)
,
"not a square"
},
{
ERR_REASON
(
BN_R_NOT_IMPLEMENTED
)
,
"not implemented"
},
{
ERR_REASON
(
BN_R_NOT_INITIALIZED
)
,
"not initialized"
},
{
ERR_REASON
(
BN_R_NO_INVERSE
)
,
"no inverse"
},
{
ERR_REASON
(
BN_R_NO_SOLUTION
)
,
"no solution"
},
{
ERR_REASON
(
BN_R_P_IS_NOT_PRIME
)
,
"p is not prime"
},
{
ERR_REASON
(
BN_R_TOO_MANY_ITERATIONS
)
,
"too many iterations"
},
{
ERR_REASON
(
BN_R_TOO_MANY_TEMPORARY_VARIABLES
)
,
"too many temporary variables"
},
{
0
,
NULL
}
};
...
...
@@ -133,8 +136,8 @@ void ERR_load_BN_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_BN
,
BN_str_functs
);
ERR_load_strings
(
ERR_LIB_BN
,
BN_str_reasons
);
ERR_load_strings
(
0
,
BN_str_functs
);
ERR_load_strings
(
0
,
BN_str_reasons
);
#endif
}
...
...
crypto/buffer/buf_err.c
浏览文件 @
29dc3508
/* crypto/buffer/buf_err.c */
/* ====================================================================
* Copyright (c) 1999-200
3
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -64,13 +64,17 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_BUF,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_BUF,0,reason)
static
ERR_STRING_DATA
BUF_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
BUF_F_BUF_MEMDUP
,
0
),
"BUF_memdup"
},
{
ERR_
PACK
(
0
,
BUF_F_BUF_MEM_GROW
,
0
),
"BUF_MEM_grow"
},
{
ERR_
PACK
(
0
,
BUF_F_BUF_MEM_NEW
,
0
),
"BUF_MEM_new"
},
{
ERR_
PACK
(
0
,
BUF_F_BUF_STRDUP
,
0
),
"BUF_strdup"
},
{
ERR_
PACK
(
0
,
BUF_F_BUF_STRNDUP
,
0
),
"BUF_strndup"
},
{
ERR_
FUNC
(
BUF_F_BUF_MEMDUP
),
"BUF_memdup"
},
{
ERR_
FUNC
(
BUF_F_BUF_MEM_GROW
),
"BUF_MEM_grow"
},
{
ERR_
FUNC
(
BUF_F_BUF_MEM_NEW
),
"BUF_MEM_new"
},
{
ERR_
FUNC
(
BUF_F_BUF_STRDUP
),
"BUF_strdup"
},
{
ERR_
FUNC
(
BUF_F_BUF_STRNDUP
),
"BUF_strndup"
},
{
0
,
NULL
}
};
...
...
@@ -89,8 +93,8 @@ void ERR_load_BUF_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_BUF
,
BUF_str_functs
);
ERR_load_strings
(
ERR_LIB_BUF
,
BUF_str_reasons
);
ERR_load_strings
(
0
,
BUF_str_functs
);
ERR_load_strings
(
0
,
BUF_str_reasons
);
#endif
}
...
...
crypto/comp/comp_err.c
浏览文件 @
29dc3508
/* crypto/comp/comp_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -61,10 +61,13 @@
#include <stdio.h>
#include <openssl/err.h>
#include <openssl/comp.h>
#include <openssl/opensslconf.h>
/* To see if OPENSSL_NO_ERR is defined */
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_COMP,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_COMP,0,reason)
static
ERR_STRING_DATA
COMP_str_functs
[]
=
{
{
0
,
NULL
}
...
...
@@ -85,8 +88,8 @@ void ERR_load_COMP_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_COMP
,
COMP_str_functs
);
ERR_load_strings
(
ERR_LIB_COMP
,
COMP_str_reasons
);
ERR_load_strings
(
0
,
COMP_str_functs
);
ERR_load_strings
(
0
,
COMP_str_reasons
);
#endif
}
...
...
crypto/conf/conf_err.c
浏览文件 @
29dc3508
/* crypto/conf/conf_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -61,51 +61,54 @@
#include <stdio.h>
#include <openssl/err.h>
#include <openssl/conf.h>
#include <openssl/opensslconf.h>
/* To see if OPENSSL_NO_ERR is defined */
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_CONF,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_CONF,0,reason)
static
ERR_STRING_DATA
CONF_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
CONF_F_CONF_DUMP_FP
,
0
),
"CONF_dump_fp"
},
{
ERR_
PACK
(
0
,
CONF_F_CONF_LOAD
,
0
),
"CONF_load"
},
{
ERR_
PACK
(
0
,
CONF_F_CONF_LOAD_BIO
,
0
),
"CONF_load_bio"
},
{
ERR_
PACK
(
0
,
CONF_F_CONF_LOAD_FP
,
0
),
"CONF_load_fp"
},
{
ERR_
PACK
(
0
,
CONF_F_CONF_MODULES_LOAD
,
0
),
"CONF_modules_load"
},
{
ERR_
PACK
(
0
,
CONF_F_MODULE_INIT
,
0
),
"MODULE_INIT"
},
{
ERR_
PACK
(
0
,
CONF_F_MODULE_LOAD_DSO
,
0
),
"MODULE_LOAD_DSO"
},
{
ERR_
PACK
(
0
,
CONF_F_MODULE_RUN
,
0
),
"MODULE_RUN"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_DUMP_BIO
,
0
),
"NCONF_dump_bio"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_DUMP_FP
,
0
),
"NCONF_dump_fp"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_GET_NUMBER
,
0
),
"NCONF_get_number"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_GET_NUMBER_E
,
0
),
"NCONF_get_number_e"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_GET_SECTION
,
0
),
"NCONF_get_section"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_GET_STRING
,
0
),
"NCONF_get_string"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_LOAD
,
0
),
"NCONF_load"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_LOAD_BIO
,
0
),
"NCONF_load_bio"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_LOAD_FP
,
0
),
"NCONF_load_fp"
},
{
ERR_
PACK
(
0
,
CONF_F_NCONF_NEW
,
0
),
"NCONF_new"
},
{
ERR_
PACK
(
0
,
CONF_F_STR_COPY
,
0
),
"STR_COPY"
},
{
ERR_
FUNC
(
CONF_F_CONF_DUMP_FP
),
"CONF_dump_fp"
},
{
ERR_
FUNC
(
CONF_F_CONF_LOAD
),
"CONF_load"
},
{
ERR_
FUNC
(
CONF_F_CONF_LOAD_BIO
),
"CONF_load_bio"
},
{
ERR_
FUNC
(
CONF_F_CONF_LOAD_FP
),
"CONF_load_fp"
},
{
ERR_
FUNC
(
CONF_F_CONF_MODULES_LOAD
),
"CONF_modules_load"
},
{
ERR_
FUNC
(
CONF_F_MODULE_INIT
),
"MODULE_INIT"
},
{
ERR_
FUNC
(
CONF_F_MODULE_LOAD_DSO
),
"MODULE_LOAD_DSO"
},
{
ERR_
FUNC
(
CONF_F_MODULE_RUN
),
"MODULE_RUN"
},
{
ERR_
FUNC
(
CONF_F_NCONF_DUMP_BIO
),
"NCONF_dump_bio"
},
{
ERR_
FUNC
(
CONF_F_NCONF_DUMP_FP
),
"NCONF_dump_fp"
},
{
ERR_
FUNC
(
CONF_F_NCONF_GET_NUMBER
),
"NCONF_get_number"
},
{
ERR_
FUNC
(
CONF_F_NCONF_GET_NUMBER_E
),
"NCONF_get_number_e"
},
{
ERR_
FUNC
(
CONF_F_NCONF_GET_SECTION
),
"NCONF_get_section"
},
{
ERR_
FUNC
(
CONF_F_NCONF_GET_STRING
),
"NCONF_get_string"
},
{
ERR_
FUNC
(
CONF_F_NCONF_LOAD
),
"NCONF_load"
},
{
ERR_
FUNC
(
CONF_F_NCONF_LOAD_BIO
),
"NCONF_load_bio"
},
{
ERR_
FUNC
(
CONF_F_NCONF_LOAD_FP
),
"NCONF_load_fp"
},
{
ERR_
FUNC
(
CONF_F_NCONF_NEW
),
"NCONF_new"
},
{
ERR_
FUNC
(
CONF_F_STR_COPY
),
"STR_COPY"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
CONF_str_reasons
[]
=
{
{
CONF_R_ERROR_LOADING_DSO
,
"error loading dso"
},
{
CONF_R_MISSING_CLOSE_SQUARE_BRACKET
,
"missing close square bracket"
},
{
CONF_R_MISSING_EQUAL_SIGN
,
"missing equal sign"
},
{
CONF_R_MISSING_FINISH_FUNCTION
,
"missing finish function"
},
{
CONF_R_MISSING_INIT_FUNCTION
,
"missing init function"
},
{
CONF_R_MODULE_INITIALIZATION_ERROR
,
"module initialization error"
},
{
CONF_R_NO_CLOSE_BRACE
,
"no close brace"
},
{
CONF_R_NO_CONF
,
"no conf"
},
{
CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE
,
"no conf or environment variable"
},
{
CONF_R_NO_SECTION
,
"no section"
},
{
CONF_R_NO_SUCH_FILE
,
"no such file"
},
{
CONF_R_NO_VALUE
,
"no value"
},
{
CONF_R_UNABLE_TO_CREATE_NEW_SECTION
,
"unable to create new section"
},
{
CONF_R_UNKNOWN_MODULE_NAME
,
"unknown module name"
},
{
CONF_R_VARIABLE_HAS_NO_VALUE
,
"variable has no value"
},
{
ERR_REASON
(
CONF_R_ERROR_LOADING_DSO
)
,
"error loading dso"
},
{
ERR_REASON
(
CONF_R_MISSING_CLOSE_SQUARE_BRACKET
)
,
"missing close square bracket"
},
{
ERR_REASON
(
CONF_R_MISSING_EQUAL_SIGN
)
,
"missing equal sign"
},
{
ERR_REASON
(
CONF_R_MISSING_FINISH_FUNCTION
)
,
"missing finish function"
},
{
ERR_REASON
(
CONF_R_MISSING_INIT_FUNCTION
)
,
"missing init function"
},
{
ERR_REASON
(
CONF_R_MODULE_INITIALIZATION_ERROR
)
,
"module initialization error"
},
{
ERR_REASON
(
CONF_R_NO_CLOSE_BRACE
)
,
"no close brace"
},
{
ERR_REASON
(
CONF_R_NO_CONF
)
,
"no conf"
},
{
ERR_REASON
(
CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE
)
,
"no conf or environment variable"
},
{
ERR_REASON
(
CONF_R_NO_SECTION
)
,
"no section"
},
{
ERR_REASON
(
CONF_R_NO_SUCH_FILE
)
,
"no such file"
},
{
ERR_REASON
(
CONF_R_NO_VALUE
)
,
"no value"
},
{
ERR_REASON
(
CONF_R_UNABLE_TO_CREATE_NEW_SECTION
)
,
"unable to create new section"
},
{
ERR_REASON
(
CONF_R_UNKNOWN_MODULE_NAME
)
,
"unknown module name"
},
{
ERR_REASON
(
CONF_R_VARIABLE_HAS_NO_VALUE
)
,
"variable has no value"
},
{
0
,
NULL
}
};
...
...
@@ -119,8 +122,8 @@ void ERR_load_CONF_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_CONF
,
CONF_str_functs
);
ERR_load_strings
(
ERR_LIB_CONF
,
CONF_str_reasons
);
ERR_load_strings
(
0
,
CONF_str_functs
);
ERR_load_strings
(
0
,
CONF_str_reasons
);
#endif
}
...
...
crypto/cpt_err.c
浏览文件 @
29dc3508
/* crypto/cpt_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -64,23 +64,27 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_CRYPTO,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_CRYPTO,0,reason)
static
ERR_STRING_DATA
CRYPTO_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX
,
0
),
"CRYPTO_get_ex_new_index"
},
{
ERR_
PACK
(
0
,
CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID
,
0
),
"CRYPTO_get_new_dynlockid"
},
{
ERR_
PACK
(
0
,
CRYPTO_F_CRYPTO_GET_NEW_LOCKID
,
0
),
"CRYPTO_get_new_lockid"
},
{
ERR_
PACK
(
0
,
CRYPTO_F_CRYPTO_SET_EX_DATA
,
0
),
"CRYPTO_set_ex_data"
},
{
ERR_
PACK
(
0
,
CRYPTO_F_DEF_ADD_INDEX
,
0
),
"DEF_ADD_INDEX"
},
{
ERR_
PACK
(
0
,
CRYPTO_F_DEF_GET_CLASS
,
0
),
"DEF_GET_CLASS"
},
{
ERR_
PACK
(
0
,
CRYPTO_F_INT_DUP_EX_DATA
,
0
),
"INT_DUP_EX_DATA"
},
{
ERR_
PACK
(
0
,
CRYPTO_F_INT_FREE_EX_DATA
,
0
),
"INT_FREE_EX_DATA"
},
{
ERR_
PACK
(
0
,
CRYPTO_F_INT_NEW_EX_DATA
,
0
),
"INT_NEW_EX_DATA"
},
{
ERR_
FUNC
(
CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX
),
"CRYPTO_get_ex_new_index"
},
{
ERR_
FUNC
(
CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID
),
"CRYPTO_get_new_dynlockid"
},
{
ERR_
FUNC
(
CRYPTO_F_CRYPTO_GET_NEW_LOCKID
),
"CRYPTO_get_new_lockid"
},
{
ERR_
FUNC
(
CRYPTO_F_CRYPTO_SET_EX_DATA
),
"CRYPTO_set_ex_data"
},
{
ERR_
FUNC
(
CRYPTO_F_DEF_ADD_INDEX
),
"DEF_ADD_INDEX"
},
{
ERR_
FUNC
(
CRYPTO_F_DEF_GET_CLASS
),
"DEF_GET_CLASS"
},
{
ERR_
FUNC
(
CRYPTO_F_INT_DUP_EX_DATA
),
"INT_DUP_EX_DATA"
},
{
ERR_
FUNC
(
CRYPTO_F_INT_FREE_EX_DATA
),
"INT_FREE_EX_DATA"
},
{
ERR_
FUNC
(
CRYPTO_F_INT_NEW_EX_DATA
),
"INT_NEW_EX_DATA"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
CRYPTO_str_reasons
[]
=
{
{
CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK
,
"no dynlock create callback"
},
{
ERR_REASON
(
CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK
)
,
"no dynlock create callback"
},
{
0
,
NULL
}
};
...
...
@@ -94,8 +98,8 @@ void ERR_load_CRYPTO_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_CRYPTO
,
CRYPTO_str_functs
);
ERR_load_strings
(
ERR_LIB_CRYPTO
,
CRYPTO_str_reasons
);
ERR_load_strings
(
0
,
CRYPTO_str_functs
);
ERR_load_strings
(
0
,
CRYPTO_str_reasons
);
#endif
}
...
...
crypto/crypto.h
浏览文件 @
29dc3508
...
...
@@ -541,9 +541,6 @@ void ERR_load_CRYPTO_strings(void);
/* Reason codes. */
#define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100
unsigned
long
*
OPENSSL_ia32cap_loc
(
void
);
#define OPENSSL_ia32cap (*(OPENSSL_ia32cap_loc()))
#ifdef __cplusplus
}
#endif
...
...
crypto/dh/dh_err.c
浏览文件 @
29dc3508
/* crypto/dh/dh_err.c */
/* ====================================================================
* Copyright (c) 1999-200
2
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -61,25 +61,28 @@
#include <stdio.h>
#include <openssl/err.h>
#include <openssl/dh.h>
#include <openssl/opensslconf.h>
/* To see if OPENSSL_NO_ERR is defined */
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_DH,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_DH,0,reason)
static
ERR_STRING_DATA
DH_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
DH_F_DHPARAMS_PRINT
,
0
),
"DHparams_print"
},
{
ERR_
PACK
(
0
,
DH_F_DHPARAMS_PRINT_FP
,
0
),
"DHparams_print_fp"
},
{
ERR_
PACK
(
0
,
DH_F_DH_COMPUTE_KEY
,
0
),
"DH_compute_key"
},
{
ERR_
PACK
(
0
,
DH_F_DH_GENERATE_KEY
,
0
),
"DH_generate_key"
},
{
ERR_
PACK
(
0
,
DH_F_DH_GENERATE_PARAMETERS
,
0
),
"DH_generate_parameters"
},
{
ERR_
PACK
(
0
,
DH_F_DH_NEW_METHOD
,
0
),
"DH_new_method"
},
{
ERR_
FUNC
(
DH_F_DHPARAMS_PRINT
),
"DHparams_print"
},
{
ERR_
FUNC
(
DH_F_DHPARAMS_PRINT_FP
),
"DHparams_print_fp"
},
{
ERR_
FUNC
(
DH_F_DH_COMPUTE_KEY
),
"DH_compute_key"
},
{
ERR_
FUNC
(
DH_F_DH_GENERATE_KEY
),
"DH_generate_key"
},
{
ERR_
FUNC
(
DH_F_DH_GENERATE_PARAMETERS
),
"DH_generate_parameters"
},
{
ERR_
FUNC
(
DH_F_DH_NEW_METHOD
),
"DH_new_method"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
DH_str_reasons
[]
=
{
{
DH_R_BAD_GENERATOR
,
"bad generator"
},
{
DH_R_NO_PRIVATE_VALUE
,
"no private value"
},
{
ERR_REASON
(
DH_R_BAD_GENERATOR
)
,
"bad generator"
},
{
ERR_REASON
(
DH_R_NO_PRIVATE_VALUE
)
,
"no private value"
},
{
0
,
NULL
}
};
...
...
@@ -93,8 +96,8 @@ void ERR_load_DH_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_DH
,
DH_str_functs
);
ERR_load_strings
(
ERR_LIB_DH
,
DH_str_reasons
);
ERR_load_strings
(
0
,
DH_str_functs
);
ERR_load_strings
(
0
,
DH_str_reasons
);
#endif
}
...
...
crypto/dsa/dsa_err.c
浏览文件 @
29dc3508
/* crypto/dsa/dsa_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -61,33 +61,36 @@
#include <stdio.h>
#include <openssl/err.h>
#include <openssl/dsa.h>
#include <openssl/opensslconf.h>
/* To see if OPENSSL_NO_ERR is defined */
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSA,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSA,0,reason)
static
ERR_STRING_DATA
DSA_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
DSA_F_D2I_DSA_SIG
,
0
),
"d2i_DSA_SIG"
},
{
ERR_
PACK
(
0
,
DSA_F_DSAPARAMS_PRINT
,
0
),
"DSAparams_print"
},
{
ERR_
PACK
(
0
,
DSA_F_DSAPARAMS_PRINT_FP
,
0
),
"DSAparams_print_fp"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_DO_SIGN
,
0
),
"DSA_do_sign"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_DO_VERIFY
,
0
),
"DSA_do_verify"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_NEW_METHOD
,
0
),
"DSA_new_method"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_PRINT
,
0
),
"DSA_print"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_PRINT_FP
,
0
),
"DSA_print_fp"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_SIGN
,
0
),
"DSA_sign"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_SIGN_SETUP
,
0
),
"DSA_sign_setup"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_SIG_NEW
,
0
),
"DSA_SIG_new"
},
{
ERR_
PACK
(
0
,
DSA_F_DSA_VERIFY
,
0
),
"DSA_verify"
},
{
ERR_
PACK
(
0
,
DSA_F_I2D_DSA_SIG
,
0
),
"i2d_DSA_SIG"
},
{
ERR_
PACK
(
0
,
DSA_F_SIG_CB
,
0
),
"SIG_CB"
},
{
ERR_
FUNC
(
DSA_F_D2I_DSA_SIG
),
"d2i_DSA_SIG"
},
{
ERR_
FUNC
(
DSA_F_DSAPARAMS_PRINT
),
"DSAparams_print"
},
{
ERR_
FUNC
(
DSA_F_DSAPARAMS_PRINT_FP
),
"DSAparams_print_fp"
},
{
ERR_
FUNC
(
DSA_F_DSA_DO_SIGN
),
"DSA_do_sign"
},
{
ERR_
FUNC
(
DSA_F_DSA_DO_VERIFY
),
"DSA_do_verify"
},
{
ERR_
FUNC
(
DSA_F_DSA_NEW_METHOD
),
"DSA_new_method"
},
{
ERR_
FUNC
(
DSA_F_DSA_PRINT
),
"DSA_print"
},
{
ERR_
FUNC
(
DSA_F_DSA_PRINT_FP
),
"DSA_print_fp"
},
{
ERR_
FUNC
(
DSA_F_DSA_SIGN
),
"DSA_sign"
},
{
ERR_
FUNC
(
DSA_F_DSA_SIGN_SETUP
),
"DSA_sign_setup"
},
{
ERR_
FUNC
(
DSA_F_DSA_SIG_NEW
),
"DSA_SIG_new"
},
{
ERR_
FUNC
(
DSA_F_DSA_VERIFY
),
"DSA_verify"
},
{
ERR_
FUNC
(
DSA_F_I2D_DSA_SIG
),
"i2d_DSA_SIG"
},
{
ERR_
FUNC
(
DSA_F_SIG_CB
),
"SIG_CB"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
DSA_str_reasons
[]
=
{
{
DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE
,
"data too large for key size"
},
{
DSA_R_MISSING_PARAMETERS
,
"missing parameters"
},
{
ERR_REASON
(
DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE
)
,
"data too large for key size"
},
{
ERR_REASON
(
DSA_R_MISSING_PARAMETERS
)
,
"missing parameters"
},
{
0
,
NULL
}
};
...
...
@@ -101,8 +104,8 @@ void ERR_load_DSA_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_DSA
,
DSA_str_functs
);
ERR_load_strings
(
ERR_LIB_DSA
,
DSA_str_reasons
);
ERR_load_strings
(
0
,
DSA_str_functs
);
ERR_load_strings
(
0
,
DSA_str_reasons
);
#endif
}
...
...
crypto/dso/dso_err.c
浏览文件 @
29dc3508
/* crypto/dso/dso_err.c */
/* ====================================================================
* Copyright (c) 1999-200
2
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -61,69 +61,72 @@
#include <stdio.h>
#include <openssl/err.h>
#include <openssl/dso.h>
#include <openssl/opensslconf.h>
/* To see if OPENSSL_NO_ERR is defined */
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_DSO,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_DSO,0,reason)
static
ERR_STRING_DATA
DSO_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
DSO_F_DLFCN_BIND_FUNC
,
0
),
"DLFCN_BIND_FUNC"
},
{
ERR_
PACK
(
0
,
DSO_F_DLFCN_BIND_VAR
,
0
),
"DLFCN_BIND_VAR"
},
{
ERR_
PACK
(
0
,
DSO_F_DLFCN_LOAD
,
0
),
"DLFCN_LOAD"
},
{
ERR_
PACK
(
0
,
DSO_F_DLFCN_MERGER
,
0
),
"DLFCN_MERGER"
},
{
ERR_
PACK
(
0
,
DSO_F_DLFCN_NAME_CONVERTER
,
0
),
"DLFCN_NAME_CONVERTER"
},
{
ERR_
PACK
(
0
,
DSO_F_DLFCN_UNLOAD
,
0
),
"DLFCN_UNLOAD"
},
{
ERR_
PACK
(
0
,
DSO_F_DL_BIND_FUNC
,
0
),
"DL_BIND_FUNC"
},
{
ERR_
PACK
(
0
,
DSO_F_DL_BIND_VAR
,
0
),
"DL_BIND_VAR"
},
{
ERR_
PACK
(
0
,
DSO_F_DL_LOAD
,
0
),
"DL_LOAD"
},
{
ERR_
PACK
(
0
,
DSO_F_DL_MERGER
,
0
),
"DL_MERGER"
},
{
ERR_
PACK
(
0
,
DSO_F_DL_NAME_CONVERTER
,
0
),
"DL_NAME_CONVERTER"
},
{
ERR_
PACK
(
0
,
DSO_F_DL_UNLOAD
,
0
),
"DL_UNLOAD"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_BIND_FUNC
,
0
),
"DSO_bind_func"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_BIND_VAR
,
0
),
"DSO_bind_var"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_CONVERT_FILENAME
,
0
),
"DSO_convert_filename"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_CTRL
,
0
),
"DSO_ctrl"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_FREE
,
0
),
"DSO_free"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_GET_FILENAME
,
0
),
"DSO_get_filename"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_GET_LOADED_FILENAME
,
0
),
"DSO_get_loaded_filename"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_LOAD
,
0
),
"DSO_load"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_MERGE
,
0
),
"DSO_merge"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_NEW_METHOD
,
0
),
"DSO_new_method"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_SET_FILENAME
,
0
),
"DSO_set_filename"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_SET_NAME_CONVERTER
,
0
),
"DSO_set_name_converter"
},
{
ERR_
PACK
(
0
,
DSO_F_DSO_UP_REF
,
0
),
"DSO_up_ref"
},
{
ERR_
PACK
(
0
,
DSO_F_VMS_BIND_VAR
,
0
),
"VMS_BIND_VAR"
},
{
ERR_
PACK
(
0
,
DSO_F_VMS_LOAD
,
0
),
"VMS_LOAD"
},
{
ERR_
PACK
(
0
,
DSO_F_VMS_MERGER
,
0
),
"VMS_MERGER"
},
{
ERR_
PACK
(
0
,
DSO_F_VMS_UNLOAD
,
0
),
"VMS_UNLOAD"
},
{
ERR_
PACK
(
0
,
DSO_F_WIN32_BIND_FUNC
,
0
),
"WIN32_BIND_FUNC"
},
{
ERR_
PACK
(
0
,
DSO_F_WIN32_BIND_VAR
,
0
),
"WIN32_BIND_VAR"
},
{
ERR_
PACK
(
0
,
DSO_F_WIN32_LOAD
,
0
),
"WIN32_LOAD"
},
{
ERR_
PACK
(
0
,
DSO_F_WIN32_MERGER
,
0
),
"WIN32_MERGER"
},
{
ERR_
PACK
(
0
,
DSO_F_WIN32_NAME_CONVERTER
,
0
),
"WIN32_NAME_CONVERTER"
},
{
ERR_
PACK
(
0
,
DSO_F_WIN32_UNLOAD
,
0
),
"WIN32_UNLOAD"
},
{
ERR_
FUNC
(
DSO_F_DLFCN_BIND_FUNC
),
"DLFCN_BIND_FUNC"
},
{
ERR_
FUNC
(
DSO_F_DLFCN_BIND_VAR
),
"DLFCN_BIND_VAR"
},
{
ERR_
FUNC
(
DSO_F_DLFCN_LOAD
),
"DLFCN_LOAD"
},
{
ERR_
FUNC
(
DSO_F_DLFCN_MERGER
),
"DLFCN_MERGER"
},
{
ERR_
FUNC
(
DSO_F_DLFCN_NAME_CONVERTER
),
"DLFCN_NAME_CONVERTER"
},
{
ERR_
FUNC
(
DSO_F_DLFCN_UNLOAD
),
"DLFCN_UNLOAD"
},
{
ERR_
FUNC
(
DSO_F_DL_BIND_FUNC
),
"DL_BIND_FUNC"
},
{
ERR_
FUNC
(
DSO_F_DL_BIND_VAR
),
"DL_BIND_VAR"
},
{
ERR_
FUNC
(
DSO_F_DL_LOAD
),
"DL_LOAD"
},
{
ERR_
FUNC
(
DSO_F_DL_MERGER
),
"DL_MERGER"
},
{
ERR_
FUNC
(
DSO_F_DL_NAME_CONVERTER
),
"DL_NAME_CONVERTER"
},
{
ERR_
FUNC
(
DSO_F_DL_UNLOAD
),
"DL_UNLOAD"
},
{
ERR_
FUNC
(
DSO_F_DSO_BIND_FUNC
),
"DSO_bind_func"
},
{
ERR_
FUNC
(
DSO_F_DSO_BIND_VAR
),
"DSO_bind_var"
},
{
ERR_
FUNC
(
DSO_F_DSO_CONVERT_FILENAME
),
"DSO_convert_filename"
},
{
ERR_
FUNC
(
DSO_F_DSO_CTRL
),
"DSO_ctrl"
},
{
ERR_
FUNC
(
DSO_F_DSO_FREE
),
"DSO_free"
},
{
ERR_
FUNC
(
DSO_F_DSO_GET_FILENAME
),
"DSO_get_filename"
},
{
ERR_
FUNC
(
DSO_F_DSO_GET_LOADED_FILENAME
),
"DSO_get_loaded_filename"
},
{
ERR_
FUNC
(
DSO_F_DSO_LOAD
),
"DSO_load"
},
{
ERR_
FUNC
(
DSO_F_DSO_MERGE
),
"DSO_merge"
},
{
ERR_
FUNC
(
DSO_F_DSO_NEW_METHOD
),
"DSO_new_method"
},
{
ERR_
FUNC
(
DSO_F_DSO_SET_FILENAME
),
"DSO_set_filename"
},
{
ERR_
FUNC
(
DSO_F_DSO_SET_NAME_CONVERTER
),
"DSO_set_name_converter"
},
{
ERR_
FUNC
(
DSO_F_DSO_UP_REF
),
"DSO_up_ref"
},
{
ERR_
FUNC
(
DSO_F_VMS_BIND_VAR
),
"VMS_BIND_VAR"
},
{
ERR_
FUNC
(
DSO_F_VMS_LOAD
),
"VMS_LOAD"
},
{
ERR_
FUNC
(
DSO_F_VMS_MERGER
),
"VMS_MERGER"
},
{
ERR_
FUNC
(
DSO_F_VMS_UNLOAD
),
"VMS_UNLOAD"
},
{
ERR_
FUNC
(
DSO_F_WIN32_BIND_FUNC
),
"WIN32_BIND_FUNC"
},
{
ERR_
FUNC
(
DSO_F_WIN32_BIND_VAR
),
"WIN32_BIND_VAR"
},
{
ERR_
FUNC
(
DSO_F_WIN32_LOAD
),
"WIN32_LOAD"
},
{
ERR_
FUNC
(
DSO_F_WIN32_MERGER
),
"WIN32_MERGER"
},
{
ERR_
FUNC
(
DSO_F_WIN32_NAME_CONVERTER
),
"WIN32_NAME_CONVERTER"
},
{
ERR_
FUNC
(
DSO_F_WIN32_UNLOAD
),
"WIN32_UNLOAD"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
DSO_str_reasons
[]
=
{
{
DSO_R_CTRL_FAILED
,
"control command failed"
},
{
DSO_R_DSO_ALREADY_LOADED
,
"dso already loaded"
},
{
DSO_R_EMPTY_FILE_STRUCTURE
,
"empty file structure"
},
{
DSO_R_FAILURE
,
"failure"
},
{
DSO_R_FILENAME_TOO_BIG
,
"filename too big"
},
{
DSO_R_FINISH_FAILED
,
"cleanup method function failed"
},
{
DSO_R_INCORRECT_FILE_SYNTAX
,
"incorrect file syntax"
},
{
DSO_R_LOAD_FAILED
,
"could not load the shared library"
},
{
DSO_R_NAME_TRANSLATION_FAILED
,
"name translation failed"
},
{
DSO_R_NO_FILENAME
,
"no filename"
},
{
DSO_R_NO_FILE_SPECIFICATION
,
"no file specification"
},
{
DSO_R_NULL_HANDLE
,
"a null shared library handle was used"
},
{
DSO_R_SET_FILENAME_FAILED
,
"set filename failed"
},
{
DSO_R_STACK_ERROR
,
"the meth_data stack is corrupt"
},
{
DSO_R_SYM_FAILURE
,
"could not bind to the requested symbol name"
},
{
DSO_R_UNLOAD_FAILED
,
"could not unload the shared library"
},
{
DSO_R_UNSUPPORTED
,
"functionality not supported"
},
{
ERR_REASON
(
DSO_R_CTRL_FAILED
)
,
"control command failed"
},
{
ERR_REASON
(
DSO_R_DSO_ALREADY_LOADED
)
,
"dso already loaded"
},
{
ERR_REASON
(
DSO_R_EMPTY_FILE_STRUCTURE
)
,
"empty file structure"
},
{
ERR_REASON
(
DSO_R_FAILURE
)
,
"failure"
},
{
ERR_REASON
(
DSO_R_FILENAME_TOO_BIG
)
,
"filename too big"
},
{
ERR_REASON
(
DSO_R_FINISH_FAILED
)
,
"cleanup method function failed"
},
{
ERR_REASON
(
DSO_R_INCORRECT_FILE_SYNTAX
)
,
"incorrect file syntax"
},
{
ERR_REASON
(
DSO_R_LOAD_FAILED
)
,
"could not load the shared library"
},
{
ERR_REASON
(
DSO_R_NAME_TRANSLATION_FAILED
)
,
"name translation failed"
},
{
ERR_REASON
(
DSO_R_NO_FILENAME
)
,
"no filename"
},
{
ERR_REASON
(
DSO_R_NO_FILE_SPECIFICATION
)
,
"no file specification"
},
{
ERR_REASON
(
DSO_R_NULL_HANDLE
)
,
"a null shared library handle was used"
},
{
ERR_REASON
(
DSO_R_SET_FILENAME_FAILED
)
,
"set filename failed"
},
{
ERR_REASON
(
DSO_R_STACK_ERROR
)
,
"the meth_data stack is corrupt"
},
{
ERR_REASON
(
DSO_R_SYM_FAILURE
)
,
"could not bind to the requested symbol name"
},
{
ERR_REASON
(
DSO_R_UNLOAD_FAILED
)
,
"could not unload the shared library"
},
{
ERR_REASON
(
DSO_R_UNSUPPORTED
)
,
"functionality not supported"
},
{
0
,
NULL
}
};
...
...
@@ -137,8 +140,8 @@ void ERR_load_DSO_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_DSO
,
DSO_str_functs
);
ERR_load_strings
(
ERR_LIB_DSO
,
DSO_str_reasons
);
ERR_load_strings
(
0
,
DSO_str_functs
);
ERR_load_strings
(
0
,
DSO_str_reasons
);
#endif
}
...
...
crypto/ec/ec.h
浏览文件 @
29dc3508
...
...
@@ -501,9 +501,5 @@ void ERR_load_EC_strings(void);
#ifdef __cplusplus
}
#elif defined(__SUNPRO_C)
# if __SUNPRO_C >= 0x520
# pragma error_messages (default,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
# endif
#endif
#endif
crypto/ec/ec_err.c
浏览文件 @
29dc3508
此差异已折叠。
点击以展开。
crypto/ecdh/ech_err.c
浏览文件 @
29dc3508
/* crypto/ecdh/ech_err.c */
/* ====================================================================
* Copyright (c) 1999-200
2
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -64,18 +64,22 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_ECDH,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_ECDH,0,reason)
static
ERR_STRING_DATA
ECDH_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
ECDH_F_ECDH_COMPUTE_KEY
,
0
),
"ECDH_compute_key"
},
{
ERR_
PACK
(
0
,
ECDH_F_ECDH_DATA_NEW
,
0
),
"ECDH_DATA_new"
},
{
ERR_
FUNC
(
ECDH_F_ECDH_COMPUTE_KEY
),
"ECDH_compute_key"
},
{
ERR_
FUNC
(
ECDH_F_ECDH_DATA_NEW
),
"ECDH_DATA_new"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
ECDH_str_reasons
[]
=
{
{
E
CDH_R_KDF_FAILED
,
"KDF failed"
},
{
E
CDH_R_NO_PRIVATE_VALUE
,
"no private value"
},
{
E
CDH_R_POINT_ARITHMETIC_FAILURE
,
"point arithmetic failure"
},
{
E
RR_REASON
(
ECDH_R_KDF_FAILED
)
,
"KDF failed"
},
{
E
RR_REASON
(
ECDH_R_NO_PRIVATE_VALUE
)
,
"no private value"
},
{
E
RR_REASON
(
ECDH_R_POINT_ARITHMETIC_FAILURE
)
,
"point arithmetic failure"
},
{
0
,
NULL
}
};
...
...
@@ -89,8 +93,8 @@ void ERR_load_ECDH_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_ECDH
,
ECDH_str_functs
);
ERR_load_strings
(
ERR_LIB_ECDH
,
ECDH_str_reasons
);
ERR_load_strings
(
0
,
ECDH_str_functs
);
ERR_load_strings
(
0
,
ECDH_str_reasons
);
#endif
}
...
...
crypto/ecdsa/ecs_err.c
浏览文件 @
29dc3508
/* crypto/ecdsa/ecs_err.c */
/* ====================================================================
* Copyright (c) 1999-200
2
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -61,27 +61,30 @@
#include <stdio.h>
#include <openssl/err.h>
#include <openssl/ecdsa.h>
#include <openssl/opensslconf.h>
/* To see if OPENSSL_NO_ERR is defined */
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_ECDSA,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_ECDSA,0,reason)
static
ERR_STRING_DATA
ECDSA_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
ECDSA_F_ECDSA_DATA_NEW
,
0
),
"ECDSA_DATA_new"
},
{
ERR_
PACK
(
0
,
ECDSA_F_ECDSA_DO_SIGN
,
0
),
"ECDSA_do_sign"
},
{
ERR_
PACK
(
0
,
ECDSA_F_ECDSA_DO_VERIFY
,
0
),
"ECDSA_do_verify"
},
{
ERR_
PACK
(
0
,
ECDSA_F_ECDSA_SIGN_SETUP
,
0
),
"ECDSA_sign_setup"
},
{
ERR_
FUNC
(
ECDSA_F_ECDSA_DATA_NEW
),
"ECDSA_DATA_new"
},
{
ERR_
FUNC
(
ECDSA_F_ECDSA_DO_SIGN
),
"ECDSA_do_sign"
},
{
ERR_
FUNC
(
ECDSA_F_ECDSA_DO_VERIFY
),
"ECDSA_do_verify"
},
{
ERR_
FUNC
(
ECDSA_F_ECDSA_SIGN_SETUP
),
"ECDSA_sign_setup"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
ECDSA_str_reasons
[]
=
{
{
E
CDSA_R_BAD_SIGNATURE
,
"bad signature"
},
{
E
CDSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE
,
"data too large for key size"
},
{
E
CDSA_R_ERR_EC_LIB
,
"err ec lib"
},
{
E
CDSA_R_MISSING_PARAMETERS
,
"missing parameters"
},
{
E
CDSA_R_RANDOM_NUMBER_GENERATION_FAILED
,
"random number generation failed"
},
{
E
CDSA_R_SIGNATURE_MALLOC_FAILED
,
"signature malloc failed"
},
{
E
RR_REASON
(
ECDSA_R_BAD_SIGNATURE
)
,
"bad signature"
},
{
E
RR_REASON
(
ECDSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE
)
,
"data too large for key size"
},
{
E
RR_REASON
(
ECDSA_R_ERR_EC_LIB
)
,
"err ec lib"
},
{
E
RR_REASON
(
ECDSA_R_MISSING_PARAMETERS
)
,
"missing parameters"
},
{
E
RR_REASON
(
ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED
)
,
"random number generation failed"
},
{
E
RR_REASON
(
ECDSA_R_SIGNATURE_MALLOC_FAILED
)
,
"signature malloc failed"
},
{
0
,
NULL
}
};
...
...
@@ -95,8 +98,8 @@ void ERR_load_ECDSA_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_ECDSA
,
ECDSA_str_functs
);
ERR_load_strings
(
ERR_LIB_ECDSA
,
ECDSA_str_reasons
);
ERR_load_strings
(
0
,
ECDSA_str_functs
);
ERR_load_strings
(
0
,
ECDSA_str_reasons
);
#endif
}
...
...
crypto/engine/eng_err.c
浏览文件 @
29dc3508
/* crypto/engine/eng_err.c */
/* ====================================================================
* Copyright (c) 1999-200
2
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -64,87 +64,91 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_ENGINE,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_ENGINE,0,reason)
static
ERR_STRING_DATA
ENGINE_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
ENGINE_F_DYNAMIC_CTRL
,
0
),
"DYNAMIC_CTRL"
},
{
ERR_
PACK
(
0
,
ENGINE_F_DYNAMIC_GET_DATA_CTX
,
0
),
"DYNAMIC_GET_DATA_CTX"
},
{
ERR_
PACK
(
0
,
ENGINE_F_DYNAMIC_LOAD
,
0
),
"DYNAMIC_LOAD"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_ADD
,
0
),
"ENGINE_add"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_BY_ID
,
0
),
"ENGINE_by_id"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_CMD_IS_EXECUTABLE
,
0
),
"ENGINE_cmd_is_executable"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_CTRL
,
0
),
"ENGINE_ctrl"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_CTRL_CMD
,
0
),
"ENGINE_ctrl_cmd"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_CTRL_CMD_STRING
,
0
),
"ENGINE_ctrl_cmd_string"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_FINISH
,
0
),
"ENGINE_finish"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_FREE
,
0
),
"ENGINE_free"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_GET_CIPHER
,
0
),
"ENGINE_get_cipher"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_GET_DEFAULT_TYPE
,
0
),
"ENGINE_GET_DEFAULT_TYPE"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_GET_DIGEST
,
0
),
"ENGINE_get_digest"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_GET_NEXT
,
0
),
"ENGINE_get_next"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_GET_PREV
,
0
),
"ENGINE_get_prev"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_INIT
,
0
),
"ENGINE_init"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_LIST_ADD
,
0
),
"ENGINE_LIST_ADD"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_LIST_REMOVE
,
0
),
"ENGINE_LIST_REMOVE"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_LOAD_PRIVATE_KEY
,
0
),
"ENGINE_load_private_key"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_LOAD_PUBLIC_KEY
,
0
),
"ENGINE_load_public_key"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_MODULE_INIT
,
0
),
"ENGINE_MODULE_INIT"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_NEW
,
0
),
"ENGINE_new"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_REMOVE
,
0
),
"ENGINE_remove"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_SET_DEFAULT_STRING
,
0
),
"ENGINE_set_default_string"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_SET_DEFAULT_TYPE
,
0
),
"ENGINE_SET_DEFAULT_TYPE"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_SET_ID
,
0
),
"ENGINE_set_id"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_SET_NAME
,
0
),
"ENGINE_set_name"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_TABLE_REGISTER
,
0
),
"ENGINE_TABLE_REGISTER"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_UNLOAD_KEY
,
0
),
"ENGINE_UNLOAD_KEY"
},
{
ERR_
PACK
(
0
,
ENGINE_F_ENGINE_UP_REF
,
0
),
"ENGINE_up_ref"
},
{
ERR_
PACK
(
0
,
ENGINE_F_INT_CTRL_HELPER
,
0
),
"INT_CTRL_HELPER"
},
{
ERR_
PACK
(
0
,
ENGINE_F_INT_ENGINE_CONFIGURE
,
0
),
"INT_ENGINE_CONFIGURE"
},
{
ERR_
PACK
(
0
,
ENGINE_F_LOG_MESSAGE
,
0
),
"LOG_MESSAGE"
},
{
ERR_
PACK
(
0
,
ENGINE_F_SET_DATA_CTX
,
0
),
"SET_DATA_CTX"
},
{
ERR_
FUNC
(
ENGINE_F_DYNAMIC_CTRL
),
"DYNAMIC_CTRL"
},
{
ERR_
FUNC
(
ENGINE_F_DYNAMIC_GET_DATA_CTX
),
"DYNAMIC_GET_DATA_CTX"
},
{
ERR_
FUNC
(
ENGINE_F_DYNAMIC_LOAD
),
"DYNAMIC_LOAD"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_ADD
),
"ENGINE_add"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_BY_ID
),
"ENGINE_by_id"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_CMD_IS_EXECUTABLE
),
"ENGINE_cmd_is_executable"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_CTRL
),
"ENGINE_ctrl"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_CTRL_CMD
),
"ENGINE_ctrl_cmd"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_CTRL_CMD_STRING
),
"ENGINE_ctrl_cmd_string"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_FINISH
),
"ENGINE_finish"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_FREE
),
"ENGINE_free"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_GET_CIPHER
),
"ENGINE_get_cipher"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_GET_DEFAULT_TYPE
),
"ENGINE_GET_DEFAULT_TYPE"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_GET_DIGEST
),
"ENGINE_get_digest"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_GET_NEXT
),
"ENGINE_get_next"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_GET_PREV
),
"ENGINE_get_prev"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_INIT
),
"ENGINE_init"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_LIST_ADD
),
"ENGINE_LIST_ADD"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_LIST_REMOVE
),
"ENGINE_LIST_REMOVE"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_LOAD_PRIVATE_KEY
),
"ENGINE_load_private_key"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_LOAD_PUBLIC_KEY
),
"ENGINE_load_public_key"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_MODULE_INIT
),
"ENGINE_MODULE_INIT"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_NEW
),
"ENGINE_new"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_REMOVE
),
"ENGINE_remove"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_SET_DEFAULT_STRING
),
"ENGINE_set_default_string"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_SET_DEFAULT_TYPE
),
"ENGINE_SET_DEFAULT_TYPE"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_SET_ID
),
"ENGINE_set_id"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_SET_NAME
),
"ENGINE_set_name"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_TABLE_REGISTER
),
"ENGINE_TABLE_REGISTER"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_UNLOAD_KEY
),
"ENGINE_UNLOAD_KEY"
},
{
ERR_
FUNC
(
ENGINE_F_ENGINE_UP_REF
),
"ENGINE_up_ref"
},
{
ERR_
FUNC
(
ENGINE_F_INT_CTRL_HELPER
),
"INT_CTRL_HELPER"
},
{
ERR_
FUNC
(
ENGINE_F_INT_ENGINE_CONFIGURE
),
"INT_ENGINE_CONFIGURE"
},
{
ERR_
FUNC
(
ENGINE_F_LOG_MESSAGE
),
"LOG_MESSAGE"
},
{
ERR_
FUNC
(
ENGINE_F_SET_DATA_CTX
),
"SET_DATA_CTX"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
ENGINE_str_reasons
[]
=
{
{
E
NGINE_R_ALREADY_LOADED
,
"already loaded"
},
{
E
NGINE_R_ARGUMENT_IS_NOT_A_NUMBER
,
"argument is not a number"
},
{
E
NGINE_R_CMD_NOT_EXECUTABLE
,
"cmd not executable"
},
{
E
NGINE_R_COMMAND_TAKES_INPUT
,
"command takes input"
},
{
E
NGINE_R_COMMAND_TAKES_NO_INPUT
,
"command takes no input"
},
{
E
NGINE_R_CONFLICTING_ENGINE_ID
,
"conflicting engine id"
},
{
E
NGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED
,
"ctrl command not implemented"
},
{
E
NGINE_R_DH_NOT_IMPLEMENTED
,
"dh not implemented"
},
{
E
NGINE_R_DSA_NOT_IMPLEMENTED
,
"dsa not implemented"
},
{
E
NGINE_R_DSO_FAILURE
,
"DSO failure"
},
{
E
NGINE_R_DSO_NOT_FOUND
,
"dso not found"
},
{
E
NGINE_R_ENGINES_SECTION_ERROR
,
"engines section error"
},
{
E
NGINE_R_ENGINE_IS_NOT_IN_LIST
,
"engine is not in the list"
},
{
E
NGINE_R_ENGINE_SECTION_ERROR
,
"engine section error"
},
{
E
NGINE_R_FAILED_LOADING_PRIVATE_KEY
,
"failed loading private key"
},
{
E
NGINE_R_FAILED_LOADING_PUBLIC_KEY
,
"failed loading public key"
},
{
E
NGINE_R_FINISH_FAILED
,
"finish failed"
},
{
E
NGINE_R_GET_HANDLE_FAILED
,
"could not obtain hardware handle"
},
{
E
NGINE_R_ID_OR_NAME_MISSING
,
"'id' or 'name' missing"
},
{
E
NGINE_R_INIT_FAILED
,
"init failed"
},
{
E
NGINE_R_INTERNAL_LIST_ERROR
,
"internal list error"
},
{
E
NGINE_R_INVALID_ARGUMENT
,
"invalid argument"
},
{
E
NGINE_R_INVALID_CMD_NAME
,
"invalid cmd name"
},
{
E
NGINE_R_INVALID_CMD_NUMBER
,
"invalid cmd number"
},
{
E
NGINE_R_INVALID_INIT_VALUE
,
"invalid init value"
},
{
E
NGINE_R_INVALID_STRING
,
"invalid string"
},
{
E
NGINE_R_NOT_INITIALISED
,
"not initialised"
},
{
E
NGINE_R_NOT_LOADED
,
"not loaded"
},
{
E
NGINE_R_NO_CONTROL_FUNCTION
,
"no control function"
},
{
E
NGINE_R_NO_INDEX
,
"no index"
},
{
E
NGINE_R_NO_LOAD_FUNCTION
,
"no load function"
},
{
E
NGINE_R_NO_REFERENCE
,
"no reference"
},
{
E
NGINE_R_NO_SUCH_ENGINE
,
"no such engine"
},
{
E
NGINE_R_NO_UNLOAD_FUNCTION
,
"no unload function"
},
{
E
NGINE_R_PROVIDE_PARAMETERS
,
"provide parameters"
},
{
E
NGINE_R_RSA_NOT_IMPLEMENTED
,
"rsa not implemented"
},
{
E
NGINE_R_UNIMPLEMENTED_CIPHER
,
"unimplemented cipher"
},
{
E
NGINE_R_UNIMPLEMENTED_DIGEST
,
"unimplemented digest"
},
{
E
NGINE_R_VERSION_INCOMPATIBILITY
,
"version incompatibility"
},
{
E
RR_REASON
(
ENGINE_R_ALREADY_LOADED
)
,
"already loaded"
},
{
E
RR_REASON
(
ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER
)
,
"argument is not a number"
},
{
E
RR_REASON
(
ENGINE_R_CMD_NOT_EXECUTABLE
)
,
"cmd not executable"
},
{
E
RR_REASON
(
ENGINE_R_COMMAND_TAKES_INPUT
)
,
"command takes input"
},
{
E
RR_REASON
(
ENGINE_R_COMMAND_TAKES_NO_INPUT
)
,
"command takes no input"
},
{
E
RR_REASON
(
ENGINE_R_CONFLICTING_ENGINE_ID
)
,
"conflicting engine id"
},
{
E
RR_REASON
(
ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED
)
,
"ctrl command not implemented"
},
{
E
RR_REASON
(
ENGINE_R_DH_NOT_IMPLEMENTED
)
,
"dh not implemented"
},
{
E
RR_REASON
(
ENGINE_R_DSA_NOT_IMPLEMENTED
)
,
"dsa not implemented"
},
{
E
RR_REASON
(
ENGINE_R_DSO_FAILURE
)
,
"DSO failure"
},
{
E
RR_REASON
(
ENGINE_R_DSO_NOT_FOUND
)
,
"dso not found"
},
{
E
RR_REASON
(
ENGINE_R_ENGINES_SECTION_ERROR
)
,
"engines section error"
},
{
E
RR_REASON
(
ENGINE_R_ENGINE_IS_NOT_IN_LIST
)
,
"engine is not in the list"
},
{
E
RR_REASON
(
ENGINE_R_ENGINE_SECTION_ERROR
)
,
"engine section error"
},
{
E
RR_REASON
(
ENGINE_R_FAILED_LOADING_PRIVATE_KEY
)
,
"failed loading private key"
},
{
E
RR_REASON
(
ENGINE_R_FAILED_LOADING_PUBLIC_KEY
)
,
"failed loading public key"
},
{
E
RR_REASON
(
ENGINE_R_FINISH_FAILED
)
,
"finish failed"
},
{
E
RR_REASON
(
ENGINE_R_GET_HANDLE_FAILED
)
,
"could not obtain hardware handle"
},
{
E
RR_REASON
(
ENGINE_R_ID_OR_NAME_MISSING
)
,
"'id' or 'name' missing"
},
{
E
RR_REASON
(
ENGINE_R_INIT_FAILED
)
,
"init failed"
},
{
E
RR_REASON
(
ENGINE_R_INTERNAL_LIST_ERROR
)
,
"internal list error"
},
{
E
RR_REASON
(
ENGINE_R_INVALID_ARGUMENT
)
,
"invalid argument"
},
{
E
RR_REASON
(
ENGINE_R_INVALID_CMD_NAME
)
,
"invalid cmd name"
},
{
E
RR_REASON
(
ENGINE_R_INVALID_CMD_NUMBER
)
,
"invalid cmd number"
},
{
E
RR_REASON
(
ENGINE_R_INVALID_INIT_VALUE
)
,
"invalid init value"
},
{
E
RR_REASON
(
ENGINE_R_INVALID_STRING
)
,
"invalid string"
},
{
E
RR_REASON
(
ENGINE_R_NOT_INITIALISED
)
,
"not initialised"
},
{
E
RR_REASON
(
ENGINE_R_NOT_LOADED
)
,
"not loaded"
},
{
E
RR_REASON
(
ENGINE_R_NO_CONTROL_FUNCTION
)
,
"no control function"
},
{
E
RR_REASON
(
ENGINE_R_NO_INDEX
)
,
"no index"
},
{
E
RR_REASON
(
ENGINE_R_NO_LOAD_FUNCTION
)
,
"no load function"
},
{
E
RR_REASON
(
ENGINE_R_NO_REFERENCE
)
,
"no reference"
},
{
E
RR_REASON
(
ENGINE_R_NO_SUCH_ENGINE
)
,
"no such engine"
},
{
E
RR_REASON
(
ENGINE_R_NO_UNLOAD_FUNCTION
)
,
"no unload function"
},
{
E
RR_REASON
(
ENGINE_R_PROVIDE_PARAMETERS
)
,
"provide parameters"
},
{
E
RR_REASON
(
ENGINE_R_RSA_NOT_IMPLEMENTED
)
,
"rsa not implemented"
},
{
E
RR_REASON
(
ENGINE_R_UNIMPLEMENTED_CIPHER
)
,
"unimplemented cipher"
},
{
E
RR_REASON
(
ENGINE_R_UNIMPLEMENTED_DIGEST
)
,
"unimplemented digest"
},
{
E
RR_REASON
(
ENGINE_R_VERSION_INCOMPATIBILITY
)
,
"version incompatibility"
},
{
0
,
NULL
}
};
...
...
@@ -158,8 +162,8 @@ void ERR_load_ENGINE_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_ENGINE
,
ENGINE_str_functs
);
ERR_load_strings
(
ERR_LIB_ENGINE
,
ENGINE_str_reasons
);
ERR_load_strings
(
0
,
ENGINE_str_functs
);
ERR_load_strings
(
0
,
ENGINE_str_reasons
);
#endif
}
...
...
crypto/evp/evp_err.c
浏览文件 @
29dc3508
/* crypto/evp/evp_err.c */
/* ====================================================================
* Copyright (c) 1999-200
3
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -64,90 +64,94 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_EVP,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_EVP,0,reason)
static
ERR_STRING_DATA
EVP_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
EVP_F_AES_INIT_KEY
,
0
),
"AES_INIT_KEY"
},
{
ERR_
PACK
(
0
,
EVP_F_D2I_PKEY
,
0
),
"D2I_PKEY"
},
{
ERR_
PACK
(
0
,
EVP_F_ECDSA_PKEY2PKCS8
,
0
),
"ECDSA_PKEY2PKCS8"
},
{
ERR_
PACK
(
0
,
EVP_F_EC_KEY_PKEY2PKCS8
,
0
),
"EC_KEY_PKEY2PKCS8"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_CIPHERINIT
,
0
),
"EVP_CipherInit"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_CIPHER_CTX_CTRL
,
0
),
"EVP_CIPHER_CTX_ctrl"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH
,
0
),
"EVP_CIPHER_CTX_set_key_length"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_DECRYPTFINAL
,
0
),
"EVP_DecryptFinal"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_DIGESTINIT
,
0
),
"EVP_DigestInit"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_ENCRYPTFINAL
,
0
),
"EVP_EncryptFinal"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_MD_CTX_COPY
,
0
),
"EVP_MD_CTX_copy"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_OPENINIT
,
0
),
"EVP_OpenInit"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PBE_ALG_ADD
,
0
),
"EVP_PBE_alg_add"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PBE_CIPHERINIT
,
0
),
"EVP_PBE_CipherInit"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKCS82PKEY
,
0
),
"EVP_PKCS82PKEY"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKCS8_SET_BROKEN
,
0
),
"EVP_PKCS8_SET_BROKEN"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY2PKCS8
,
0
),
"EVP_PKEY2PKCS8"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_COPY_PARAMETERS
,
0
),
"EVP_PKEY_copy_parameters"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_DECRYPT
,
0
),
"EVP_PKEY_decrypt"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_ENCRYPT
,
0
),
"EVP_PKEY_encrypt"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_GET1_DH
,
0
),
"EVP_PKEY_get1_DH"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_GET1_DSA
,
0
),
"EVP_PKEY_get1_DSA"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_GET1_ECDSA
,
0
),
"EVP_PKEY_GET1_ECDSA"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_GET1_EC_KEY
,
0
),
"EVP_PKEY_get1_EC_KEY"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_GET1_RSA
,
0
),
"EVP_PKEY_get1_RSA"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_PKEY_NEW
,
0
),
"EVP_PKEY_new"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_RIJNDAEL
,
0
),
"EVP_RIJNDAEL"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_SIGNFINAL
,
0
),
"EVP_SignFinal"
},
{
ERR_
PACK
(
0
,
EVP_F_EVP_VERIFYFINAL
,
0
),
"EVP_VerifyFinal"
},
{
ERR_
PACK
(
0
,
EVP_F_PKCS5_PBE_KEYIVGEN
,
0
),
"PKCS5_PBE_keyivgen"
},
{
ERR_
PACK
(
0
,
EVP_F_PKCS5_V2_PBE_KEYIVGEN
,
0
),
"PKCS5_v2_PBE_keyivgen"
},
{
ERR_
PACK
(
0
,
EVP_F_RC2_MAGIC_TO_METH
,
0
),
"RC2_MAGIC_TO_METH"
},
{
ERR_
PACK
(
0
,
EVP_F_RC5_CTRL
,
0
),
"RC5_CTRL"
},
{
ERR_
FUNC
(
EVP_F_AES_INIT_KEY
),
"AES_INIT_KEY"
},
{
ERR_
FUNC
(
EVP_F_D2I_PKEY
),
"D2I_PKEY"
},
{
ERR_
FUNC
(
EVP_F_ECDSA_PKEY2PKCS8
),
"ECDSA_PKEY2PKCS8"
},
{
ERR_
FUNC
(
EVP_F_EC_KEY_PKEY2PKCS8
),
"EC_KEY_PKEY2PKCS8"
},
{
ERR_
FUNC
(
EVP_F_EVP_CIPHERINIT
),
"EVP_CipherInit"
},
{
ERR_
FUNC
(
EVP_F_EVP_CIPHER_CTX_CTRL
),
"EVP_CIPHER_CTX_ctrl"
},
{
ERR_
FUNC
(
EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH
),
"EVP_CIPHER_CTX_set_key_length"
},
{
ERR_
FUNC
(
EVP_F_EVP_DECRYPTFINAL
),
"EVP_DecryptFinal"
},
{
ERR_
FUNC
(
EVP_F_EVP_DIGESTINIT
),
"EVP_DigestInit"
},
{
ERR_
FUNC
(
EVP_F_EVP_ENCRYPTFINAL
),
"EVP_EncryptFinal"
},
{
ERR_
FUNC
(
EVP_F_EVP_MD_CTX_COPY
),
"EVP_MD_CTX_copy"
},
{
ERR_
FUNC
(
EVP_F_EVP_OPENINIT
),
"EVP_OpenInit"
},
{
ERR_
FUNC
(
EVP_F_EVP_PBE_ALG_ADD
),
"EVP_PBE_alg_add"
},
{
ERR_
FUNC
(
EVP_F_EVP_PBE_CIPHERINIT
),
"EVP_PBE_CipherInit"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKCS82PKEY
),
"EVP_PKCS82PKEY"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKCS8_SET_BROKEN
),
"EVP_PKCS8_SET_BROKEN"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY2PKCS8
),
"EVP_PKEY2PKCS8"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_COPY_PARAMETERS
),
"EVP_PKEY_copy_parameters"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_DECRYPT
),
"EVP_PKEY_decrypt"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_ENCRYPT
),
"EVP_PKEY_encrypt"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_GET1_DH
),
"EVP_PKEY_get1_DH"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_GET1_DSA
),
"EVP_PKEY_get1_DSA"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_GET1_ECDSA
),
"EVP_PKEY_GET1_ECDSA"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_GET1_EC_KEY
),
"EVP_PKEY_get1_EC_KEY"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_GET1_RSA
),
"EVP_PKEY_get1_RSA"
},
{
ERR_
FUNC
(
EVP_F_EVP_PKEY_NEW
),
"EVP_PKEY_new"
},
{
ERR_
FUNC
(
EVP_F_EVP_RIJNDAEL
),
"EVP_RIJNDAEL"
},
{
ERR_
FUNC
(
EVP_F_EVP_SIGNFINAL
),
"EVP_SignFinal"
},
{
ERR_
FUNC
(
EVP_F_EVP_VERIFYFINAL
),
"EVP_VerifyFinal"
},
{
ERR_
FUNC
(
EVP_F_PKCS5_PBE_KEYIVGEN
),
"PKCS5_PBE_keyivgen"
},
{
ERR_
FUNC
(
EVP_F_PKCS5_V2_PBE_KEYIVGEN
),
"PKCS5_v2_PBE_keyivgen"
},
{
ERR_
FUNC
(
EVP_F_RC2_MAGIC_TO_METH
),
"RC2_MAGIC_TO_METH"
},
{
ERR_
FUNC
(
EVP_F_RC5_CTRL
),
"RC5_CTRL"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
EVP_str_reasons
[]
=
{
{
E
VP_R_AES_KEY_SETUP_FAILED
,
"aes key setup failed"
},
{
E
VP_R_ASN1_LIB
,
"asn1 lib"
},
{
E
VP_R_BAD_BLOCK_LENGTH
,
"bad block length"
},
{
E
VP_R_BAD_DECRYPT
,
"bad decrypt"
},
{
E
VP_R_BAD_KEY_LENGTH
,
"bad key length"
},
{
E
VP_R_BN_DECODE_ERROR
,
"bn decode error"
},
{
E
VP_R_BN_PUBKEY_ERROR
,
"bn pubkey error"
},
{
E
VP_R_CIPHER_PARAMETER_ERROR
,
"cipher parameter error"
},
{
E
VP_R_CTRL_NOT_IMPLEMENTED
,
"ctrl not implemented"
},
{
E
VP_R_CTRL_OPERATION_NOT_IMPLEMENTED
,
"ctrl operation not implemented"
},
{
E
VP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH
,
"data not multiple of block length"
},
{
E
VP_R_DECODE_ERROR
,
"decode error"
},
{
E
VP_R_DIFFERENT_KEY_TYPES
,
"different key types"
},
{
E
VP_R_ENCODE_ERROR
,
"encode error"
},
{
E
VP_R_EVP_PBE_CIPHERINIT_ERROR
,
"evp pbe cipherinit error"
},
{
E
VP_R_EXPECTING_AN_RSA_KEY
,
"expecting an rsa key"
},
{
E
VP_R_EXPECTING_A_DH_KEY
,
"expecting a dh key"
},
{
E
VP_R_EXPECTING_A_DSA_KEY
,
"expecting a dsa key"
},
{
E
VP_R_EXPECTING_A_ECDSA_KEY
,
"expecting a ecdsa key"
},
{
E
VP_R_EXPECTING_A_EC_KEY
,
"expecting a ec key"
},
{
E
VP_R_INITIALIZATION_ERROR
,
"initialization error"
},
{
E
VP_R_INPUT_NOT_INITIALIZED
,
"input not initialized"
},
{
E
VP_R_INVALID_KEY_LENGTH
,
"invalid key length"
},
{
E
VP_R_IV_TOO_LARGE
,
"iv too large"
},
{
E
VP_R_KEYGEN_FAILURE
,
"keygen failure"
},
{
E
VP_R_MISSING_PARAMETERS
,
"missing parameters"
},
{
E
VP_R_NO_CIPHER_SET
,
"no cipher set"
},
{
E
VP_R_NO_DIGEST_SET
,
"no digest set"
},
{
E
VP_R_NO_DSA_PARAMETERS
,
"no dsa parameters"
},
{
E
VP_R_NO_SIGN_FUNCTION_CONFIGURED
,
"no sign function configured"
},
{
E
VP_R_NO_VERIFY_FUNCTION_CONFIGURED
,
"no verify function configured"
},
{
E
VP_R_PKCS8_UNKNOWN_BROKEN_TYPE
,
"pkcs8 unknown broken type"
},
{
E
VP_R_PUBLIC_KEY_NOT_RSA
,
"public key not rsa"
},
{
E
VP_R_UNKNOWN_PBE_ALGORITHM
,
"unknown pbe algorithm"
},
{
E
VP_R_UNSUPORTED_NUMBER_OF_ROUNDS
,
"unsuported number of rounds"
},
{
E
VP_R_UNSUPPORTED_CIPHER
,
"unsupported cipher"
},
{
E
VP_R_UNSUPPORTED_KEYLENGTH
,
"unsupported keylength"
},
{
E
VP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION
,
"unsupported key derivation function"
},
{
E
VP_R_UNSUPPORTED_KEY_SIZE
,
"unsupported key size"
},
{
E
VP_R_UNSUPPORTED_PRF
,
"unsupported prf"
},
{
E
VP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM
,
"unsupported private key algorithm"
},
{
E
VP_R_UNSUPPORTED_SALT_TYPE
,
"unsupported salt type"
},
{
E
VP_R_WRONG_FINAL_BLOCK_LENGTH
,
"wrong final block length"
},
{
E
VP_R_WRONG_PUBLIC_KEY_TYPE
,
"wrong public key type"
},
{
E
RR_REASON
(
EVP_R_AES_KEY_SETUP_FAILED
)
,
"aes key setup failed"
},
{
E
RR_REASON
(
EVP_R_ASN1_LIB
)
,
"asn1 lib"
},
{
E
RR_REASON
(
EVP_R_BAD_BLOCK_LENGTH
)
,
"bad block length"
},
{
E
RR_REASON
(
EVP_R_BAD_DECRYPT
)
,
"bad decrypt"
},
{
E
RR_REASON
(
EVP_R_BAD_KEY_LENGTH
)
,
"bad key length"
},
{
E
RR_REASON
(
EVP_R_BN_DECODE_ERROR
)
,
"bn decode error"
},
{
E
RR_REASON
(
EVP_R_BN_PUBKEY_ERROR
)
,
"bn pubkey error"
},
{
E
RR_REASON
(
EVP_R_CIPHER_PARAMETER_ERROR
)
,
"cipher parameter error"
},
{
E
RR_REASON
(
EVP_R_CTRL_NOT_IMPLEMENTED
)
,
"ctrl not implemented"
},
{
E
RR_REASON
(
EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED
)
,
"ctrl operation not implemented"
},
{
E
RR_REASON
(
EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH
)
,
"data not multiple of block length"
},
{
E
RR_REASON
(
EVP_R_DECODE_ERROR
)
,
"decode error"
},
{
E
RR_REASON
(
EVP_R_DIFFERENT_KEY_TYPES
)
,
"different key types"
},
{
E
RR_REASON
(
EVP_R_ENCODE_ERROR
)
,
"encode error"
},
{
E
RR_REASON
(
EVP_R_EVP_PBE_CIPHERINIT_ERROR
)
,
"evp pbe cipherinit error"
},
{
E
RR_REASON
(
EVP_R_EXPECTING_AN_RSA_KEY
)
,
"expecting an rsa key"
},
{
E
RR_REASON
(
EVP_R_EXPECTING_A_DH_KEY
)
,
"expecting a dh key"
},
{
E
RR_REASON
(
EVP_R_EXPECTING_A_DSA_KEY
)
,
"expecting a dsa key"
},
{
E
RR_REASON
(
EVP_R_EXPECTING_A_ECDSA_KEY
)
,
"expecting a ecdsa key"
},
{
E
RR_REASON
(
EVP_R_EXPECTING_A_EC_KEY
)
,
"expecting a ec key"
},
{
E
RR_REASON
(
EVP_R_INITIALIZATION_ERROR
)
,
"initialization error"
},
{
E
RR_REASON
(
EVP_R_INPUT_NOT_INITIALIZED
)
,
"input not initialized"
},
{
E
RR_REASON
(
EVP_R_INVALID_KEY_LENGTH
)
,
"invalid key length"
},
{
E
RR_REASON
(
EVP_R_IV_TOO_LARGE
)
,
"iv too large"
},
{
E
RR_REASON
(
EVP_R_KEYGEN_FAILURE
)
,
"keygen failure"
},
{
E
RR_REASON
(
EVP_R_MISSING_PARAMETERS
)
,
"missing parameters"
},
{
E
RR_REASON
(
EVP_R_NO_CIPHER_SET
)
,
"no cipher set"
},
{
E
RR_REASON
(
EVP_R_NO_DIGEST_SET
)
,
"no digest set"
},
{
E
RR_REASON
(
EVP_R_NO_DSA_PARAMETERS
)
,
"no dsa parameters"
},
{
E
RR_REASON
(
EVP_R_NO_SIGN_FUNCTION_CONFIGURED
)
,
"no sign function configured"
},
{
E
RR_REASON
(
EVP_R_NO_VERIFY_FUNCTION_CONFIGURED
)
,
"no verify function configured"
},
{
E
RR_REASON
(
EVP_R_PKCS8_UNKNOWN_BROKEN_TYPE
)
,
"pkcs8 unknown broken type"
},
{
E
RR_REASON
(
EVP_R_PUBLIC_KEY_NOT_RSA
)
,
"public key not rsa"
},
{
E
RR_REASON
(
EVP_R_UNKNOWN_PBE_ALGORITHM
)
,
"unknown pbe algorithm"
},
{
E
RR_REASON
(
EVP_R_UNSUPORTED_NUMBER_OF_ROUNDS
)
,
"unsuported number of rounds"
},
{
E
RR_REASON
(
EVP_R_UNSUPPORTED_CIPHER
)
,
"unsupported cipher"
},
{
E
RR_REASON
(
EVP_R_UNSUPPORTED_KEYLENGTH
)
,
"unsupported keylength"
},
{
E
RR_REASON
(
EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION
)
,
"unsupported key derivation function"
},
{
E
RR_REASON
(
EVP_R_UNSUPPORTED_KEY_SIZE
)
,
"unsupported key size"
},
{
E
RR_REASON
(
EVP_R_UNSUPPORTED_PRF
)
,
"unsupported prf"
},
{
E
RR_REASON
(
EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM
)
,
"unsupported private key algorithm"
},
{
E
RR_REASON
(
EVP_R_UNSUPPORTED_SALT_TYPE
)
,
"unsupported salt type"
},
{
E
RR_REASON
(
EVP_R_WRONG_FINAL_BLOCK_LENGTH
)
,
"wrong final block length"
},
{
E
RR_REASON
(
EVP_R_WRONG_PUBLIC_KEY_TYPE
)
,
"wrong public key type"
},
{
0
,
NULL
}
};
...
...
@@ -161,8 +165,8 @@ void ERR_load_EVP_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_EVP
,
EVP_str_functs
);
ERR_load_strings
(
ERR_LIB_EVP
,
EVP_str_reasons
);
ERR_load_strings
(
0
,
EVP_str_functs
);
ERR_load_strings
(
0
,
EVP_str_reasons
);
#endif
}
...
...
crypto/objects/obj_err.c
浏览文件 @
29dc3508
/* crypto/objects/obj_err.c */
/* ====================================================================
* Copyright (c) 1999-200
4
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -64,22 +64,26 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_OBJ,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_OBJ,0,reason)
static
ERR_STRING_DATA
OBJ_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
OBJ_F_OBJ_ADD_OBJECT
,
0
),
"OBJ_add_object"
},
{
ERR_
PACK
(
0
,
OBJ_F_OBJ_CREATE
,
0
),
"OBJ_create"
},
{
ERR_
PACK
(
0
,
OBJ_F_OBJ_DUP
,
0
),
"OBJ_dup"
},
{
ERR_
PACK
(
0
,
OBJ_F_OBJ_NAME_NEW_INDEX
,
0
),
"OBJ_NAME_new_index"
},
{
ERR_
PACK
(
0
,
OBJ_F_OBJ_NID2LN
,
0
),
"OBJ_nid2ln"
},
{
ERR_
PACK
(
0
,
OBJ_F_OBJ_NID2OBJ
,
0
),
"OBJ_nid2obj"
},
{
ERR_
PACK
(
0
,
OBJ_F_OBJ_NID2SN
,
0
),
"OBJ_nid2sn"
},
{
ERR_
FUNC
(
OBJ_F_OBJ_ADD_OBJECT
),
"OBJ_add_object"
},
{
ERR_
FUNC
(
OBJ_F_OBJ_CREATE
),
"OBJ_create"
},
{
ERR_
FUNC
(
OBJ_F_OBJ_DUP
),
"OBJ_dup"
},
{
ERR_
FUNC
(
OBJ_F_OBJ_NAME_NEW_INDEX
),
"OBJ_NAME_new_index"
},
{
ERR_
FUNC
(
OBJ_F_OBJ_NID2LN
),
"OBJ_nid2ln"
},
{
ERR_
FUNC
(
OBJ_F_OBJ_NID2OBJ
),
"OBJ_nid2obj"
},
{
ERR_
FUNC
(
OBJ_F_OBJ_NID2SN
),
"OBJ_nid2sn"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
OBJ_str_reasons
[]
=
{
{
OBJ_R_MALLOC_FAILURE
,
"malloc failure"
},
{
OBJ_R_UNKNOWN_NID
,
"unknown nid"
},
{
ERR_REASON
(
OBJ_R_MALLOC_FAILURE
)
,
"malloc failure"
},
{
ERR_REASON
(
OBJ_R_UNKNOWN_NID
)
,
"unknown nid"
},
{
0
,
NULL
}
};
...
...
@@ -93,8 +97,8 @@ void ERR_load_OBJ_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_OBJ
,
OBJ_str_functs
);
ERR_load_strings
(
ERR_LIB_OBJ
,
OBJ_str_reasons
);
ERR_load_strings
(
0
,
OBJ_str_functs
);
ERR_load_strings
(
0
,
OBJ_str_reasons
);
#endif
}
...
...
crypto/ocsp/ocsp_err.c
浏览文件 @
29dc3508
/* crypto/ocsp/ocsp_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -64,60 +64,64 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_OCSP,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_OCSP,0,reason)
static
ERR_STRING_DATA
OCSP_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
OCSP_F_ASN1_STRING_ENCODE
,
0
),
"ASN1_STRING_encode"
},
{
ERR_
PACK
(
0
,
OCSP_F_CERT_ID_NEW
,
0
),
"CERT_ID_NEW"
},
{
ERR_
PACK
(
0
,
OCSP_F_D2I_OCSP_NONCE
,
0
),
"D2I_OCSP_NONCE"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_BASIC_ADD1_STATUS
,
0
),
"OCSP_basic_add1_status"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_BASIC_SIGN
,
0
),
"OCSP_basic_sign"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_BASIC_VERIFY
,
0
),
"OCSP_basic_verify"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_CHECK_DELEGATED
,
0
),
"OCSP_CHECK_DELEGATED"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_CHECK_IDS
,
0
),
"OCSP_CHECK_IDS"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_CHECK_ISSUER
,
0
),
"OCSP_CHECK_ISSUER"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_CHECK_VALIDITY
,
0
),
"OCSP_check_validity"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_MATCH_ISSUERID
,
0
),
"OCSP_MATCH_ISSUERID"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_PARSE_URL
,
0
),
"OCSP_parse_url"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_REQUEST_SIGN
,
0
),
"OCSP_request_sign"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_REQUEST_VERIFY
,
0
),
"OCSP_request_verify"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_RESPONSE_GET1_BASIC
,
0
),
"OCSP_response_get1_basic"
},
{
ERR_
PACK
(
0
,
OCSP_F_OCSP_SENDREQ_BIO
,
0
),
"OCSP_sendreq_bio"
},
{
ERR_
PACK
(
0
,
OCSP_F_REQUEST_VERIFY
,
0
),
"REQUEST_VERIFY"
},
{
ERR_
FUNC
(
OCSP_F_ASN1_STRING_ENCODE
),
"ASN1_STRING_encode"
},
{
ERR_
FUNC
(
OCSP_F_CERT_ID_NEW
),
"CERT_ID_NEW"
},
{
ERR_
FUNC
(
OCSP_F_D2I_OCSP_NONCE
),
"D2I_OCSP_NONCE"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_BASIC_ADD1_STATUS
),
"OCSP_basic_add1_status"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_BASIC_SIGN
),
"OCSP_basic_sign"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_BASIC_VERIFY
),
"OCSP_basic_verify"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_CHECK_DELEGATED
),
"OCSP_CHECK_DELEGATED"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_CHECK_IDS
),
"OCSP_CHECK_IDS"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_CHECK_ISSUER
),
"OCSP_CHECK_ISSUER"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_CHECK_VALIDITY
),
"OCSP_check_validity"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_MATCH_ISSUERID
),
"OCSP_MATCH_ISSUERID"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_PARSE_URL
),
"OCSP_parse_url"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_REQUEST_SIGN
),
"OCSP_request_sign"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_REQUEST_VERIFY
),
"OCSP_request_verify"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_RESPONSE_GET1_BASIC
),
"OCSP_response_get1_basic"
},
{
ERR_
FUNC
(
OCSP_F_OCSP_SENDREQ_BIO
),
"OCSP_sendreq_bio"
},
{
ERR_
FUNC
(
OCSP_F_REQUEST_VERIFY
),
"REQUEST_VERIFY"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
OCSP_str_reasons
[]
=
{
{
OCSP_R_BAD_DATA
,
"bad data"
},
{
OCSP_R_CERTIFICATE_VERIFY_ERROR
,
"certificate verify error"
},
{
OCSP_R_DIGEST_ERR
,
"digest err"
},
{
OCSP_R_ERROR_IN_NEXTUPDATE_FIELD
,
"error in nextupdate field"
},
{
OCSP_R_ERROR_IN_THISUPDATE_FIELD
,
"error in thisupdate field"
},
{
OCSP_R_ERROR_PARSING_URL
,
"error parsing url"
},
{
OCSP_R_MISSING_OCSPSIGNING_USAGE
,
"missing ocspsigning usage"
},
{
OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE
,
"nextupdate before thisupdate"
},
{
OCSP_R_NOT_BASIC_RESPONSE
,
"not basic response"
},
{
OCSP_R_NO_CERTIFICATES_IN_CHAIN
,
"no certificates in chain"
},
{
OCSP_R_NO_CONTENT
,
"no content"
},
{
OCSP_R_NO_PUBLIC_KEY
,
"no public key"
},
{
OCSP_R_NO_RESPONSE_DATA
,
"no response data"
},
{
OCSP_R_NO_REVOKED_TIME
,
"no revoked time"
},
{
OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE
,
"private key does not match certificate"
},
{
OCSP_R_REQUEST_NOT_SIGNED
,
"request not signed"
},
{
OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA
,
"response contains no revocation data"
},
{
OCSP_R_ROOT_CA_NOT_TRUSTED
,
"root ca not trusted"
},
{
OCSP_R_SERVER_READ_ERROR
,
"server read error"
},
{
OCSP_R_SERVER_RESPONSE_ERROR
,
"server response error"
},
{
OCSP_R_SERVER_RESPONSE_PARSE_ERROR
,
"server response parse error"
},
{
OCSP_R_SERVER_WRITE_ERROR
,
"server write error"
},
{
OCSP_R_SIGNATURE_FAILURE
,
"signature failure"
},
{
OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND
,
"signer certificate not found"
},
{
OCSP_R_STATUS_EXPIRED
,
"status expired"
},
{
OCSP_R_STATUS_NOT_YET_VALID
,
"status not yet valid"
},
{
OCSP_R_STATUS_TOO_OLD
,
"status too old"
},
{
OCSP_R_UNKNOWN_MESSAGE_DIGEST
,
"unknown message digest"
},
{
OCSP_R_UNKNOWN_NID
,
"unknown nid"
},
{
OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE
,
"unsupported requestorname type"
},
{
ERR_REASON
(
OCSP_R_BAD_DATA
)
,
"bad data"
},
{
ERR_REASON
(
OCSP_R_CERTIFICATE_VERIFY_ERROR
)
,
"certificate verify error"
},
{
ERR_REASON
(
OCSP_R_DIGEST_ERR
)
,
"digest err"
},
{
ERR_REASON
(
OCSP_R_ERROR_IN_NEXTUPDATE_FIELD
)
,
"error in nextupdate field"
},
{
ERR_REASON
(
OCSP_R_ERROR_IN_THISUPDATE_FIELD
)
,
"error in thisupdate field"
},
{
ERR_REASON
(
OCSP_R_ERROR_PARSING_URL
)
,
"error parsing url"
},
{
ERR_REASON
(
OCSP_R_MISSING_OCSPSIGNING_USAGE
)
,
"missing ocspsigning usage"
},
{
ERR_REASON
(
OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE
)
,
"nextupdate before thisupdate"
},
{
ERR_REASON
(
OCSP_R_NOT_BASIC_RESPONSE
)
,
"not basic response"
},
{
ERR_REASON
(
OCSP_R_NO_CERTIFICATES_IN_CHAIN
)
,
"no certificates in chain"
},
{
ERR_REASON
(
OCSP_R_NO_CONTENT
)
,
"no content"
},
{
ERR_REASON
(
OCSP_R_NO_PUBLIC_KEY
)
,
"no public key"
},
{
ERR_REASON
(
OCSP_R_NO_RESPONSE_DATA
)
,
"no response data"
},
{
ERR_REASON
(
OCSP_R_NO_REVOKED_TIME
)
,
"no revoked time"
},
{
ERR_REASON
(
OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE
)
,
"private key does not match certificate"
},
{
ERR_REASON
(
OCSP_R_REQUEST_NOT_SIGNED
)
,
"request not signed"
},
{
ERR_REASON
(
OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA
)
,
"response contains no revocation data"
},
{
ERR_REASON
(
OCSP_R_ROOT_CA_NOT_TRUSTED
)
,
"root ca not trusted"
},
{
ERR_REASON
(
OCSP_R_SERVER_READ_ERROR
)
,
"server read error"
},
{
ERR_REASON
(
OCSP_R_SERVER_RESPONSE_ERROR
)
,
"server response error"
},
{
ERR_REASON
(
OCSP_R_SERVER_RESPONSE_PARSE_ERROR
)
,
"server response parse error"
},
{
ERR_REASON
(
OCSP_R_SERVER_WRITE_ERROR
)
,
"server write error"
},
{
ERR_REASON
(
OCSP_R_SIGNATURE_FAILURE
)
,
"signature failure"
},
{
ERR_REASON
(
OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND
)
,
"signer certificate not found"
},
{
ERR_REASON
(
OCSP_R_STATUS_EXPIRED
)
,
"status expired"
},
{
ERR_REASON
(
OCSP_R_STATUS_NOT_YET_VALID
)
,
"status not yet valid"
},
{
ERR_REASON
(
OCSP_R_STATUS_TOO_OLD
)
,
"status too old"
},
{
ERR_REASON
(
OCSP_R_UNKNOWN_MESSAGE_DIGEST
)
,
"unknown message digest"
},
{
ERR_REASON
(
OCSP_R_UNKNOWN_NID
)
,
"unknown nid"
},
{
ERR_REASON
(
OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE
)
,
"unsupported requestorname type"
},
{
0
,
NULL
}
};
...
...
@@ -131,8 +135,8 @@ void ERR_load_OCSP_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_OCSP
,
OCSP_str_functs
);
ERR_load_strings
(
ERR_LIB_OCSP
,
OCSP_str_reasons
);
ERR_load_strings
(
0
,
OCSP_str_functs
);
ERR_load_strings
(
0
,
OCSP_str_reasons
);
#endif
}
...
...
crypto/pem/pem_err.c
浏览文件 @
29dc3508
/* crypto/pem/pem_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -64,52 +64,56 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_PEM,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_PEM,0,reason)
static
ERR_STRING_DATA
PEM_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
PEM_F_D2I_PKCS8PRIVATEKEY_BIO
,
0
),
"d2i_PKCS8PrivateKey_bio"
},
{
ERR_
PACK
(
0
,
PEM_F_D2I_PKCS8PRIVATEKEY_FP
,
0
),
"d2i_PKCS8PrivateKey_fp"
},
{
ERR_
PACK
(
0
,
PEM_F_DEF_CALLBACK
,
0
),
"DEF_CALLBACK"
},
{
ERR_
PACK
(
0
,
PEM_F_LOAD_IV
,
0
),
"LOAD_IV"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_ASN1_READ
,
0
),
"PEM_ASN1_read"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_ASN1_READ_BIO
,
0
),
"PEM_ASN1_read_bio"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_ASN1_WRITE
,
0
),
"PEM_ASN1_write"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_ASN1_WRITE_BIO
,
0
),
"PEM_ASN1_write_bio"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_DO_HEADER
,
0
),
"PEM_do_header"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_F_DO_PK8KEY_FP
,
0
),
"PEM_F_DO_PK8KEY_FP"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_F_PEM_WRITE_PKCS8PRIVATEKEY
,
0
),
"PEM_F_PEM_WRITE_PKCS8PRIVATEKEY"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_GET_EVP_CIPHER_INFO
,
0
),
"PEM_get_EVP_CIPHER_INFO"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_READ
,
0
),
"PEM_read"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_READ_BIO
,
0
),
"PEM_read_bio"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_SEALFINAL
,
0
),
"PEM_SealFinal"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_SEALINIT
,
0
),
"PEM_SealInit"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_SIGNFINAL
,
0
),
"PEM_SignFinal"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_WRITE
,
0
),
"PEM_write"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_WRITE_BIO
,
0
),
"PEM_write_bio"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_WRITE_BIO_PKCS8PRIVATEKEY
,
0
),
"PEM_write_bio_PKCS8PrivateKey"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_X509_INFO_READ
,
0
),
"PEM_X509_INFO_read"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_X509_INFO_READ_BIO
,
0
),
"PEM_X509_INFO_read_bio"
},
{
ERR_
PACK
(
0
,
PEM_F_PEM_X509_INFO_WRITE_BIO
,
0
),
"PEM_X509_INFO_write_bio"
},
{
ERR_
FUNC
(
PEM_F_D2I_PKCS8PRIVATEKEY_BIO
),
"d2i_PKCS8PrivateKey_bio"
},
{
ERR_
FUNC
(
PEM_F_D2I_PKCS8PRIVATEKEY_FP
),
"d2i_PKCS8PrivateKey_fp"
},
{
ERR_
FUNC
(
PEM_F_DEF_CALLBACK
),
"DEF_CALLBACK"
},
{
ERR_
FUNC
(
PEM_F_LOAD_IV
),
"LOAD_IV"
},
{
ERR_
FUNC
(
PEM_F_PEM_ASN1_READ
),
"PEM_ASN1_read"
},
{
ERR_
FUNC
(
PEM_F_PEM_ASN1_READ_BIO
),
"PEM_ASN1_read_bio"
},
{
ERR_
FUNC
(
PEM_F_PEM_ASN1_WRITE
),
"PEM_ASN1_write"
},
{
ERR_
FUNC
(
PEM_F_PEM_ASN1_WRITE_BIO
),
"PEM_ASN1_write_bio"
},
{
ERR_
FUNC
(
PEM_F_PEM_DO_HEADER
),
"PEM_do_header"
},
{
ERR_
FUNC
(
PEM_F_PEM_F_DO_PK8KEY_FP
),
"PEM_F_DO_PK8KEY_FP"
},
{
ERR_
FUNC
(
PEM_F_PEM_F_PEM_WRITE_PKCS8PRIVATEKEY
),
"PEM_F_PEM_WRITE_PKCS8PRIVATEKEY"
},
{
ERR_
FUNC
(
PEM_F_PEM_GET_EVP_CIPHER_INFO
),
"PEM_get_EVP_CIPHER_INFO"
},
{
ERR_
FUNC
(
PEM_F_PEM_READ
),
"PEM_read"
},
{
ERR_
FUNC
(
PEM_F_PEM_READ_BIO
),
"PEM_read_bio"
},
{
ERR_
FUNC
(
PEM_F_PEM_SEALFINAL
),
"PEM_SealFinal"
},
{
ERR_
FUNC
(
PEM_F_PEM_SEALINIT
),
"PEM_SealInit"
},
{
ERR_
FUNC
(
PEM_F_PEM_SIGNFINAL
),
"PEM_SignFinal"
},
{
ERR_
FUNC
(
PEM_F_PEM_WRITE
),
"PEM_write"
},
{
ERR_
FUNC
(
PEM_F_PEM_WRITE_BIO
),
"PEM_write_bio"
},
{
ERR_
FUNC
(
PEM_F_PEM_WRITE_BIO_PKCS8PRIVATEKEY
),
"PEM_write_bio_PKCS8PrivateKey"
},
{
ERR_
FUNC
(
PEM_F_PEM_X509_INFO_READ
),
"PEM_X509_INFO_read"
},
{
ERR_
FUNC
(
PEM_F_PEM_X509_INFO_READ_BIO
),
"PEM_X509_INFO_read_bio"
},
{
ERR_
FUNC
(
PEM_F_PEM_X509_INFO_WRITE_BIO
),
"PEM_X509_INFO_write_bio"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
PEM_str_reasons
[]
=
{
{
PEM_R_BAD_BASE64_DECODE
,
"bad base64 decode"
},
{
PEM_R_BAD_DECRYPT
,
"bad decrypt"
},
{
PEM_R_BAD_END_LINE
,
"bad end line"
},
{
PEM_R_BAD_IV_CHARS
,
"bad iv chars"
},
{
PEM_R_BAD_PASSWORD_READ
,
"bad password read"
},
{
PEM_R_ERROR_CONVERTING_PRIVATE_KEY
,
"error converting private key"
},
{
PEM_R_NOT_DEK_INFO
,
"not dek info"
},
{
PEM_R_NOT_ENCRYPTED
,
"not encrypted"
},
{
PEM_R_NOT_PROC_TYPE
,
"not proc type"
},
{
PEM_R_NO_START_LINE
,
"no start line"
},
{
PEM_R_PROBLEMS_GETTING_PASSWORD
,
"problems getting password"
},
{
PEM_R_PUBLIC_KEY_NO_RSA
,
"public key no rsa"
},
{
PEM_R_READ_KEY
,
"read key"
},
{
PEM_R_SHORT_HEADER
,
"short header"
},
{
PEM_R_UNSUPPORTED_CIPHER
,
"unsupported cipher"
},
{
PEM_R_UNSUPPORTED_ENCRYPTION
,
"unsupported encryption"
},
{
ERR_REASON
(
PEM_R_BAD_BASE64_DECODE
)
,
"bad base64 decode"
},
{
ERR_REASON
(
PEM_R_BAD_DECRYPT
)
,
"bad decrypt"
},
{
ERR_REASON
(
PEM_R_BAD_END_LINE
)
,
"bad end line"
},
{
ERR_REASON
(
PEM_R_BAD_IV_CHARS
)
,
"bad iv chars"
},
{
ERR_REASON
(
PEM_R_BAD_PASSWORD_READ
)
,
"bad password read"
},
{
ERR_REASON
(
PEM_R_ERROR_CONVERTING_PRIVATE_KEY
)
,
"error converting private key"
},
{
ERR_REASON
(
PEM_R_NOT_DEK_INFO
)
,
"not dek info"
},
{
ERR_REASON
(
PEM_R_NOT_ENCRYPTED
)
,
"not encrypted"
},
{
ERR_REASON
(
PEM_R_NOT_PROC_TYPE
)
,
"not proc type"
},
{
ERR_REASON
(
PEM_R_NO_START_LINE
)
,
"no start line"
},
{
ERR_REASON
(
PEM_R_PROBLEMS_GETTING_PASSWORD
)
,
"problems getting password"
},
{
ERR_REASON
(
PEM_R_PUBLIC_KEY_NO_RSA
)
,
"public key no rsa"
},
{
ERR_REASON
(
PEM_R_READ_KEY
)
,
"read key"
},
{
ERR_REASON
(
PEM_R_SHORT_HEADER
)
,
"short header"
},
{
ERR_REASON
(
PEM_R_UNSUPPORTED_CIPHER
)
,
"unsupported cipher"
},
{
ERR_REASON
(
PEM_R_UNSUPPORTED_ENCRYPTION
)
,
"unsupported encryption"
},
{
0
,
NULL
}
};
...
...
@@ -123,8 +127,8 @@ void ERR_load_PEM_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_PEM
,
PEM_str_functs
);
ERR_load_strings
(
ERR_LIB_PEM
,
PEM_str_reasons
);
ERR_load_strings
(
0
,
PEM_str_functs
);
ERR_load_strings
(
0
,
PEM_str_reasons
);
#endif
}
...
...
crypto/pkcs12/pk12err.c
浏览文件 @
29dc3508
/* crypto/pkcs12/pk12err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -64,60 +64,64 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_PKCS12,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_PKCS12,0,reason)
static
ERR_STRING_DATA
PKCS12_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
PKCS12_F_PARSE_BAGS
,
0
),
"PARSE_BAGS"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_ADD_FRIENDLYNAME
,
0
),
"PKCS12_ADD_FRIENDLYNAME"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_ADD_FRIENDLYNAME_ASC
,
0
),
"PKCS12_add_friendlyname_asc"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_ADD_FRIENDLYNAME_UNI
,
0
),
"PKCS12_add_friendlyname_uni"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_ADD_LOCALKEYID
,
0
),
"PKCS12_add_localkeyid"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_CREATE
,
0
),
"PKCS12_create"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_DECRYPT_D2I
,
0
),
"PKCS12_decrypt_d2i
"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_GEN_MAC
,
0
),
"PKCS12_gen_mac"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_I2D_ENCRYPT
,
0
),
"PKCS12_i2d_encrypt
"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_INIT
,
0
),
"PKCS12_init"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_KEY_GEN_ASC
,
0
),
"PKCS12_key_gen_asc"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_KEY_GEN_UNI
,
0
),
"PKCS12_key_gen_uni"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_MAKE_KEYBAG
,
0
),
"PKCS12_MAKE_KEYBAG"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_MAKE_SHKEYBAG
,
0
),
"PKCS12_MAKE_SHKEYBAG"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_NEWPASS
,
0
),
"PKCS12_newpass"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_PACK_P7DATA
,
0
),
"PKCS12_pack_p7data"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_PACK_P7ENCDATA
,
0
),
"PKCS12_pack_p7encdata"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_PACK_SAFEBAG
,
0
),
"PKCS12_pack_safebag
"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_PARSE
,
0
),
"PKCS12_parse"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_PBE_CRYPT
,
0
),
"PKCS12_pbe_crypt"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_PBE_KEYIVGEN
,
0
),
"PKCS12_PBE_keyivgen"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_SETUP_MAC
,
0
),
"PKCS12_setup_mac"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS12_SET_MAC
,
0
),
"PKCS12_set_mac"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS8_ADD_KEYUSAGE
,
0
),
"PKCS8_add_keyusage"
},
{
ERR_
PACK
(
0
,
PKCS12_F_PKCS8_ENCRYPT
,
0
),
"PKCS8_encrypt"
},
{
ERR_
PACK
(
0
,
PKCS12_F_VERIFY_MAC
,
0
),
"VERIFY_MAC"
},
{
ERR_
FUNC
(
PKCS12_F_PARSE_BAGS
),
"PARSE_BAGS"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_ADD_FRIENDLYNAME
),
"PKCS12_ADD_FRIENDLYNAME"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_ADD_FRIENDLYNAME_ASC
),
"PKCS12_add_friendlyname_asc"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_ADD_FRIENDLYNAME_UNI
),
"PKCS12_add_friendlyname_uni"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_ADD_LOCALKEYID
),
"PKCS12_add_localkeyid"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_CREATE
),
"PKCS12_create"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_DECRYPT_D2I
),
"PKCS12_DECRYPT_D2I
"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_GEN_MAC
),
"PKCS12_gen_mac"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_I2D_ENCRYPT
),
"PKCS12_I2D_ENCRYPT
"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_INIT
),
"PKCS12_init"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_KEY_GEN_ASC
),
"PKCS12_key_gen_asc"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_KEY_GEN_UNI
),
"PKCS12_key_gen_uni"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_MAKE_KEYBAG
),
"PKCS12_MAKE_KEYBAG"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_MAKE_SHKEYBAG
),
"PKCS12_MAKE_SHKEYBAG"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_NEWPASS
),
"PKCS12_newpass"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_PACK_P7DATA
),
"PKCS12_pack_p7data"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_PACK_P7ENCDATA
),
"PKCS12_pack_p7encdata"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_PACK_SAFEBAG
),
"PKCS12_PACK_SAFEBAG
"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_PARSE
),
"PKCS12_parse"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_PBE_CRYPT
),
"PKCS12_pbe_crypt"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_PBE_KEYIVGEN
),
"PKCS12_PBE_keyivgen"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_SETUP_MAC
),
"PKCS12_setup_mac"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS12_SET_MAC
),
"PKCS12_set_mac"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS8_ADD_KEYUSAGE
),
"PKCS8_add_keyusage"
},
{
ERR_
FUNC
(
PKCS12_F_PKCS8_ENCRYPT
),
"PKCS8_encrypt"
},
{
ERR_
FUNC
(
PKCS12_F_VERIFY_MAC
),
"VERIFY_MAC"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
PKCS12_str_reasons
[]
=
{
{
PKCS12_R_CANT_PACK_STRUCTURE
,
"cant pack structure"
},
{
PKCS12_R_DECODE_ERROR
,
"decode error"
},
{
PKCS12_R_ENCODE_ERROR
,
"encode error"
},
{
PKCS12_R_ENCRYPT_ERROR
,
"encrypt error"
},
{
PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE
,
"error setting encrypted data type"
},
{
PKCS12_R_INVALID_NULL_ARGUMENT
,
"invalid null argument"
},
{
PKCS12_R_INVALID_NULL_PKCS12_POINTER
,
"invalid null pkcs12 pointer"
},
{
PKCS12_R_IV_GEN_ERROR
,
"iv gen error"
},
{
PKCS12_R_KEY_GEN_ERROR
,
"key gen error"
},
{
PKCS12_R_MAC_ABSENT
,
"mac absent"
},
{
PKCS12_R_MAC_GENERATION_ERROR
,
"mac generation error"
},
{
PKCS12_R_MAC_SETUP_ERROR
,
"mac setup error"
},
{
PKCS12_R_MAC_STRING_SET_ERROR
,
"mac string set error"
},
{
PKCS12_R_MAC_VERIFY_ERROR
,
"mac verify error"
},
{
PKCS12_R_MAC_VERIFY_FAILURE
,
"mac verify failure"
},
{
PKCS12_R_PARSE_ERROR
,
"parse error"
},
{
PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR
,
"pkcs12 algor cipherinit error"
},
{
PKCS12_R_PKCS12_CIPHERFINAL_ERROR
,
"pkcs12 cipherfinal error"
},
{
PKCS12_R_PKCS12_PBE_CRYPT_ERROR
,
"pkcs12 pbe crypt error"
},
{
PKCS12_R_UNKNOWN_DIGEST_ALGORITHM
,
"unknown digest algorithm"
},
{
PKCS12_R_UNSUPPORTED_PKCS12_MODE
,
"unsupported pkcs12 mode"
},
{
ERR_REASON
(
PKCS12_R_CANT_PACK_STRUCTURE
)
,
"cant pack structure"
},
{
ERR_REASON
(
PKCS12_R_DECODE_ERROR
)
,
"decode error"
},
{
ERR_REASON
(
PKCS12_R_ENCODE_ERROR
)
,
"encode error"
},
{
ERR_REASON
(
PKCS12_R_ENCRYPT_ERROR
)
,
"encrypt error"
},
{
ERR_REASON
(
PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE
)
,
"error setting encrypted data type"
},
{
ERR_REASON
(
PKCS12_R_INVALID_NULL_ARGUMENT
)
,
"invalid null argument"
},
{
ERR_REASON
(
PKCS12_R_INVALID_NULL_PKCS12_POINTER
)
,
"invalid null pkcs12 pointer"
},
{
ERR_REASON
(
PKCS12_R_IV_GEN_ERROR
)
,
"iv gen error"
},
{
ERR_REASON
(
PKCS12_R_KEY_GEN_ERROR
)
,
"key gen error"
},
{
ERR_REASON
(
PKCS12_R_MAC_ABSENT
)
,
"mac absent"
},
{
ERR_REASON
(
PKCS12_R_MAC_GENERATION_ERROR
)
,
"mac generation error"
},
{
ERR_REASON
(
PKCS12_R_MAC_SETUP_ERROR
)
,
"mac setup error"
},
{
ERR_REASON
(
PKCS12_R_MAC_STRING_SET_ERROR
)
,
"mac string set error"
},
{
ERR_REASON
(
PKCS12_R_MAC_VERIFY_ERROR
)
,
"mac verify error"
},
{
ERR_REASON
(
PKCS12_R_MAC_VERIFY_FAILURE
)
,
"mac verify failure"
},
{
ERR_REASON
(
PKCS12_R_PARSE_ERROR
)
,
"parse error"
},
{
ERR_REASON
(
PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR
)
,
"pkcs12 algor cipherinit error"
},
{
ERR_REASON
(
PKCS12_R_PKCS12_CIPHERFINAL_ERROR
)
,
"pkcs12 cipherfinal error"
},
{
ERR_REASON
(
PKCS12_R_PKCS12_PBE_CRYPT_ERROR
)
,
"pkcs12 pbe crypt error"
},
{
ERR_REASON
(
PKCS12_R_UNKNOWN_DIGEST_ALGORITHM
)
,
"unknown digest algorithm"
},
{
ERR_REASON
(
PKCS12_R_UNSUPPORTED_PKCS12_MODE
)
,
"unsupported pkcs12 mode"
},
{
0
,
NULL
}
};
...
...
@@ -131,8 +135,8 @@ void ERR_load_PKCS12_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_PKCS12
,
PKCS12_str_functs
);
ERR_load_strings
(
ERR_LIB_PKCS12
,
PKCS12_str_reasons
);
ERR_load_strings
(
0
,
PKCS12_str_functs
);
ERR_load_strings
(
0
,
PKCS12_str_reasons
);
#endif
}
...
...
crypto/pkcs7/pkcs7err.c
浏览文件 @
29dc3508
/* crypto/pkcs7/pkcs7err.c */
/* ====================================================================
* Copyright (c) 1999-200
3
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -64,84 +64,88 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_PKCS7,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_PKCS7,0,reason)
static
ERR_STRING_DATA
PKCS7_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
PKCS7_F_B64_READ_PKCS7
,
0
),
"B64_READ_PKCS7"
},
{
ERR_
PACK
(
0
,
PKCS7_F_B64_WRITE_PKCS7
,
0
),
"B64_WRITE_PKCS7"
},
{
ERR_
PACK
(
0
,
PKCS7_F_FIND_DIGEST
,
0
),
"FIND_DIGEST"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP
,
0
),
"PKCS7_add_attrib_smimecap"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_ADD_CERTIFICATE
,
0
),
"PKCS7_add_certificate"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_ADD_CRL
,
0
),
"PKCS7_add_crl"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_ADD_RECIPIENT_INFO
,
0
),
"PKCS7_add_recipient_info"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_ADD_SIGNER
,
0
),
"PKCS7_add_signer"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_BIO_ADD_DIGEST
,
0
),
"PKCS7_BIO_ADD_DIGEST"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_CTRL
,
0
),
"PKCS7_ctrl"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_DATADECODE
,
0
),
"PKCS7_dataDecode"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_DATAINIT
,
0
),
"PKCS7_dataInit"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_DATASIGN
,
0
),
"PKCS7_DATASIGN"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_DATAVERIFY
,
0
),
"PKCS7_dataVerify"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_DECRYPT
,
0
),
"PKCS7_decrypt"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_ENCRYPT
,
0
),
"PKCS7_encrypt"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_GET0_SIGNERS
,
0
),
"PKCS7_get0_signers"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_SET_CIPHER
,
0
),
"PKCS7_set_cipher"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_SET_CONTENT
,
0
),
"PKCS7_set_content"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_SET_DIGEST
,
0
),
"PKCS7_set_digest"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_SET_TYPE
,
0
),
"PKCS7_set_type"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_SIGN
,
0
),
"PKCS7_sign"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_SIGNATUREVERIFY
,
0
),
"PKCS7_signatureVerify"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_SIMPLE_SMIMECAP
,
0
),
"PKCS7_simple_smimecap"
},
{
ERR_
PACK
(
0
,
PKCS7_F_PKCS7_VERIFY
,
0
),
"PKCS7_verify"
},
{
ERR_
PACK
(
0
,
PKCS7_F_SMIME_READ_PKCS7
,
0
),
"SMIME_read_PKCS7"
},
{
ERR_
PACK
(
0
,
PKCS7_F_SMIME_TEXT
,
0
),
"SMIME_text"
},
{
ERR_
FUNC
(
PKCS7_F_B64_READ_PKCS7
),
"B64_READ_PKCS7"
},
{
ERR_
FUNC
(
PKCS7_F_B64_WRITE_PKCS7
),
"B64_WRITE_PKCS7"
},
{
ERR_
FUNC
(
PKCS7_F_FIND_DIGEST
),
"FIND_DIGEST"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP
),
"PKCS7_add_attrib_smimecap"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_ADD_CERTIFICATE
),
"PKCS7_add_certificate"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_ADD_CRL
),
"PKCS7_add_crl"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_ADD_RECIPIENT_INFO
),
"PKCS7_add_recipient_info"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_ADD_SIGNER
),
"PKCS7_add_signer"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_BIO_ADD_DIGEST
),
"PKCS7_BIO_ADD_DIGEST"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_CTRL
),
"PKCS7_ctrl"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_DATADECODE
),
"PKCS7_dataDecode"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_DATAINIT
),
"PKCS7_dataInit"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_DATASIGN
),
"PKCS7_DATASIGN"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_DATAVERIFY
),
"PKCS7_dataVerify"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_DECRYPT
),
"PKCS7_decrypt"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_ENCRYPT
),
"PKCS7_encrypt"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_GET0_SIGNERS
),
"PKCS7_get0_signers"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_SET_CIPHER
),
"PKCS7_set_cipher"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_SET_CONTENT
),
"PKCS7_set_content"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_SET_DIGEST
),
"PKCS7_set_digest"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_SET_TYPE
),
"PKCS7_set_type"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_SIGN
),
"PKCS7_sign"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_SIGNATUREVERIFY
),
"PKCS7_signatureVerify"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_SIMPLE_SMIMECAP
),
"PKCS7_simple_smimecap"
},
{
ERR_
FUNC
(
PKCS7_F_PKCS7_VERIFY
),
"PKCS7_verify"
},
{
ERR_
FUNC
(
PKCS7_F_SMIME_READ_PKCS7
),
"SMIME_read_PKCS7"
},
{
ERR_
FUNC
(
PKCS7_F_SMIME_TEXT
),
"SMIME_text"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
PKCS7_str_reasons
[]
=
{
{
PKCS7_R_CERTIFICATE_VERIFY_ERROR
,
"certificate verify error"
},
{
PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER
,
"cipher has no object identifier"
},
{
PKCS7_R_CIPHER_NOT_INITIALIZED
,
"cipher not initialized"
},
{
PKCS7_R_CONTENT_AND_DATA_PRESENT
,
"content and data present"
},
{
PKCS7_R_DECODE_ERROR
,
"decode error"
},
{
PKCS7_R_DECRYPTED_KEY_IS_WRONG_LENGTH
,
"decrypted key is wrong length"
},
{
PKCS7_R_DECRYPT_ERROR
,
"decrypt error"
},
{
PKCS7_R_DIGEST_FAILURE
,
"digest failure"
},
{
PKCS7_R_ERROR_ADDING_RECIPIENT
,
"error adding recipient"
},
{
PKCS7_R_ERROR_SETTING_CIPHER
,
"error setting cipher"
},
{
PKCS7_R_INVALID_MIME_TYPE
,
"invalid mime type"
},
{
PKCS7_R_INVALID_NULL_POINTER
,
"invalid null pointer"
},
{
PKCS7_R_MIME_NO_CONTENT_TYPE
,
"mime no content type"
},
{
PKCS7_R_MIME_PARSE_ERROR
,
"mime parse error"
},
{
PKCS7_R_MIME_SIG_PARSE_ERROR
,
"mime sig parse error"
},
{
PKCS7_R_MISSING_CERIPEND_INFO
,
"missing ceripend info"
},
{
PKCS7_R_NO_CONTENT
,
"no content"
},
{
PKCS7_R_NO_CONTENT_TYPE
,
"no content type"
},
{
PKCS7_R_NO_MULTIPART_BODY_FAILURE
,
"no multipart body failure"
},
{
PKCS7_R_NO_MULTIPART_BOUNDARY
,
"no multipart boundary"
},
{
PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE
,
"no recipient matches certificate"
},
{
PKCS7_R_NO_SIGNATURES_ON_DATA
,
"no signatures on data"
},
{
PKCS7_R_NO_SIGNERS
,
"no signers"
},
{
PKCS7_R_NO_SIG_CONTENT_TYPE
,
"no sig content type"
},
{
PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE
,
"operation not supported on this type"
},
{
PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR
,
"pkcs7 add signature error"
},
{
PKCS7_R_PKCS7_DATAFINAL_ERROR
,
"pkcs7 datafinal error"
},
{
PKCS7_R_PKCS7_DATASIGN
,
"pkcs7 datasign"
},
{
PKCS7_R_PKCS7_PARSE_ERROR
,
"pkcs7 parse error"
},
{
PKCS7_R_PKCS7_SIG_PARSE_ERROR
,
"pkcs7 sig parse error"
},
{
PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE
,
"private key does not match certificate"
},
{
PKCS7_R_SIGNATURE_FAILURE
,
"signature failure"
},
{
PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND
,
"signer certificate not found"
},
{
PKCS7_R_SIG_INVALID_MIME_TYPE
,
"sig invalid mime type"
},
{
PKCS7_R_SMIME_TEXT_ERROR
,
"smime text error"
},
{
PKCS7_R_UNABLE_TO_FIND_CERTIFICATE
,
"unable to find certificate"
},
{
PKCS7_R_UNABLE_TO_FIND_MEM_BIO
,
"unable to find mem bio"
},
{
PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST
,
"unable to find message digest"
},
{
PKCS7_R_UNKNOWN_DIGEST_TYPE
,
"unknown digest type"
},
{
PKCS7_R_UNKNOWN_OPERATION
,
"unknown operation"
},
{
PKCS7_R_UNSUPPORTED_CIPHER_TYPE
,
"unsupported cipher type"
},
{
PKCS7_R_UNSUPPORTED_CONTENT_TYPE
,
"unsupported content type"
},
{
PKCS7_R_WRONG_CONTENT_TYPE
,
"wrong content type"
},
{
PKCS7_R_WRONG_PKCS7_TYPE
,
"wrong pkcs7 type"
},
{
ERR_REASON
(
PKCS7_R_CERTIFICATE_VERIFY_ERROR
)
,
"certificate verify error"
},
{
ERR_REASON
(
PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER
)
,
"cipher has no object identifier"
},
{
ERR_REASON
(
PKCS7_R_CIPHER_NOT_INITIALIZED
)
,
"cipher not initialized"
},
{
ERR_REASON
(
PKCS7_R_CONTENT_AND_DATA_PRESENT
)
,
"content and data present"
},
{
ERR_REASON
(
PKCS7_R_DECODE_ERROR
)
,
"decode error"
},
{
ERR_REASON
(
PKCS7_R_DECRYPTED_KEY_IS_WRONG_LENGTH
)
,
"decrypted key is wrong length"
},
{
ERR_REASON
(
PKCS7_R_DECRYPT_ERROR
)
,
"decrypt error"
},
{
ERR_REASON
(
PKCS7_R_DIGEST_FAILURE
)
,
"digest failure"
},
{
ERR_REASON
(
PKCS7_R_ERROR_ADDING_RECIPIENT
)
,
"error adding recipient"
},
{
ERR_REASON
(
PKCS7_R_ERROR_SETTING_CIPHER
)
,
"error setting cipher"
},
{
ERR_REASON
(
PKCS7_R_INVALID_MIME_TYPE
)
,
"invalid mime type"
},
{
ERR_REASON
(
PKCS7_R_INVALID_NULL_POINTER
)
,
"invalid null pointer"
},
{
ERR_REASON
(
PKCS7_R_MIME_NO_CONTENT_TYPE
)
,
"mime no content type"
},
{
ERR_REASON
(
PKCS7_R_MIME_PARSE_ERROR
)
,
"mime parse error"
},
{
ERR_REASON
(
PKCS7_R_MIME_SIG_PARSE_ERROR
)
,
"mime sig parse error"
},
{
ERR_REASON
(
PKCS7_R_MISSING_CERIPEND_INFO
)
,
"missing ceripend info"
},
{
ERR_REASON
(
PKCS7_R_NO_CONTENT
)
,
"no content"
},
{
ERR_REASON
(
PKCS7_R_NO_CONTENT_TYPE
)
,
"no content type"
},
{
ERR_REASON
(
PKCS7_R_NO_MULTIPART_BODY_FAILURE
)
,
"no multipart body failure"
},
{
ERR_REASON
(
PKCS7_R_NO_MULTIPART_BOUNDARY
)
,
"no multipart boundary"
},
{
ERR_REASON
(
PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE
)
,
"no recipient matches certificate"
},
{
ERR_REASON
(
PKCS7_R_NO_SIGNATURES_ON_DATA
)
,
"no signatures on data"
},
{
ERR_REASON
(
PKCS7_R_NO_SIGNERS
)
,
"no signers"
},
{
ERR_REASON
(
PKCS7_R_NO_SIG_CONTENT_TYPE
)
,
"no sig content type"
},
{
ERR_REASON
(
PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE
)
,
"operation not supported on this type"
},
{
ERR_REASON
(
PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR
)
,
"pkcs7 add signature error"
},
{
ERR_REASON
(
PKCS7_R_PKCS7_DATAFINAL_ERROR
)
,
"pkcs7 datafinal error"
},
{
ERR_REASON
(
PKCS7_R_PKCS7_DATASIGN
)
,
"pkcs7 datasign"
},
{
ERR_REASON
(
PKCS7_R_PKCS7_PARSE_ERROR
)
,
"pkcs7 parse error"
},
{
ERR_REASON
(
PKCS7_R_PKCS7_SIG_PARSE_ERROR
)
,
"pkcs7 sig parse error"
},
{
ERR_REASON
(
PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE
)
,
"private key does not match certificate"
},
{
ERR_REASON
(
PKCS7_R_SIGNATURE_FAILURE
)
,
"signature failure"
},
{
ERR_REASON
(
PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND
)
,
"signer certificate not found"
},
{
ERR_REASON
(
PKCS7_R_SIG_INVALID_MIME_TYPE
)
,
"sig invalid mime type"
},
{
ERR_REASON
(
PKCS7_R_SMIME_TEXT_ERROR
)
,
"smime text error"
},
{
ERR_REASON
(
PKCS7_R_UNABLE_TO_FIND_CERTIFICATE
)
,
"unable to find certificate"
},
{
ERR_REASON
(
PKCS7_R_UNABLE_TO_FIND_MEM_BIO
)
,
"unable to find mem bio"
},
{
ERR_REASON
(
PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST
)
,
"unable to find message digest"
},
{
ERR_REASON
(
PKCS7_R_UNKNOWN_DIGEST_TYPE
)
,
"unknown digest type"
},
{
ERR_REASON
(
PKCS7_R_UNKNOWN_OPERATION
)
,
"unknown operation"
},
{
ERR_REASON
(
PKCS7_R_UNSUPPORTED_CIPHER_TYPE
)
,
"unsupported cipher type"
},
{
ERR_REASON
(
PKCS7_R_UNSUPPORTED_CONTENT_TYPE
)
,
"unsupported content type"
},
{
ERR_REASON
(
PKCS7_R_WRONG_CONTENT_TYPE
)
,
"wrong content type"
},
{
ERR_REASON
(
PKCS7_R_WRONG_PKCS7_TYPE
)
,
"wrong pkcs7 type"
},
{
0
,
NULL
}
};
...
...
@@ -155,8 +159,8 @@ void ERR_load_PKCS7_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_PKCS7
,
PKCS7_str_functs
);
ERR_load_strings
(
ERR_LIB_PKCS7
,
PKCS7_str_reasons
);
ERR_load_strings
(
0
,
PKCS7_str_functs
);
ERR_load_strings
(
0
,
PKCS7_str_reasons
);
#endif
}
...
...
crypto/rand/rand_err.c
浏览文件 @
29dc3508
/* crypto/rand/rand_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -64,16 +64,20 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_RAND,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_RAND,0,reason)
static
ERR_STRING_DATA
RAND_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
RAND_F_RAND_GET_RAND_METHOD
,
0
),
"RAND_get_rand_method"
},
{
ERR_
PACK
(
0
,
RAND_F_SSLEAY_RAND_BYTES
,
0
),
"SSLEAY_RAND_BYTES"
},
{
ERR_
FUNC
(
RAND_F_RAND_GET_RAND_METHOD
),
"RAND_get_rand_method"
},
{
ERR_
FUNC
(
RAND_F_SSLEAY_RAND_BYTES
),
"SSLEAY_RAND_BYTES"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
RAND_str_reasons
[]
=
{
{
RAND_R_PRNG_NOT_SEEDED
,
"PRNG not seeded"
},
{
ERR_REASON
(
RAND_R_PRNG_NOT_SEEDED
)
,
"PRNG not seeded"
},
{
0
,
NULL
}
};
...
...
@@ -87,8 +91,8 @@ void ERR_load_RAND_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_RAND
,
RAND_str_functs
);
ERR_load_strings
(
ERR_LIB_RAND
,
RAND_str_reasons
);
ERR_load_strings
(
0
,
RAND_str_functs
);
ERR_load_strings
(
0
,
RAND_str_reasons
);
#endif
}
...
...
crypto/rsa/rsa_err.c
浏览文件 @
29dc3508
/* crypto/rsa/rsa_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -64,70 +64,74 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_RSA,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_RSA,0,reason)
static
ERR_STRING_DATA
RSA_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
RSA_F_MEMORY_LOCK
,
0
),
"MEMORY_LOCK"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_CHECK_KEY
,
0
),
"RSA_check_key"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_EAY_PRIVATE_DECRYPT
,
0
),
"RSA_EAY_PRIVATE_DECRYPT"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_EAY_PRIVATE_ENCRYPT
,
0
),
"RSA_EAY_PRIVATE_ENCRYPT"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_EAY_PUBLIC_DECRYPT
,
0
),
"RSA_EAY_PUBLIC_DECRYPT"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_EAY_PUBLIC_ENCRYPT
,
0
),
"RSA_EAY_PUBLIC_ENCRYPT"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_GENERATE_KEY
,
0
),
"RSA_generate_key"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_NEW_METHOD
,
0
),
"RSA_new_method"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_NULL
,
0
),
"RSA_NULL"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_ADD_NONE
,
0
),
"RSA_padding_add_none"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_ADD_PKCS1_OAEP
,
0
),
"RSA_padding_add_PKCS1_OAEP"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1
,
0
),
"RSA_padding_add_PKCS1_type_1"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2
,
0
),
"RSA_padding_add_PKCS1_type_2"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_ADD_SSLV23
,
0
),
"RSA_padding_add_SSLv23"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_CHECK_NONE
,
0
),
"RSA_padding_check_none"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP
,
0
),
"RSA_padding_check_PKCS1_OAEP"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1
,
0
),
"RSA_padding_check_PKCS1_type_1"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2
,
0
),
"RSA_padding_check_PKCS1_type_2"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PADDING_CHECK_SSLV23
,
0
),
"RSA_padding_check_SSLv23"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PRINT
,
0
),
"RSA_print"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_PRINT_FP
,
0
),
"RSA_print_fp"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_SIGN
,
0
),
"RSA_sign"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_SIGN_ASN1_OCTET_STRING
,
0
),
"RSA_sign_ASN1_OCTET_STRING"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_VERIFY
,
0
),
"RSA_verify"
},
{
ERR_
PACK
(
0
,
RSA_F_RSA_VERIFY_ASN1_OCTET_STRING
,
0
),
"RSA_verify_ASN1_OCTET_STRING"
},
{
ERR_
FUNC
(
RSA_F_MEMORY_LOCK
),
"MEMORY_LOCK"
},
{
ERR_
FUNC
(
RSA_F_RSA_CHECK_KEY
),
"RSA_check_key"
},
{
ERR_
FUNC
(
RSA_F_RSA_EAY_PRIVATE_DECRYPT
),
"RSA_EAY_PRIVATE_DECRYPT"
},
{
ERR_
FUNC
(
RSA_F_RSA_EAY_PRIVATE_ENCRYPT
),
"RSA_EAY_PRIVATE_ENCRYPT"
},
{
ERR_
FUNC
(
RSA_F_RSA_EAY_PUBLIC_DECRYPT
),
"RSA_EAY_PUBLIC_DECRYPT"
},
{
ERR_
FUNC
(
RSA_F_RSA_EAY_PUBLIC_ENCRYPT
),
"RSA_EAY_PUBLIC_ENCRYPT"
},
{
ERR_
FUNC
(
RSA_F_RSA_GENERATE_KEY
),
"RSA_generate_key"
},
{
ERR_
FUNC
(
RSA_F_RSA_NEW_METHOD
),
"RSA_new_method"
},
{
ERR_
FUNC
(
RSA_F_RSA_NULL
),
"RSA_NULL"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_ADD_NONE
),
"RSA_padding_add_none"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_ADD_PKCS1_OAEP
),
"RSA_padding_add_PKCS1_OAEP"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1
),
"RSA_padding_add_PKCS1_type_1"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2
),
"RSA_padding_add_PKCS1_type_2"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_ADD_SSLV23
),
"RSA_padding_add_SSLv23"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_CHECK_NONE
),
"RSA_padding_check_none"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP
),
"RSA_padding_check_PKCS1_OAEP"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1
),
"RSA_padding_check_PKCS1_type_1"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2
),
"RSA_padding_check_PKCS1_type_2"
},
{
ERR_
FUNC
(
RSA_F_RSA_PADDING_CHECK_SSLV23
),
"RSA_padding_check_SSLv23"
},
{
ERR_
FUNC
(
RSA_F_RSA_PRINT
),
"RSA_print"
},
{
ERR_
FUNC
(
RSA_F_RSA_PRINT_FP
),
"RSA_print_fp"
},
{
ERR_
FUNC
(
RSA_F_RSA_SIGN
),
"RSA_sign"
},
{
ERR_
FUNC
(
RSA_F_RSA_SIGN_ASN1_OCTET_STRING
),
"RSA_sign_ASN1_OCTET_STRING"
},
{
ERR_
FUNC
(
RSA_F_RSA_VERIFY
),
"RSA_verify"
},
{
ERR_
FUNC
(
RSA_F_RSA_VERIFY_ASN1_OCTET_STRING
),
"RSA_verify_ASN1_OCTET_STRING"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
RSA_str_reasons
[]
=
{
{
RSA_R_ALGORITHM_MISMATCH
,
"algorithm mismatch"
},
{
RSA_R_BAD_E_VALUE
,
"bad e value"
},
{
RSA_R_BAD_FIXED_HEADER_DECRYPT
,
"bad fixed header decrypt"
},
{
RSA_R_BAD_PAD_BYTE_COUNT
,
"bad pad byte count"
},
{
RSA_R_BAD_SIGNATURE
,
"bad signature"
},
{
RSA_R_BLOCK_TYPE_IS_NOT_01
,
"block type is not 01"
},
{
RSA_R_BLOCK_TYPE_IS_NOT_02
,
"block type is not 02"
},
{
RSA_R_DATA_GREATER_THAN_MOD_LEN
,
"data greater than mod len"
},
{
RSA_R_DATA_TOO_LARGE
,
"data too large"
},
{
RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE
,
"data too large for key size"
},
{
RSA_R_DATA_TOO_LARGE_FOR_MODULUS
,
"data too large for modulus"
},
{
RSA_R_DATA_TOO_SMALL
,
"data too small"
},
{
RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE
,
"data too small for key size"
},
{
RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY
,
"digest too big for rsa key"
},
{
RSA_R_DMP1_NOT_CONGRUENT_TO_D
,
"dmp1 not congruent to d"
},
{
RSA_R_DMQ1_NOT_CONGRUENT_TO_D
,
"dmq1 not congruent to d"
},
{
RSA_R_D_E_NOT_CONGRUENT_TO_1
,
"d e not congruent to 1"
},
{
RSA_R_INVALID_MESSAGE_LENGTH
,
"invalid message length"
},
{
RSA_R_IQMP_NOT_INVERSE_OF_Q
,
"iqmp not inverse of q"
},
{
RSA_R_KEY_SIZE_TOO_SMALL
,
"key size too small"
},
{
RSA_R_NULL_BEFORE_BLOCK_MISSING
,
"null before block missing"
},
{
RSA_R_N_DOES_NOT_EQUAL_P_Q
,
"n does not equal p q"
},
{
RSA_R_OAEP_DECODING_ERROR
,
"oaep decoding error"
},
{
RSA_R_PADDING_CHECK_FAILED
,
"padding check failed"
},
{
RSA_R_P_NOT_PRIME
,
"p not prime"
},
{
RSA_R_Q_NOT_PRIME
,
"q not prime"
},
{
RSA_R_RSA_OPERATIONS_NOT_SUPPORTED
,
"rsa operations not supported"
},
{
RSA_R_SSLV3_ROLLBACK_ATTACK
,
"sslv3 rollback attack"
},
{
RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD
,
"the asn1 object identifier is not known for this md"
},
{
RSA_R_UNKNOWN_ALGORITHM_TYPE
,
"unknown algorithm type"
},
{
RSA_R_UNKNOWN_PADDING_TYPE
,
"unknown padding type"
},
{
RSA_R_WRONG_SIGNATURE_LENGTH
,
"wrong signature length"
},
{
ERR_REASON
(
RSA_R_ALGORITHM_MISMATCH
)
,
"algorithm mismatch"
},
{
ERR_REASON
(
RSA_R_BAD_E_VALUE
)
,
"bad e value"
},
{
ERR_REASON
(
RSA_R_BAD_FIXED_HEADER_DECRYPT
)
,
"bad fixed header decrypt"
},
{
ERR_REASON
(
RSA_R_BAD_PAD_BYTE_COUNT
)
,
"bad pad byte count"
},
{
ERR_REASON
(
RSA_R_BAD_SIGNATURE
)
,
"bad signature"
},
{
ERR_REASON
(
RSA_R_BLOCK_TYPE_IS_NOT_01
)
,
"block type is not 01"
},
{
ERR_REASON
(
RSA_R_BLOCK_TYPE_IS_NOT_02
)
,
"block type is not 02"
},
{
ERR_REASON
(
RSA_R_DATA_GREATER_THAN_MOD_LEN
)
,
"data greater than mod len"
},
{
ERR_REASON
(
RSA_R_DATA_TOO_LARGE
)
,
"data too large"
},
{
ERR_REASON
(
RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE
)
,
"data too large for key size"
},
{
ERR_REASON
(
RSA_R_DATA_TOO_LARGE_FOR_MODULUS
)
,
"data too large for modulus"
},
{
ERR_REASON
(
RSA_R_DATA_TOO_SMALL
)
,
"data too small"
},
{
ERR_REASON
(
RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE
)
,
"data too small for key size"
},
{
ERR_REASON
(
RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY
)
,
"digest too big for rsa key"
},
{
ERR_REASON
(
RSA_R_DMP1_NOT_CONGRUENT_TO_D
)
,
"dmp1 not congruent to d"
},
{
ERR_REASON
(
RSA_R_DMQ1_NOT_CONGRUENT_TO_D
)
,
"dmq1 not congruent to d"
},
{
ERR_REASON
(
RSA_R_D_E_NOT_CONGRUENT_TO_1
)
,
"d e not congruent to 1"
},
{
ERR_REASON
(
RSA_R_INVALID_MESSAGE_LENGTH
)
,
"invalid message length"
},
{
ERR_REASON
(
RSA_R_IQMP_NOT_INVERSE_OF_Q
)
,
"iqmp not inverse of q"
},
{
ERR_REASON
(
RSA_R_KEY_SIZE_TOO_SMALL
)
,
"key size too small"
},
{
ERR_REASON
(
RSA_R_NULL_BEFORE_BLOCK_MISSING
)
,
"null before block missing"
},
{
ERR_REASON
(
RSA_R_N_DOES_NOT_EQUAL_P_Q
)
,
"n does not equal p q"
},
{
ERR_REASON
(
RSA_R_OAEP_DECODING_ERROR
)
,
"oaep decoding error"
},
{
ERR_REASON
(
RSA_R_PADDING_CHECK_FAILED
)
,
"padding check failed"
},
{
ERR_REASON
(
RSA_R_P_NOT_PRIME
)
,
"p not prime"
},
{
ERR_REASON
(
RSA_R_Q_NOT_PRIME
)
,
"q not prime"
},
{
ERR_REASON
(
RSA_R_RSA_OPERATIONS_NOT_SUPPORTED
)
,
"rsa operations not supported"
},
{
ERR_REASON
(
RSA_R_SSLV3_ROLLBACK_ATTACK
)
,
"sslv3 rollback attack"
},
{
ERR_REASON
(
RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD
)
,
"the asn1 object identifier is not known for this md"
},
{
ERR_REASON
(
RSA_R_UNKNOWN_ALGORITHM_TYPE
)
,
"unknown algorithm type"
},
{
ERR_REASON
(
RSA_R_UNKNOWN_PADDING_TYPE
)
,
"unknown padding type"
},
{
ERR_REASON
(
RSA_R_WRONG_SIGNATURE_LENGTH
)
,
"wrong signature length"
},
{
0
,
NULL
}
};
...
...
@@ -141,8 +145,8 @@ void ERR_load_RSA_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_RSA
,
RSA_str_functs
);
ERR_load_strings
(
ERR_LIB_RSA
,
RSA_str_reasons
);
ERR_load_strings
(
0
,
RSA_str_functs
);
ERR_load_strings
(
0
,
RSA_str_reasons
);
#endif
}
...
...
crypto/store/str_err.c
浏览文件 @
29dc3508
/* crypto/store/str_err.c */
/* ====================================================================
* Copyright (c) 1999-200
3
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -64,127 +64,131 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_STORE,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_STORE,0,reason)
static
ERR_STRING_DATA
STORE_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
STORE_F_CTRL
,
0
),
"CTRL"
},
{
ERR_
PACK
(
0
,
STORE_F_MEM_DELETE
,
0
),
"MEM_DELETE"
},
{
ERR_
PACK
(
0
,
STORE_F_MEM_GENERATE
,
0
),
"MEM_GENERATE"
},
{
ERR_
PACK
(
0
,
STORE_F_MEM_LIST_NEXT
,
0
),
"MEM_LIST_NEXT"
},
{
ERR_
PACK
(
0
,
STORE_F_MEM_LIST_START
,
0
),
"MEM_LIST_START"
},
{
ERR_
PACK
(
0
,
STORE_F_MEM_STORE
,
0
),
"MEM_STORE"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ARBITRARY
,
0
),
"STORE_ARBITRARY"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_GET0_CSTR
,
0
),
"STORE_ATTR_INFO_get0_cstr"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_GET0_DN
,
0
),
"STORE_ATTR_INFO_get0_dn"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_GET0_NUMBER
,
0
),
"STORE_ATTR_INFO_get0_number"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_GET0_SHA1STR
,
0
),
"STORE_ATTR_INFO_get0_sha1str"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_MODIFY_CSTR
,
0
),
"STORE_ATTR_INFO_modify_cstr"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_MODIFY_DN
,
0
),
"STORE_ATTR_INFO_modify_dn"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER
,
0
),
"STORE_ATTR_INFO_modify_number"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR
,
0
),
"STORE_ATTR_INFO_modify_sha1str"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_SET_CSTR
,
0
),
"STORE_ATTR_INFO_set_cstr"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_SET_DN
,
0
),
"STORE_ATTR_INFO_set_dn"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_SET_NUMBER
,
0
),
"STORE_ATTR_INFO_set_number"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_ATTR_INFO_SET_SHA1STR
,
0
),
"STORE_ATTR_INFO_set_sha1str"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_CERTIFICATE
,
0
),
"STORE_CERTIFICATE"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_CRL
,
0
),
"STORE_CRL"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_CTRL
,
0
),
"STORE_ctrl"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_DELETE_ARBITRARY
,
0
),
"STORE_delete_arbitrary"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_DELETE_CERTIFICATE
,
0
),
"STORE_delete_certificate"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_DELETE_CRL
,
0
),
"STORE_delete_crl"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_DELETE_NUMBER
,
0
),
"STORE_delete_number"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_DELETE_PRIVATE_KEY
,
0
),
"STORE_delete_private_key"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_DELETE_PUBLIC_KEY
,
0
),
"STORE_delete_public_key"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_GENERATE_CRL
,
0
),
"STORE_generate_crl"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_GENERATE_KEY
,
0
),
"STORE_generate_key"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_GET_ARBITRARY
,
0
),
"STORE_get_arbitrary"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_GET_CERTIFICATE
,
0
),
"STORE_get_certificate"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_GET_CRL
,
0
),
"STORE_get_crl"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_GET_NUMBER
,
0
),
"STORE_get_number"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_GET_PRIVATE_KEY
,
0
),
"STORE_get_private_key"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_GET_PUBLIC_KEY
,
0
),
"STORE_get_public_key"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_CERTIFICATE_END
,
0
),
"STORE_list_certificate_end"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_CERTIFICATE_ENDP
,
0
),
"STORE_list_certificate_endp"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_CERTIFICATE_NEXT
,
0
),
"STORE_list_certificate_next"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_CERTIFICATE_START
,
0
),
"STORE_list_certificate_start"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_CRL_END
,
0
),
"STORE_list_crl_end"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_CRL_ENDP
,
0
),
"STORE_list_crl_endp"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_CRL_NEXT
,
0
),
"STORE_list_crl_next"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_CRL_START
,
0
),
"STORE_list_crl_start"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_PRIVATE_KEY_END
,
0
),
"STORE_list_private_key_end"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_PRIVATE_KEY_ENDP
,
0
),
"STORE_list_private_key_endp"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_PRIVATE_KEY_NEXT
,
0
),
"STORE_list_private_key_next"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_PRIVATE_KEY_START
,
0
),
"STORE_list_private_key_start"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_PUBLIC_KEY_END
,
0
),
"STORE_list_public_key_end"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_PUBLIC_KEY_ENDP
,
0
),
"STORE_list_public_key_endp"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_PUBLIC_KEY_NEXT
,
0
),
"STORE_list_public_key_next"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_LIST_PUBLIC_KEY_START
,
0
),
"STORE_list_public_key_start"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_MODIFY_ARBITRARY
,
0
),
"STORE_modify_arbitrary"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_MODIFY_CERTIFICATE
,
0
),
"STORE_modify_certificate"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_MODIFY_CRL
,
0
),
"STORE_modify_crl"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_MODIFY_NUMBER
,
0
),
"STORE_modify_number"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_MODIFY_PRIVATE_KEY
,
0
),
"STORE_modify_private_key"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_MODIFY_PUBLIC_KEY
,
0
),
"STORE_modify_public_key"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_NEW_ENGINE
,
0
),
"STORE_new_engine"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_NEW_METHOD
,
0
),
"STORE_new_method"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_NUMBER
,
0
),
"STORE_NUMBER"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_PARSE_ATTRS_END
,
0
),
"STORE_parse_attrs_end"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_PARSE_ATTRS_NEXT
,
0
),
"STORE_parse_attrs_next"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_PRIVATE_KEY
,
0
),
"STORE_PRIVATE_KEY"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_PUBLIC_KEY
,
0
),
"STORE_PUBLIC_KEY"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_REVOKE_CERTIFICATE
,
0
),
"STORE_revoke_certificate"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_REVOKE_PRIVATE_KEY
,
0
),
"STORE_revoke_private_key"
},
{
ERR_
PACK
(
0
,
STORE_F_STORE_REVOKE_PUBLIC_KEY
,
0
),
"STORE_revoke_public_key"
},
{
ERR_
FUNC
(
STORE_F_CTRL
),
"CTRL"
},
{
ERR_
FUNC
(
STORE_F_MEM_DELETE
),
"MEM_DELETE"
},
{
ERR_
FUNC
(
STORE_F_MEM_GENERATE
),
"MEM_GENERATE"
},
{
ERR_
FUNC
(
STORE_F_MEM_LIST_NEXT
),
"MEM_LIST_NEXT"
},
{
ERR_
FUNC
(
STORE_F_MEM_LIST_START
),
"MEM_LIST_START"
},
{
ERR_
FUNC
(
STORE_F_MEM_STORE
),
"MEM_STORE"
},
{
ERR_
FUNC
(
STORE_F_STORE_ARBITRARY
),
"STORE_ARBITRARY"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_GET0_CSTR
),
"STORE_ATTR_INFO_get0_cstr"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_GET0_DN
),
"STORE_ATTR_INFO_get0_dn"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_GET0_NUMBER
),
"STORE_ATTR_INFO_get0_number"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_GET0_SHA1STR
),
"STORE_ATTR_INFO_get0_sha1str"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_MODIFY_CSTR
),
"STORE_ATTR_INFO_modify_cstr"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_MODIFY_DN
),
"STORE_ATTR_INFO_modify_dn"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_MODIFY_NUMBER
),
"STORE_ATTR_INFO_modify_number"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_MODIFY_SHA1STR
),
"STORE_ATTR_INFO_modify_sha1str"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_SET_CSTR
),
"STORE_ATTR_INFO_set_cstr"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_SET_DN
),
"STORE_ATTR_INFO_set_dn"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_SET_NUMBER
),
"STORE_ATTR_INFO_set_number"
},
{
ERR_
FUNC
(
STORE_F_STORE_ATTR_INFO_SET_SHA1STR
),
"STORE_ATTR_INFO_set_sha1str"
},
{
ERR_
FUNC
(
STORE_F_STORE_CERTIFICATE
),
"STORE_CERTIFICATE"
},
{
ERR_
FUNC
(
STORE_F_STORE_CRL
),
"STORE_CRL"
},
{
ERR_
FUNC
(
STORE_F_STORE_CTRL
),
"STORE_ctrl"
},
{
ERR_
FUNC
(
STORE_F_STORE_DELETE_ARBITRARY
),
"STORE_delete_arbitrary"
},
{
ERR_
FUNC
(
STORE_F_STORE_DELETE_CERTIFICATE
),
"STORE_delete_certificate"
},
{
ERR_
FUNC
(
STORE_F_STORE_DELETE_CRL
),
"STORE_delete_crl"
},
{
ERR_
FUNC
(
STORE_F_STORE_DELETE_NUMBER
),
"STORE_delete_number"
},
{
ERR_
FUNC
(
STORE_F_STORE_DELETE_PRIVATE_KEY
),
"STORE_delete_private_key"
},
{
ERR_
FUNC
(
STORE_F_STORE_DELETE_PUBLIC_KEY
),
"STORE_delete_public_key"
},
{
ERR_
FUNC
(
STORE_F_STORE_GENERATE_CRL
),
"STORE_generate_crl"
},
{
ERR_
FUNC
(
STORE_F_STORE_GENERATE_KEY
),
"STORE_generate_key"
},
{
ERR_
FUNC
(
STORE_F_STORE_GET_ARBITRARY
),
"STORE_get_arbitrary"
},
{
ERR_
FUNC
(
STORE_F_STORE_GET_CERTIFICATE
),
"STORE_get_certificate"
},
{
ERR_
FUNC
(
STORE_F_STORE_GET_CRL
),
"STORE_get_crl"
},
{
ERR_
FUNC
(
STORE_F_STORE_GET_NUMBER
),
"STORE_get_number"
},
{
ERR_
FUNC
(
STORE_F_STORE_GET_PRIVATE_KEY
),
"STORE_get_private_key"
},
{
ERR_
FUNC
(
STORE_F_STORE_GET_PUBLIC_KEY
),
"STORE_get_public_key"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_CERTIFICATE_END
),
"STORE_list_certificate_end"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_CERTIFICATE_ENDP
),
"STORE_list_certificate_endp"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_CERTIFICATE_NEXT
),
"STORE_list_certificate_next"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_CERTIFICATE_START
),
"STORE_list_certificate_start"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_CRL_END
),
"STORE_list_crl_end"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_CRL_ENDP
),
"STORE_list_crl_endp"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_CRL_NEXT
),
"STORE_list_crl_next"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_CRL_START
),
"STORE_list_crl_start"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_PRIVATE_KEY_END
),
"STORE_list_private_key_end"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_PRIVATE_KEY_ENDP
),
"STORE_list_private_key_endp"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_PRIVATE_KEY_NEXT
),
"STORE_list_private_key_next"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_PRIVATE_KEY_START
),
"STORE_list_private_key_start"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_PUBLIC_KEY_END
),
"STORE_list_public_key_end"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_PUBLIC_KEY_ENDP
),
"STORE_list_public_key_endp"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_PUBLIC_KEY_NEXT
),
"STORE_list_public_key_next"
},
{
ERR_
FUNC
(
STORE_F_STORE_LIST_PUBLIC_KEY_START
),
"STORE_list_public_key_start"
},
{
ERR_
FUNC
(
STORE_F_STORE_MODIFY_ARBITRARY
),
"STORE_modify_arbitrary"
},
{
ERR_
FUNC
(
STORE_F_STORE_MODIFY_CERTIFICATE
),
"STORE_modify_certificate"
},
{
ERR_
FUNC
(
STORE_F_STORE_MODIFY_CRL
),
"STORE_modify_crl"
},
{
ERR_
FUNC
(
STORE_F_STORE_MODIFY_NUMBER
),
"STORE_modify_number"
},
{
ERR_
FUNC
(
STORE_F_STORE_MODIFY_PRIVATE_KEY
),
"STORE_modify_private_key"
},
{
ERR_
FUNC
(
STORE_F_STORE_MODIFY_PUBLIC_KEY
),
"STORE_modify_public_key"
},
{
ERR_
FUNC
(
STORE_F_STORE_NEW_ENGINE
),
"STORE_new_engine"
},
{
ERR_
FUNC
(
STORE_F_STORE_NEW_METHOD
),
"STORE_new_method"
},
{
ERR_
FUNC
(
STORE_F_STORE_NUMBER
),
"STORE_NUMBER"
},
{
ERR_
FUNC
(
STORE_F_STORE_PARSE_ATTRS_END
),
"STORE_parse_attrs_end"
},
{
ERR_
FUNC
(
STORE_F_STORE_PARSE_ATTRS_NEXT
),
"STORE_parse_attrs_next"
},
{
ERR_
FUNC
(
STORE_F_STORE_PRIVATE_KEY
),
"STORE_PRIVATE_KEY"
},
{
ERR_
FUNC
(
STORE_F_STORE_PUBLIC_KEY
),
"STORE_PUBLIC_KEY"
},
{
ERR_
FUNC
(
STORE_F_STORE_REVOKE_CERTIFICATE
),
"STORE_revoke_certificate"
},
{
ERR_
FUNC
(
STORE_F_STORE_REVOKE_PRIVATE_KEY
),
"STORE_revoke_private_key"
},
{
ERR_
FUNC
(
STORE_F_STORE_REVOKE_PUBLIC_KEY
),
"STORE_revoke_public_key"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
STORE_str_reasons
[]
=
{
{
STORE_R_ALREADY_HAS_A_VALUE
,
"already has a value"
},
{
STORE_R_FAILED_DELETING_ARBITRARY
,
"failed deleting arbitrary"
},
{
STORE_R_FAILED_DELETING_CERTIFICATE
,
"failed deleting certificate"
},
{
STORE_R_FAILED_DELETING_KEY
,
"failed deleting key"
},
{
STORE_R_FAILED_DELETING_NUMBER
,
"failed deleting number"
},
{
STORE_R_FAILED_GENERATING_CRL
,
"failed generating crl"
},
{
STORE_R_FAILED_GENERATING_KEY
,
"failed generating key"
},
{
STORE_R_FAILED_GETTING_ARBITRARY
,
"failed getting arbitrary"
},
{
STORE_R_FAILED_GETTING_CERTIFICATE
,
"failed getting certificate"
},
{
STORE_R_FAILED_GETTING_KEY
,
"failed getting key"
},
{
STORE_R_FAILED_GETTING_NUMBER
,
"failed getting number"
},
{
STORE_R_FAILED_LISTING_CERTIFICATES
,
"failed listing certificates"
},
{
STORE_R_FAILED_LISTING_KEYS
,
"failed listing keys"
},
{
STORE_R_FAILED_MODIFYING_ARBITRARY
,
"failed modifying arbitrary"
},
{
STORE_R_FAILED_MODIFYING_CERTIFICATE
,
"failed modifying certificate"
},
{
STORE_R_FAILED_MODIFYING_CRL
,
"failed modifying crl"
},
{
STORE_R_FAILED_MODIFYING_NUMBER
,
"failed modifying number"
},
{
STORE_R_FAILED_MODIFYING_PRIVATE_KEY
,
"failed modifying private key"
},
{
STORE_R_FAILED_MODIFYING_PUBLIC_KEY
,
"failed modifying public key"
},
{
STORE_R_FAILED_REVOKING_CERTIFICATE
,
"failed revoking certificate"
},
{
STORE_R_FAILED_REVOKING_KEY
,
"failed revoking key"
},
{
STORE_R_FAILED_STORING_ARBITRARY
,
"failed storing arbitrary"
},
{
STORE_R_FAILED_STORING_CERTIFICATE
,
"failed storing certificate"
},
{
STORE_R_FAILED_STORING_KEY
,
"failed storing key"
},
{
STORE_R_FAILED_STORING_NUMBER
,
"failed storing number"
},
{
STORE_R_NOT_IMPLEMENTED
,
"not implemented"
},
{
STORE_R_NO_CONTROL_FUNCTION
,
"no control function"
},
{
STORE_R_NO_DELETE_ARBITRARY_FUNCTION
,
"no delete arbitrary function"
},
{
STORE_R_NO_DELETE_NUMBER_FUNCTION
,
"no delete number function"
},
{
STORE_R_NO_DELETE_OBJECT_FUNCTION
,
"no delete object function"
},
{
STORE_R_NO_GENERATE_CRL_FUNCTION
,
"no generate crl function"
},
{
STORE_R_NO_GENERATE_OBJECT_FUNCTION
,
"no generate object function"
},
{
STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION
,
"no get object arbitrary function"
},
{
STORE_R_NO_GET_OBJECT_FUNCTION
,
"no get object function"
},
{
STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION
,
"no get object number function"
},
{
STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION
,
"no list object endp function"
},
{
STORE_R_NO_LIST_OBJECT_END_FUNCTION
,
"no list object end function"
},
{
STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION
,
"no list object next function"
},
{
STORE_R_NO_LIST_OBJECT_START_FUNCTION
,
"no list object start function"
},
{
STORE_R_NO_MODIFY_OBJECT_FUNCTION
,
"no modify object function"
},
{
STORE_R_NO_REVOKE_OBJECT_FUNCTION
,
"no revoke object function"
},
{
STORE_R_NO_STORE
,
"no store"
},
{
STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION
,
"no store object arbitrary function"
},
{
STORE_R_NO_STORE_OBJECT_FUNCTION
,
"no store object function"
},
{
STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION
,
"no store object number function"
},
{
STORE_R_NO_VALUE
,
"no value"
},
{
ERR_REASON
(
STORE_R_ALREADY_HAS_A_VALUE
)
,
"already has a value"
},
{
ERR_REASON
(
STORE_R_FAILED_DELETING_ARBITRARY
)
,
"failed deleting arbitrary"
},
{
ERR_REASON
(
STORE_R_FAILED_DELETING_CERTIFICATE
)
,
"failed deleting certificate"
},
{
ERR_REASON
(
STORE_R_FAILED_DELETING_KEY
)
,
"failed deleting key"
},
{
ERR_REASON
(
STORE_R_FAILED_DELETING_NUMBER
)
,
"failed deleting number"
},
{
ERR_REASON
(
STORE_R_FAILED_GENERATING_CRL
)
,
"failed generating crl"
},
{
ERR_REASON
(
STORE_R_FAILED_GENERATING_KEY
)
,
"failed generating key"
},
{
ERR_REASON
(
STORE_R_FAILED_GETTING_ARBITRARY
)
,
"failed getting arbitrary"
},
{
ERR_REASON
(
STORE_R_FAILED_GETTING_CERTIFICATE
)
,
"failed getting certificate"
},
{
ERR_REASON
(
STORE_R_FAILED_GETTING_KEY
)
,
"failed getting key"
},
{
ERR_REASON
(
STORE_R_FAILED_GETTING_NUMBER
)
,
"failed getting number"
},
{
ERR_REASON
(
STORE_R_FAILED_LISTING_CERTIFICATES
)
,
"failed listing certificates"
},
{
ERR_REASON
(
STORE_R_FAILED_LISTING_KEYS
)
,
"failed listing keys"
},
{
ERR_REASON
(
STORE_R_FAILED_MODIFYING_ARBITRARY
)
,
"failed modifying arbitrary"
},
{
ERR_REASON
(
STORE_R_FAILED_MODIFYING_CERTIFICATE
)
,
"failed modifying certificate"
},
{
ERR_REASON
(
STORE_R_FAILED_MODIFYING_CRL
)
,
"failed modifying crl"
},
{
ERR_REASON
(
STORE_R_FAILED_MODIFYING_NUMBER
)
,
"failed modifying number"
},
{
ERR_REASON
(
STORE_R_FAILED_MODIFYING_PRIVATE_KEY
)
,
"failed modifying private key"
},
{
ERR_REASON
(
STORE_R_FAILED_MODIFYING_PUBLIC_KEY
)
,
"failed modifying public key"
},
{
ERR_REASON
(
STORE_R_FAILED_REVOKING_CERTIFICATE
)
,
"failed revoking certificate"
},
{
ERR_REASON
(
STORE_R_FAILED_REVOKING_KEY
)
,
"failed revoking key"
},
{
ERR_REASON
(
STORE_R_FAILED_STORING_ARBITRARY
)
,
"failed storing arbitrary"
},
{
ERR_REASON
(
STORE_R_FAILED_STORING_CERTIFICATE
)
,
"failed storing certificate"
},
{
ERR_REASON
(
STORE_R_FAILED_STORING_KEY
)
,
"failed storing key"
},
{
ERR_REASON
(
STORE_R_FAILED_STORING_NUMBER
)
,
"failed storing number"
},
{
ERR_REASON
(
STORE_R_NOT_IMPLEMENTED
)
,
"not implemented"
},
{
ERR_REASON
(
STORE_R_NO_CONTROL_FUNCTION
)
,
"no control function"
},
{
ERR_REASON
(
STORE_R_NO_DELETE_ARBITRARY_FUNCTION
)
,
"no delete arbitrary function"
},
{
ERR_REASON
(
STORE_R_NO_DELETE_NUMBER_FUNCTION
)
,
"no delete number function"
},
{
ERR_REASON
(
STORE_R_NO_DELETE_OBJECT_FUNCTION
)
,
"no delete object function"
},
{
ERR_REASON
(
STORE_R_NO_GENERATE_CRL_FUNCTION
)
,
"no generate crl function"
},
{
ERR_REASON
(
STORE_R_NO_GENERATE_OBJECT_FUNCTION
)
,
"no generate object function"
},
{
ERR_REASON
(
STORE_R_NO_GET_OBJECT_ARBITRARY_FUNCTION
)
,
"no get object arbitrary function"
},
{
ERR_REASON
(
STORE_R_NO_GET_OBJECT_FUNCTION
)
,
"no get object function"
},
{
ERR_REASON
(
STORE_R_NO_GET_OBJECT_NUMBER_FUNCTION
)
,
"no get object number function"
},
{
ERR_REASON
(
STORE_R_NO_LIST_OBJECT_ENDP_FUNCTION
)
,
"no list object endp function"
},
{
ERR_REASON
(
STORE_R_NO_LIST_OBJECT_END_FUNCTION
)
,
"no list object end function"
},
{
ERR_REASON
(
STORE_R_NO_LIST_OBJECT_NEXT_FUNCTION
)
,
"no list object next function"
},
{
ERR_REASON
(
STORE_R_NO_LIST_OBJECT_START_FUNCTION
)
,
"no list object start function"
},
{
ERR_REASON
(
STORE_R_NO_MODIFY_OBJECT_FUNCTION
)
,
"no modify object function"
},
{
ERR_REASON
(
STORE_R_NO_REVOKE_OBJECT_FUNCTION
)
,
"no revoke object function"
},
{
ERR_REASON
(
STORE_R_NO_STORE
)
,
"no store"
},
{
ERR_REASON
(
STORE_R_NO_STORE_OBJECT_ARBITRARY_FUNCTION
)
,
"no store object arbitrary function"
},
{
ERR_REASON
(
STORE_R_NO_STORE_OBJECT_FUNCTION
)
,
"no store object function"
},
{
ERR_REASON
(
STORE_R_NO_STORE_OBJECT_NUMBER_FUNCTION
)
,
"no store object number function"
},
{
ERR_REASON
(
STORE_R_NO_VALUE
)
,
"no value"
},
{
0
,
NULL
}
};
...
...
@@ -198,8 +202,8 @@ void ERR_load_STORE_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_STORE
,
STORE_str_functs
);
ERR_load_strings
(
ERR_LIB_STORE
,
STORE_str_reasons
);
ERR_load_strings
(
0
,
STORE_str_functs
);
ERR_load_strings
(
0
,
STORE_str_reasons
);
#endif
}
...
...
crypto/ui/ui_err.c
浏览文件 @
29dc3508
/* crypto/ui/ui_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
* Copyright (c) 1999
-2005
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
...
...
@@ -64,32 +64,36 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_UI,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_UI,0,reason)
static
ERR_STRING_DATA
UI_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
UI_F_GENERAL_ALLOCATE_BOOLEAN
,
0
),
"GENERAL_ALLOCATE_BOOLEAN"
},
{
ERR_
PACK
(
0
,
UI_F_GENERAL_ALLOCATE_PROMPT
,
0
),
"GENERAL_ALLOCATE_PROMPT"
},
{
ERR_
PACK
(
0
,
UI_F_GENERAL_ALLOCATE_STRING
,
0
),
"GENERAL_ALLOCATE_STRING"
},
{
ERR_
PACK
(
0
,
UI_F_UI_CTRL
,
0
),
"UI_ctrl"
},
{
ERR_
PACK
(
0
,
UI_F_UI_DUP_ERROR_STRING
,
0
),
"UI_dup_error_string"
},
{
ERR_
PACK
(
0
,
UI_F_UI_DUP_INFO_STRING
,
0
),
"UI_dup_info_string"
},
{
ERR_
PACK
(
0
,
UI_F_UI_DUP_INPUT_BOOLEAN
,
0
),
"UI_dup_input_boolean"
},
{
ERR_
PACK
(
0
,
UI_F_UI_DUP_INPUT_STRING
,
0
),
"UI_dup_input_string"
},
{
ERR_
PACK
(
0
,
UI_F_UI_DUP_VERIFY_STRING
,
0
),
"UI_dup_verify_string"
},
{
ERR_
PACK
(
0
,
UI_F_UI_GET0_RESULT
,
0
),
"UI_get0_result"
},
{
ERR_
PACK
(
0
,
UI_F_UI_NEW_METHOD
,
0
),
"UI_new_method"
},
{
ERR_
PACK
(
0
,
UI_F_UI_SET_RESULT
,
0
),
"UI_set_result"
},
{
ERR_
FUNC
(
UI_F_GENERAL_ALLOCATE_BOOLEAN
),
"GENERAL_ALLOCATE_BOOLEAN"
},
{
ERR_
FUNC
(
UI_F_GENERAL_ALLOCATE_PROMPT
),
"GENERAL_ALLOCATE_PROMPT"
},
{
ERR_
FUNC
(
UI_F_GENERAL_ALLOCATE_STRING
),
"GENERAL_ALLOCATE_STRING"
},
{
ERR_
FUNC
(
UI_F_UI_CTRL
),
"UI_ctrl"
},
{
ERR_
FUNC
(
UI_F_UI_DUP_ERROR_STRING
),
"UI_dup_error_string"
},
{
ERR_
FUNC
(
UI_F_UI_DUP_INFO_STRING
),
"UI_dup_info_string"
},
{
ERR_
FUNC
(
UI_F_UI_DUP_INPUT_BOOLEAN
),
"UI_dup_input_boolean"
},
{
ERR_
FUNC
(
UI_F_UI_DUP_INPUT_STRING
),
"UI_dup_input_string"
},
{
ERR_
FUNC
(
UI_F_UI_DUP_VERIFY_STRING
),
"UI_dup_verify_string"
},
{
ERR_
FUNC
(
UI_F_UI_GET0_RESULT
),
"UI_get0_result"
},
{
ERR_
FUNC
(
UI_F_UI_NEW_METHOD
),
"UI_new_method"
},
{
ERR_
FUNC
(
UI_F_UI_SET_RESULT
),
"UI_set_result"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
UI_str_reasons
[]
=
{
{
UI_R_COMMON_OK_AND_CANCEL_CHARACTERS
,
"common ok and cancel characters"
},
{
UI_R_INDEX_TOO_LARGE
,
"index too large"
},
{
UI_R_INDEX_TOO_SMALL
,
"index too small"
},
{
UI_R_NO_RESULT_BUFFER
,
"no result buffer"
},
{
UI_R_RESULT_TOO_LARGE
,
"result too large"
},
{
UI_R_RESULT_TOO_SMALL
,
"result too small"
},
{
UI_R_UNKNOWN_CONTROL_COMMAND
,
"unknown control command"
},
{
ERR_REASON
(
UI_R_COMMON_OK_AND_CANCEL_CHARACTERS
)
,
"common ok and cancel characters"
},
{
ERR_REASON
(
UI_R_INDEX_TOO_LARGE
)
,
"index too large"
},
{
ERR_REASON
(
UI_R_INDEX_TOO_SMALL
)
,
"index too small"
},
{
ERR_REASON
(
UI_R_NO_RESULT_BUFFER
)
,
"no result buffer"
},
{
ERR_REASON
(
UI_R_RESULT_TOO_LARGE
)
,
"result too large"
},
{
ERR_REASON
(
UI_R_RESULT_TOO_SMALL
)
,
"result too small"
},
{
ERR_REASON
(
UI_R_UNKNOWN_CONTROL_COMMAND
)
,
"unknown control command"
},
{
0
,
NULL
}
};
...
...
@@ -103,8 +107,8 @@ void ERR_load_UI_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_UI
,
UI_str_functs
);
ERR_load_strings
(
ERR_LIB_UI
,
UI_str_reasons
);
ERR_load_strings
(
0
,
UI_str_functs
);
ERR_load_strings
(
0
,
UI_str_reasons
);
#endif
}
...
...
crypto/x509/x509_err.c
浏览文件 @
29dc3508
/* crypto/x509/x509_err.c */
/* ====================================================================
* Copyright (c) 1999-200
3
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
5
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
...
...
@@ -64,78 +64,82 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_X509,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_X509,0,reason)
static
ERR_STRING_DATA
X509_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
X509_F_ADD_CERT_DIR
,
0
),
"ADD_CERT_DIR"
},
{
ERR_
PACK
(
0
,
X509_F_BY_FILE_CTRL
,
0
),
"BY_FILE_CTRL"
},
{
ERR_
PACK
(
0
,
X509_F_DIR_CTRL
,
0
),
"DIR_CTRL"
},
{
ERR_
PACK
(
0
,
X509_F_GET_CERT_BY_SUBJECT
,
0
),
"GET_CERT_BY_SUBJECT"
},
{
ERR_
PACK
(
0
,
X509_F_NETSCAPE_SPKI_B64_DECODE
,
0
),
"NETSCAPE_SPKI_b64_decode"
},
{
ERR_
PACK
(
0
,
X509_F_NETSCAPE_SPKI_B64_ENCODE
,
0
),
"NETSCAPE_SPKI_b64_encode"
},
{
ERR_
PACK
(
0
,
X509_F_X509V3_ADD_EXT
,
0
),
"X509v3_add_ext"
},
{
ERR_
PACK
(
0
,
X509_F_X509_ADD_ATTR
,
0
),
"X509_ADD_ATTR"
},
{
ERR_
PACK
(
0
,
X509_F_X509_ATTRIBUTE_CREATE_BY_NID
,
0
),
"X509_ATTRIBUTE_create_by_NID"
},
{
ERR_
PACK
(
0
,
X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ
,
0
),
"X509_ATTRIBUTE_create_by_OBJ"
},
{
ERR_
PACK
(
0
,
X509_F_X509_ATTRIBUTE_CREATE_BY_TXT
,
0
),
"X509_ATTRIBUTE_create_by_txt"
},
{
ERR_
PACK
(
0
,
X509_F_X509_ATTRIBUTE_GET0_DATA
,
0
),
"X509_ATTRIBUTE_get0_data"
},
{
ERR_
PACK
(
0
,
X509_F_X509_ATTRIBUTE_SET1_DATA
,
0
),
"X509_ATTRIBUTE_set1_data"
},
{
ERR_
PACK
(
0
,
X509_F_X509_CHECK_PRIVATE_KEY
,
0
),
"X509_check_private_key"
},
{
ERR_
PACK
(
0
,
X509_F_X509_EXTENSION_CREATE_BY_NID
,
0
),
"X509_EXTENSION_create_by_NID"
},
{
ERR_
PACK
(
0
,
X509_F_X509_EXTENSION_CREATE_BY_OBJ
,
0
),
"X509_EXTENSION_create_by_OBJ"
},
{
ERR_
PACK
(
0
,
X509_F_X509_GET_PUBKEY_PARAMETERS
,
0
),
"X509_get_pubkey_parameters"
},
{
ERR_
PACK
(
0
,
X509_F_X509_LOAD_CERT_CRL_FILE
,
0
),
"X509_load_cert_crl_file"
},
{
ERR_
PACK
(
0
,
X509_F_X509_LOAD_CERT_FILE
,
0
),
"X509_load_cert_file"
},
{
ERR_
PACK
(
0
,
X509_F_X509_LOAD_CRL_FILE
,
0
),
"X509_load_crl_file"
},
{
ERR_
PACK
(
0
,
X509_F_X509_NAME_ADD_ENTRY
,
0
),
"X509_NAME_add_entry"
},
{
ERR_
PACK
(
0
,
X509_F_X509_NAME_ENTRY_CREATE_BY_NID
,
0
),
"X509_NAME_ENTRY_create_by_NID"
},
{
ERR_
PACK
(
0
,
X509_F_X509_NAME_ENTRY_CREATE_BY_TXT
,
0
),
"X509_NAME_ENTRY_create_by_txt"
},
{
ERR_
PACK
(
0
,
X509_F_X509_NAME_ENTRY_SET_OBJECT
,
0
),
"X509_NAME_ENTRY_set_object"
},
{
ERR_
PACK
(
0
,
X509_F_X509_NAME_ONELINE
,
0
),
"X509_NAME_oneline"
},
{
ERR_
PACK
(
0
,
X509_F_X509_NAME_PRINT
,
0
),
"X509_NAME_print"
},
{
ERR_
PACK
(
0
,
X509_F_X509_PRINT_FP
,
0
),
"X509_print_fp"
},
{
ERR_
PACK
(
0
,
X509_F_X509_PUBKEY_GET
,
0
),
"X509_PUBKEY_get"
},
{
ERR_
PACK
(
0
,
X509_F_X509_PUBKEY_SET
,
0
),
"X509_PUBKEY_set"
},
{
ERR_
PACK
(
0
,
X509_F_X509_REQ_CHECK_PRIVATE_KEY
,
0
),
"X509_REQ_check_private_key"
},
{
ERR_
PACK
(
0
,
X509_F_X509_REQ_PRINT
,
0
),
"X509_REQ_print"
},
{
ERR_
PACK
(
0
,
X509_F_X509_REQ_PRINT_FP
,
0
),
"X509_REQ_print_fp"
},
{
ERR_
PACK
(
0
,
X509_F_X509_REQ_TO_X509
,
0
),
"X509_REQ_to_X509"
},
{
ERR_
PACK
(
0
,
X509_F_X509_STORE_ADD_CERT
,
0
),
"X509_STORE_add_cert"
},
{
ERR_
PACK
(
0
,
X509_F_X509_STORE_ADD_CRL
,
0
),
"X509_STORE_add_crl"
},
{
ERR_
PACK
(
0
,
X509_F_X509_STORE_CTX_INIT
,
0
),
"X509_STORE_CTX_init"
},
{
ERR_
PACK
(
0
,
X509_F_X509_STORE_CTX_NEW
,
0
),
"X509_STORE_CTX_new"
},
{
ERR_
PACK
(
0
,
X509_F_X509_STORE_CTX_PURPOSE_INHERIT
,
0
),
"X509_STORE_CTX_purpose_inherit"
},
{
ERR_
PACK
(
0
,
X509_F_X509_TO_X509_REQ
,
0
),
"X509_to_X509_REQ"
},
{
ERR_
PACK
(
0
,
X509_F_X509_TRUST_ADD
,
0
),
"X509_TRUST_add"
},
{
ERR_
PACK
(
0
,
X509_F_X509_TRUST_SET
,
0
),
"X509_TRUST_set"
},
{
ERR_
PACK
(
0
,
X509_F_X509_VERIFY_CERT
,
0
),
"X509_verify_cert"
},
{
ERR_
FUNC
(
X509_F_ADD_CERT_DIR
),
"ADD_CERT_DIR"
},
{
ERR_
FUNC
(
X509_F_BY_FILE_CTRL
),
"BY_FILE_CTRL"
},
{
ERR_
FUNC
(
X509_F_DIR_CTRL
),
"DIR_CTRL"
},
{
ERR_
FUNC
(
X509_F_GET_CERT_BY_SUBJECT
),
"GET_CERT_BY_SUBJECT"
},
{
ERR_
FUNC
(
X509_F_NETSCAPE_SPKI_B64_DECODE
),
"NETSCAPE_SPKI_b64_decode"
},
{
ERR_
FUNC
(
X509_F_NETSCAPE_SPKI_B64_ENCODE
),
"NETSCAPE_SPKI_b64_encode"
},
{
ERR_
FUNC
(
X509_F_X509V3_ADD_EXT
),
"X509v3_add_ext"
},
{
ERR_
FUNC
(
X509_F_X509_ADD_ATTR
),
"X509_ADD_ATTR"
},
{
ERR_
FUNC
(
X509_F_X509_ATTRIBUTE_CREATE_BY_NID
),
"X509_ATTRIBUTE_create_by_NID"
},
{
ERR_
FUNC
(
X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ
),
"X509_ATTRIBUTE_create_by_OBJ"
},
{
ERR_
FUNC
(
X509_F_X509_ATTRIBUTE_CREATE_BY_TXT
),
"X509_ATTRIBUTE_create_by_txt"
},
{
ERR_
FUNC
(
X509_F_X509_ATTRIBUTE_GET0_DATA
),
"X509_ATTRIBUTE_get0_data"
},
{
ERR_
FUNC
(
X509_F_X509_ATTRIBUTE_SET1_DATA
),
"X509_ATTRIBUTE_set1_data"
},
{
ERR_
FUNC
(
X509_F_X509_CHECK_PRIVATE_KEY
),
"X509_check_private_key"
},
{
ERR_
FUNC
(
X509_F_X509_EXTENSION_CREATE_BY_NID
),
"X509_EXTENSION_create_by_NID"
},
{
ERR_
FUNC
(
X509_F_X509_EXTENSION_CREATE_BY_OBJ
),
"X509_EXTENSION_create_by_OBJ"
},
{
ERR_
FUNC
(
X509_F_X509_GET_PUBKEY_PARAMETERS
),
"X509_get_pubkey_parameters"
},
{
ERR_
FUNC
(
X509_F_X509_LOAD_CERT_CRL_FILE
),
"X509_load_cert_crl_file"
},
{
ERR_
FUNC
(
X509_F_X509_LOAD_CERT_FILE
),
"X509_load_cert_file"
},
{
ERR_
FUNC
(
X509_F_X509_LOAD_CRL_FILE
),
"X509_load_crl_file"
},
{
ERR_
FUNC
(
X509_F_X509_NAME_ADD_ENTRY
),
"X509_NAME_add_entry"
},
{
ERR_
FUNC
(
X509_F_X509_NAME_ENTRY_CREATE_BY_NID
),
"X509_NAME_ENTRY_create_by_NID"
},
{
ERR_
FUNC
(
X509_F_X509_NAME_ENTRY_CREATE_BY_TXT
),
"X509_NAME_ENTRY_create_by_txt"
},
{
ERR_
FUNC
(
X509_F_X509_NAME_ENTRY_SET_OBJECT
),
"X509_NAME_ENTRY_set_object"
},
{
ERR_
FUNC
(
X509_F_X509_NAME_ONELINE
),
"X509_NAME_oneline"
},
{
ERR_
FUNC
(
X509_F_X509_NAME_PRINT
),
"X509_NAME_print"
},
{
ERR_
FUNC
(
X509_F_X509_PRINT_FP
),
"X509_print_fp"
},
{
ERR_
FUNC
(
X509_F_X509_PUBKEY_GET
),
"X509_PUBKEY_get"
},
{
ERR_
FUNC
(
X509_F_X509_PUBKEY_SET
),
"X509_PUBKEY_set"
},
{
ERR_
FUNC
(
X509_F_X509_REQ_CHECK_PRIVATE_KEY
),
"X509_REQ_check_private_key"
},
{
ERR_
FUNC
(
X509_F_X509_REQ_PRINT
),
"X509_REQ_print"
},
{
ERR_
FUNC
(
X509_F_X509_REQ_PRINT_FP
),
"X509_REQ_print_fp"
},
{
ERR_
FUNC
(
X509_F_X509_REQ_TO_X509
),
"X509_REQ_to_X509"
},
{
ERR_
FUNC
(
X509_F_X509_STORE_ADD_CERT
),
"X509_STORE_add_cert"
},
{
ERR_
FUNC
(
X509_F_X509_STORE_ADD_CRL
),
"X509_STORE_add_crl"
},
{
ERR_
FUNC
(
X509_F_X509_STORE_CTX_INIT
),
"X509_STORE_CTX_init"
},
{
ERR_
FUNC
(
X509_F_X509_STORE_CTX_NEW
),
"X509_STORE_CTX_new"
},
{
ERR_
FUNC
(
X509_F_X509_STORE_CTX_PURPOSE_INHERIT
),
"X509_STORE_CTX_purpose_inherit"
},
{
ERR_
FUNC
(
X509_F_X509_TO_X509_REQ
),
"X509_to_X509_REQ"
},
{
ERR_
FUNC
(
X509_F_X509_TRUST_ADD
),
"X509_TRUST_add"
},
{
ERR_
FUNC
(
X509_F_X509_TRUST_SET
),
"X509_TRUST_set"
},
{
ERR_
FUNC
(
X509_F_X509_VERIFY_CERT
),
"X509_verify_cert"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
X509_str_reasons
[]
=
{
{
X509_R_BAD_X509_FILETYPE
,
"bad x509 filetype"
},
{
X509_R_BASE64_DECODE_ERROR
,
"base64 decode error"
},
{
X509_R_CANT_CHECK_DH_KEY
,
"cant check dh key"
},
{
X509_R_CERT_ALREADY_IN_HASH_TABLE
,
"cert already in hash table"
},
{
X509_R_ERR_ASN1_LIB
,
"err asn1 lib"
},
{
X509_R_INVALID_DIRECTORY
,
"invalid directory"
},
{
X509_R_INVALID_FIELD_NAME
,
"invalid field name"
},
{
X509_R_INVALID_TRUST
,
"invalid trust"
},
{
X509_R_KEY_TYPE_MISMATCH
,
"key type mismatch"
},
{
X509_R_KEY_VALUES_MISMATCH
,
"key values mismatch"
},
{
X509_R_LOADING_CERT_DIR
,
"loading cert dir"
},
{
X509_R_LOADING_DEFAULTS
,
"loading defaults"
},
{
X509_R_NO_CERT_SET_FOR_US_TO_VERIFY
,
"no cert set for us to verify"
},
{
X509_R_SHOULD_RETRY
,
"should retry"
},
{
X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN
,
"unable to find parameters in chain"
},
{
X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY
,
"unable to get certs public key"
},
{
X509_R_UNKNOWN_KEY_TYPE
,
"unknown key type"
},
{
X509_R_UNKNOWN_NID
,
"unknown nid"
},
{
X509_R_UNKNOWN_PURPOSE_ID
,
"unknown purpose id"
},
{
X509_R_UNKNOWN_TRUST_ID
,
"unknown trust id"
},
{
X509_R_UNSUPPORTED_ALGORITHM
,
"unsupported algorithm"
},
{
X509_R_WRONG_LOOKUP_TYPE
,
"wrong lookup type"
},
{
X509_R_WRONG_TYPE
,
"wrong type"
},
{
ERR_REASON
(
X509_R_BAD_X509_FILETYPE
)
,
"bad x509 filetype"
},
{
ERR_REASON
(
X509_R_BASE64_DECODE_ERROR
)
,
"base64 decode error"
},
{
ERR_REASON
(
X509_R_CANT_CHECK_DH_KEY
)
,
"cant check dh key"
},
{
ERR_REASON
(
X509_R_CERT_ALREADY_IN_HASH_TABLE
)
,
"cert already in hash table"
},
{
ERR_REASON
(
X509_R_ERR_ASN1_LIB
)
,
"err asn1 lib"
},
{
ERR_REASON
(
X509_R_INVALID_DIRECTORY
)
,
"invalid directory"
},
{
ERR_REASON
(
X509_R_INVALID_FIELD_NAME
)
,
"invalid field name"
},
{
ERR_REASON
(
X509_R_INVALID_TRUST
)
,
"invalid trust"
},
{
ERR_REASON
(
X509_R_KEY_TYPE_MISMATCH
)
,
"key type mismatch"
},
{
ERR_REASON
(
X509_R_KEY_VALUES_MISMATCH
)
,
"key values mismatch"
},
{
ERR_REASON
(
X509_R_LOADING_CERT_DIR
)
,
"loading cert dir"
},
{
ERR_REASON
(
X509_R_LOADING_DEFAULTS
)
,
"loading defaults"
},
{
ERR_REASON
(
X509_R_NO_CERT_SET_FOR_US_TO_VERIFY
)
,
"no cert set for us to verify"
},
{
ERR_REASON
(
X509_R_SHOULD_RETRY
)
,
"should retry"
},
{
ERR_REASON
(
X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN
)
,
"unable to find parameters in chain"
},
{
ERR_REASON
(
X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY
)
,
"unable to get certs public key"
},
{
ERR_REASON
(
X509_R_UNKNOWN_KEY_TYPE
)
,
"unknown key type"
},
{
ERR_REASON
(
X509_R_UNKNOWN_NID
)
,
"unknown nid"
},
{
ERR_REASON
(
X509_R_UNKNOWN_PURPOSE_ID
)
,
"unknown purpose id"
},
{
ERR_REASON
(
X509_R_UNKNOWN_TRUST_ID
)
,
"unknown trust id"
},
{
ERR_REASON
(
X509_R_UNSUPPORTED_ALGORITHM
)
,
"unsupported algorithm"
},
{
ERR_REASON
(
X509_R_WRONG_LOOKUP_TYPE
)
,
"wrong lookup type"
},
{
ERR_REASON
(
X509_R_WRONG_TYPE
)
,
"wrong type"
},
{
0
,
NULL
}
};
...
...
@@ -149,8 +153,8 @@ void ERR_load_X509_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_X509
,
X509_str_functs
);
ERR_load_strings
(
ERR_LIB_X509
,
X509_str_reasons
);
ERR_load_strings
(
0
,
X509_str_functs
);
ERR_load_strings
(
0
,
X509_str_reasons
);
#endif
}
...
...
crypto/x509v3/v3err.c
浏览文件 @
29dc3508
...
...
@@ -64,124 +64,128 @@
/* BEGIN ERROR CODES */
#ifndef OPENSSL_NO_ERR
#define ERR_FUNC(func) ERR_PACK(ERR_LIB_X509V3,func,0)
#define ERR_REASON(reason) ERR_PACK(ERR_LIB_X509V3,0,reason)
static
ERR_STRING_DATA
X509V3_str_functs
[]
=
{
{
ERR_
PACK
(
0
,
X509V3_F_COPY_EMAIL
,
0
),
"COPY_EMAIL"
},
{
ERR_
PACK
(
0
,
X509V3_F_COPY_ISSUER
,
0
),
"COPY_ISSUER"
},
{
ERR_
PACK
(
0
,
X509V3_F_DO_DIRNAME
,
0
),
"DO_DIRNAME"
},
{
ERR_
PACK
(
0
,
X509V3_F_DO_EXT_CONF
,
0
),
"DO_EXT_CONF"
},
{
ERR_
PACK
(
0
,
X509V3_F_DO_EXT_I2D
,
0
),
"DO_EXT_I2D"
},
{
ERR_
PACK
(
0
,
X509V3_F_DO_I2V_NAME_CONSTRAINTS
,
0
),
"DO_I2V_NAME_CONSTRAINTS"
},
{
ERR_
PACK
(
0
,
X509V3_F_HEX_TO_STRING
,
0
),
"hex_to_string"
},
{
ERR_
PACK
(
0
,
X509V3_F_I2S_ASN1_ENUMERATED
,
0
),
"i2s_ASN1_ENUMERATED"
},
{
ERR_
PACK
(
0
,
X509V3_F_I2S_ASN1_IA5STRING
,
0
),
"I2S_ASN1_IA5STRING"
},
{
ERR_
PACK
(
0
,
X509V3_F_I2S_ASN1_INTEGER
,
0
),
"i2s_ASN1_INTEGER"
},
{
ERR_
PACK
(
0
,
X509V3_F_I2V_AUTHORITY_INFO_ACCESS
,
0
),
"I2V_AUTHORITY_INFO_ACCESS"
},
{
ERR_
PACK
(
0
,
X509V3_F_NOTICE_SECTION
,
0
),
"NOTICE_SECTION"
},
{
ERR_
PACK
(
0
,
X509V3_F_NREF_NOS
,
0
),
"NREF_NOS"
},
{
ERR_
PACK
(
0
,
X509V3_F_POLICY_SECTION
,
0
),
"POLICY_SECTION"
},
{
ERR_
PACK
(
0
,
X509V3_F_R2I_CERTPOL
,
0
),
"R2I_CERTPOL"
},
{
ERR_
PACK
(
0
,
X509V3_F_R2I_PCI
,
0
),
"R2I_PCI"
},
{
ERR_
PACK
(
0
,
X509V3_F_S2I_ASN1_IA5STRING
,
0
),
"S2I_ASN1_IA5STRING"
},
{
ERR_
PACK
(
0
,
X509V3_F_S2I_ASN1_INTEGER
,
0
),
"s2i_ASN1_INTEGER"
},
{
ERR_
PACK
(
0
,
X509V3_F_S2I_ASN1_OCTET_STRING
,
0
),
"s2i_ASN1_OCTET_STRING"
},
{
ERR_
PACK
(
0
,
X509V3_F_S2I_ASN1_SKEY_ID
,
0
),
"S2I_ASN1_SKEY_ID"
},
{
ERR_
PACK
(
0
,
X509V3_F_S2I_S2I_SKEY_ID
,
0
),
"S2I_S2I_SKEY_ID"
},
{
ERR_
PACK
(
0
,
X509V3_F_STRING_TO_HEX
,
0
),
"string_to_hex"
},
{
ERR_
PACK
(
0
,
X509V3_F_SXNET_ADD_ASC
,
0
),
"SXNET_ADD_ASC"
},
{
ERR_
PACK
(
0
,
X509V3_F_SXNET_ADD_ID_INTEGER
,
0
),
"SXNET_add_id_INTEGER"
},
{
ERR_
PACK
(
0
,
X509V3_F_SXNET_ADD_ID_ULONG
,
0
),
"SXNET_add_id_ulong"
},
{
ERR_
PACK
(
0
,
X509V3_F_SXNET_GET_ID_ASC
,
0
),
"SXNET_get_id_asc"
},
{
ERR_
PACK
(
0
,
X509V3_F_SXNET_GET_ID_ULONG
,
0
),
"SXNET_get_id_ulong"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_ACCESS_DESCRIPTION
,
0
),
"V2I_ACCESS_DESCRIPTION"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_ASN1_BIT_STRING
,
0
),
"v2i_ASN1_BIT_STRING"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_AUTHORITY_KEYID
,
0
),
"V2I_AUTHORITY_KEYID"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_BASIC_CONSTRAINTS
,
0
),
"V2I_BASIC_CONSTRAINTS"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_CRLD
,
0
),
"V2I_CRLD"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_EXT_KU
,
0
),
"V2I_EXT_KU"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_GENERAL_NAME
,
0
),
"v2i_GENERAL_NAME"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_GENERAL_NAMES
,
0
),
"v2i_GENERAL_NAMES"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_NAME_CONSTRAINTS
,
0
),
"V2I_NAME_CONSTRAINTS"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_POLICY_CONSTRAINTS
,
0
),
"V2I_POLICY_CONSTRAINTS"
},
{
ERR_
PACK
(
0
,
X509V3_F_V2I_POLICY_MAPPINGS
,
0
),
"V2I_POLICY_MAPPINGS"
},
{
ERR_
PACK
(
0
,
X509V3_F_V3_GENERIC_EXTENSION
,
0
),
"V3_GENERIC_EXTENSION"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_ADD_I2D
,
0
),
"X509V3_ADD_I2D"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_ADD_VALUE
,
0
),
"X509V3_add_value"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_EXT_ADD
,
0
),
"X509V3_EXT_add"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_EXT_ADD_ALIAS
,
0
),
"X509V3_EXT_add_alias"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_EXT_CONF
,
0
),
"X509V3_EXT_conf"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_EXT_I2D
,
0
),
"X509V3_EXT_i2d"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_GET_SECTION
,
0
),
"X509V3_get_section"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_GET_STRING
,
0
),
"X509V3_get_string"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_GET_VALUE_BOOL
,
0
),
"X509V3_get_value_bool"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509V3_PARSE_LIST
,
0
),
"X509V3_parse_list"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509_PURPOSE_ADD
,
0
),
"X509_PURPOSE_add"
},
{
ERR_
PACK
(
0
,
X509V3_F_X509_PURPOSE_SET
,
0
),
"X509_PURPOSE_set"
},
{
ERR_
FUNC
(
X509V3_F_COPY_EMAIL
),
"COPY_EMAIL"
},
{
ERR_
FUNC
(
X509V3_F_COPY_ISSUER
),
"COPY_ISSUER"
},
{
ERR_
FUNC
(
X509V3_F_DO_DIRNAME
),
"DO_DIRNAME"
},
{
ERR_
FUNC
(
X509V3_F_DO_EXT_CONF
),
"DO_EXT_CONF"
},
{
ERR_
FUNC
(
X509V3_F_DO_EXT_I2D
),
"DO_EXT_I2D"
},
{
ERR_
FUNC
(
X509V3_F_DO_I2V_NAME_CONSTRAINTS
),
"DO_I2V_NAME_CONSTRAINTS"
},
{
ERR_
FUNC
(
X509V3_F_HEX_TO_STRING
),
"hex_to_string"
},
{
ERR_
FUNC
(
X509V3_F_I2S_ASN1_ENUMERATED
),
"i2s_ASN1_ENUMERATED"
},
{
ERR_
FUNC
(
X509V3_F_I2S_ASN1_IA5STRING
),
"I2S_ASN1_IA5STRING"
},
{
ERR_
FUNC
(
X509V3_F_I2S_ASN1_INTEGER
),
"i2s_ASN1_INTEGER"
},
{
ERR_
FUNC
(
X509V3_F_I2V_AUTHORITY_INFO_ACCESS
),
"I2V_AUTHORITY_INFO_ACCESS"
},
{
ERR_
FUNC
(
X509V3_F_NOTICE_SECTION
),
"NOTICE_SECTION"
},
{
ERR_
FUNC
(
X509V3_F_NREF_NOS
),
"NREF_NOS"
},
{
ERR_
FUNC
(
X509V3_F_POLICY_SECTION
),
"POLICY_SECTION"
},
{
ERR_
FUNC
(
X509V3_F_R2I_CERTPOL
),
"R2I_CERTPOL"
},
{
ERR_
FUNC
(
X509V3_F_R2I_PCI
),
"R2I_PCI"
},
{
ERR_
FUNC
(
X509V3_F_S2I_ASN1_IA5STRING
),
"S2I_ASN1_IA5STRING"
},
{
ERR_
FUNC
(
X509V3_F_S2I_ASN1_INTEGER
),
"s2i_ASN1_INTEGER"
},
{
ERR_
FUNC
(
X509V3_F_S2I_ASN1_OCTET_STRING
),
"s2i_ASN1_OCTET_STRING"
},
{
ERR_
FUNC
(
X509V3_F_S2I_ASN1_SKEY_ID
),
"S2I_ASN1_SKEY_ID"
},
{
ERR_
FUNC
(
X509V3_F_S2I_S2I_SKEY_ID
),
"S2I_S2I_SKEY_ID"
},
{
ERR_
FUNC
(
X509V3_F_STRING_TO_HEX
),
"string_to_hex"
},
{
ERR_
FUNC
(
X509V3_F_SXNET_ADD_ASC
),
"SXNET_ADD_ASC"
},
{
ERR_
FUNC
(
X509V3_F_SXNET_ADD_ID_INTEGER
),
"SXNET_add_id_INTEGER"
},
{
ERR_
FUNC
(
X509V3_F_SXNET_ADD_ID_ULONG
),
"SXNET_add_id_ulong"
},
{
ERR_
FUNC
(
X509V3_F_SXNET_GET_ID_ASC
),
"SXNET_get_id_asc"
},
{
ERR_
FUNC
(
X509V3_F_SXNET_GET_ID_ULONG
),
"SXNET_get_id_ulong"
},
{
ERR_
FUNC
(
X509V3_F_V2I_ACCESS_DESCRIPTION
),
"V2I_ACCESS_DESCRIPTION"
},
{
ERR_
FUNC
(
X509V3_F_V2I_ASN1_BIT_STRING
),
"v2i_ASN1_BIT_STRING"
},
{
ERR_
FUNC
(
X509V3_F_V2I_AUTHORITY_KEYID
),
"V2I_AUTHORITY_KEYID"
},
{
ERR_
FUNC
(
X509V3_F_V2I_BASIC_CONSTRAINTS
),
"V2I_BASIC_CONSTRAINTS"
},
{
ERR_
FUNC
(
X509V3_F_V2I_CRLD
),
"V2I_CRLD"
},
{
ERR_
FUNC
(
X509V3_F_V2I_EXT_KU
),
"V2I_EXT_KU"
},
{
ERR_
FUNC
(
X509V3_F_V2I_GENERAL_NAME
),
"v2i_GENERAL_NAME"
},
{
ERR_
FUNC
(
X509V3_F_V2I_GENERAL_NAMES
),
"v2i_GENERAL_NAMES"
},
{
ERR_
FUNC
(
X509V3_F_V2I_NAME_CONSTRAINTS
),
"V2I_NAME_CONSTRAINTS"
},
{
ERR_
FUNC
(
X509V3_F_V2I_POLICY_CONSTRAINTS
),
"V2I_POLICY_CONSTRAINTS"
},
{
ERR_
FUNC
(
X509V3_F_V2I_POLICY_MAPPINGS
),
"V2I_POLICY_MAPPINGS"
},
{
ERR_
FUNC
(
X509V3_F_V3_GENERIC_EXTENSION
),
"V3_GENERIC_EXTENSION"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_ADD_I2D
),
"X509V3_ADD_I2D"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_ADD_VALUE
),
"X509V3_add_value"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_EXT_ADD
),
"X509V3_EXT_add"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_EXT_ADD_ALIAS
),
"X509V3_EXT_add_alias"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_EXT_CONF
),
"X509V3_EXT_conf"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_EXT_I2D
),
"X509V3_EXT_i2d"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_GET_SECTION
),
"X509V3_get_section"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_GET_STRING
),
"X509V3_get_string"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_GET_VALUE_BOOL
),
"X509V3_get_value_bool"
},
{
ERR_
FUNC
(
X509V3_F_X509V3_PARSE_LIST
),
"X509V3_parse_list"
},
{
ERR_
FUNC
(
X509V3_F_X509_PURPOSE_ADD
),
"X509_PURPOSE_add"
},
{
ERR_
FUNC
(
X509V3_F_X509_PURPOSE_SET
),
"X509_PURPOSE_set"
},
{
0
,
NULL
}
};
static
ERR_STRING_DATA
X509V3_str_reasons
[]
=
{
{
X509V3_R_BAD_IP_ADDRESS
,
"bad ip address"
},
{
X509V3_R_BAD_OBJECT
,
"bad object"
},
{
X509V3_R_BN_DEC2BN_ERROR
,
"bn dec2bn error"
},
{
X509V3_R_BN_TO_ASN1_INTEGER_ERROR
,
"bn to asn1 integer error"
},
{
X509V3_R_DIRNAME_ERROR
,
"dirname error"
},
{
X509V3_R_DUPLICATE_ZONE_ID
,
"duplicate zone id"
},
{
X509V3_R_ERROR_CONVERTING_ZONE
,
"error converting zone"
},
{
X509V3_R_ERROR_CREATING_EXTENSION
,
"error creating extension"
},
{
X509V3_R_ERROR_IN_EXTENSION
,
"error in extension"
},
{
X509V3_R_EXPECTED_A_SECTION_NAME
,
"expected a section name"
},
{
X509V3_R_EXTENSION_EXISTS
,
"extension exists"
},
{
X509V3_R_EXTENSION_NAME_ERROR
,
"extension name error"
},
{
X509V3_R_EXTENSION_NOT_FOUND
,
"extension not found"
},
{
X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED
,
"extension setting not supported"
},
{
X509V3_R_EXTENSION_VALUE_ERROR
,
"extension value error"
},
{
X509V3_R_ILLEGAL_EMPTY_EXTENSION
,
"illegal empty extension"
},
{
X509V3_R_ILLEGAL_HEX_DIGIT
,
"illegal hex digit"
},
{
X509V3_R_INCORRECT_POLICY_SYNTAX_TAG
,
"incorrect policy syntax tag"
},
{
X509V3_R_INVALID_BOOLEAN_STRING
,
"invalid boolean string"
},
{
X509V3_R_INVALID_EXTENSION_STRING
,
"invalid extension string"
},
{
X509V3_R_INVALID_NAME
,
"invalid name"
},
{
X509V3_R_INVALID_NULL_ARGUMENT
,
"invalid null argument"
},
{
X509V3_R_INVALID_NULL_NAME
,
"invalid null name"
},
{
X509V3_R_INVALID_NULL_VALUE
,
"invalid null value"
},
{
X509V3_R_INVALID_NUMBER
,
"invalid number"
},
{
X509V3_R_INVALID_NUMBERS
,
"invalid numbers"
},
{
X509V3_R_INVALID_OBJECT_IDENTIFIER
,
"invalid object identifier"
},
{
X509V3_R_INVALID_OPTION
,
"invalid option"
},
{
X509V3_R_INVALID_POLICY_IDENTIFIER
,
"invalid policy identifier"
},
{
X509V3_R_INVALID_PROXY_POLICY_SETTING
,
"invalid proxy policy setting"
},
{
X509V3_R_INVALID_PURPOSE
,
"invalid purpose"
},
{
X509V3_R_INVALID_SECTION
,
"invalid section"
},
{
X509V3_R_INVALID_SYNTAX
,
"invalid syntax"
},
{
X509V3_R_ISSUER_DECODE_ERROR
,
"issuer decode error"
},
{
X509V3_R_MISSING_VALUE
,
"missing value"
},
{
X509V3_R_NEED_ORGANIZATION_AND_NUMBERS
,
"need organization and numbers"
},
{
X509V3_R_NO_CONFIG_DATABASE
,
"no config database"
},
{
X509V3_R_NO_ISSUER_CERTIFICATE
,
"no issuer certificate"
},
{
X509V3_R_NO_ISSUER_DETAILS
,
"no issuer details"
},
{
X509V3_R_NO_POLICY_IDENTIFIER
,
"no policy identifier"
},
{
X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED
,
"no proxy cert policy language defined"
},
{
X509V3_R_NO_PUBLIC_KEY
,
"no public key"
},
{
X509V3_R_NO_SUBJECT_DETAILS
,
"no subject details"
},
{
X509V3_R_ODD_NUMBER_OF_DIGITS
,
"odd number of digits"
},
{
X509V3_R_OPERATION_NOT_DEFINED
,
"operation not defined"
},
{
X509V3_R_OTHERNAME_ERROR
,
"othername error"
},
{
X509V3_R_POLICY_LANGUAGE_ALREADTY_DEFINED
,
"policy language alreadty defined"
},
{
X509V3_R_POLICY_PATH_LENGTH
,
"policy path length"
},
{
X509V3_R_POLICY_PATH_LENGTH_ALREADTY_DEFINED
,
"policy path length alreadty defined"
},
{
X509V3_R_POLICY_SYNTAX_NOT_CURRENTLY_SUPPORTED
,
"policy syntax not currently supported"
},
{
X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY
,
"policy when proxy language requires no policy"
},
{
X509V3_R_SECTION_NOT_FOUND
,
"section not found"
},
{
X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS
,
"unable to get issuer details"
},
{
X509V3_R_UNABLE_TO_GET_ISSUER_KEYID
,
"unable to get issuer keyid"
},
{
X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT
,
"unknown bit string argument"
},
{
X509V3_R_UNKNOWN_EXTENSION
,
"unknown extension"
},
{
X509V3_R_UNKNOWN_EXTENSION_NAME
,
"unknown extension name"
},
{
X509V3_R_UNKNOWN_OPTION
,
"unknown option"
},
{
X509V3_R_UNSUPPORTED_OPTION
,
"unsupported option"
},
{
X509V3_R_USER_TOO_LONG
,
"user too long"
},
{
ERR_REASON
(
X509V3_R_BAD_IP_ADDRESS
)
,
"bad ip address"
},
{
ERR_REASON
(
X509V3_R_BAD_OBJECT
)
,
"bad object"
},
{
ERR_REASON
(
X509V3_R_BN_DEC2BN_ERROR
)
,
"bn dec2bn error"
},
{
ERR_REASON
(
X509V3_R_BN_TO_ASN1_INTEGER_ERROR
)
,
"bn to asn1 integer error"
},
{
ERR_REASON
(
X509V3_R_DIRNAME_ERROR
)
,
"dirname error"
},
{
ERR_REASON
(
X509V3_R_DUPLICATE_ZONE_ID
)
,
"duplicate zone id"
},
{
ERR_REASON
(
X509V3_R_ERROR_CONVERTING_ZONE
)
,
"error converting zone"
},
{
ERR_REASON
(
X509V3_R_ERROR_CREATING_EXTENSION
)
,
"error creating extension"
},
{
ERR_REASON
(
X509V3_R_ERROR_IN_EXTENSION
)
,
"error in extension"
},
{
ERR_REASON
(
X509V3_R_EXPECTED_A_SECTION_NAME
)
,
"expected a section name"
},
{
ERR_REASON
(
X509V3_R_EXTENSION_EXISTS
)
,
"extension exists"
},
{
ERR_REASON
(
X509V3_R_EXTENSION_NAME_ERROR
)
,
"extension name error"
},
{
ERR_REASON
(
X509V3_R_EXTENSION_NOT_FOUND
)
,
"extension not found"
},
{
ERR_REASON
(
X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED
)
,
"extension setting not supported"
},
{
ERR_REASON
(
X509V3_R_EXTENSION_VALUE_ERROR
)
,
"extension value error"
},
{
ERR_REASON
(
X509V3_R_ILLEGAL_EMPTY_EXTENSION
)
,
"illegal empty extension"
},
{
ERR_REASON
(
X509V3_R_ILLEGAL_HEX_DIGIT
)
,
"illegal hex digit"
},
{
ERR_REASON
(
X509V3_R_INCORRECT_POLICY_SYNTAX_TAG
)
,
"incorrect policy syntax tag"
},
{
ERR_REASON
(
X509V3_R_INVALID_BOOLEAN_STRING
)
,
"invalid boolean string"
},
{
ERR_REASON
(
X509V3_R_INVALID_EXTENSION_STRING
)
,
"invalid extension string"
},
{
ERR_REASON
(
X509V3_R_INVALID_NAME
)
,
"invalid name"
},
{
ERR_REASON
(
X509V3_R_INVALID_NULL_ARGUMENT
)
,
"invalid null argument"
},
{
ERR_REASON
(
X509V3_R_INVALID_NULL_NAME
)
,
"invalid null name"
},
{
ERR_REASON
(
X509V3_R_INVALID_NULL_VALUE
)
,
"invalid null value"
},
{
ERR_REASON
(
X509V3_R_INVALID_NUMBER
)
,
"invalid number"
},
{
ERR_REASON
(
X509V3_R_INVALID_NUMBERS
)
,
"invalid numbers"
},
{
ERR_REASON
(
X509V3_R_INVALID_OBJECT_IDENTIFIER
)
,
"invalid object identifier"
},
{
ERR_REASON
(
X509V3_R_INVALID_OPTION
)
,
"invalid option"
},
{
ERR_REASON
(
X509V3_R_INVALID_POLICY_IDENTIFIER
)
,
"invalid policy identifier"
},
{
ERR_REASON
(
X509V3_R_INVALID_PROXY_POLICY_SETTING
)
,
"invalid proxy policy setting"
},
{
ERR_REASON
(
X509V3_R_INVALID_PURPOSE
)
,
"invalid purpose"
},
{
ERR_REASON
(
X509V3_R_INVALID_SECTION
)
,
"invalid section"
},
{
ERR_REASON
(
X509V3_R_INVALID_SYNTAX
)
,
"invalid syntax"
},
{
ERR_REASON
(
X509V3_R_ISSUER_DECODE_ERROR
)
,
"issuer decode error"
},
{
ERR_REASON
(
X509V3_R_MISSING_VALUE
)
,
"missing value"
},
{
ERR_REASON
(
X509V3_R_NEED_ORGANIZATION_AND_NUMBERS
)
,
"need organization and numbers"
},
{
ERR_REASON
(
X509V3_R_NO_CONFIG_DATABASE
)
,
"no config database"
},
{
ERR_REASON
(
X509V3_R_NO_ISSUER_CERTIFICATE
)
,
"no issuer certificate"
},
{
ERR_REASON
(
X509V3_R_NO_ISSUER_DETAILS
)
,
"no issuer details"
},
{
ERR_REASON
(
X509V3_R_NO_POLICY_IDENTIFIER
)
,
"no policy identifier"
},
{
ERR_REASON
(
X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED
)
,
"no proxy cert policy language defined"
},
{
ERR_REASON
(
X509V3_R_NO_PUBLIC_KEY
)
,
"no public key"
},
{
ERR_REASON
(
X509V3_R_NO_SUBJECT_DETAILS
)
,
"no subject details"
},
{
ERR_REASON
(
X509V3_R_ODD_NUMBER_OF_DIGITS
)
,
"odd number of digits"
},
{
ERR_REASON
(
X509V3_R_OPERATION_NOT_DEFINED
)
,
"operation not defined"
},
{
ERR_REASON
(
X509V3_R_OTHERNAME_ERROR
)
,
"othername error"
},
{
ERR_REASON
(
X509V3_R_POLICY_LANGUAGE_ALREADTY_DEFINED
)
,
"policy language alreadty defined"
},
{
ERR_REASON
(
X509V3_R_POLICY_PATH_LENGTH
)
,
"policy path length"
},
{
ERR_REASON
(
X509V3_R_POLICY_PATH_LENGTH_ALREADTY_DEFINED
)
,
"policy path length alreadty defined"
},
{
ERR_REASON
(
X509V3_R_POLICY_SYNTAX_NOT_CURRENTLY_SUPPORTED
)
,
"policy syntax not currently supported"
},
{
ERR_REASON
(
X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY
)
,
"policy when proxy language requires no policy"
},
{
ERR_REASON
(
X509V3_R_SECTION_NOT_FOUND
)
,
"section not found"
},
{
ERR_REASON
(
X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS
)
,
"unable to get issuer details"
},
{
ERR_REASON
(
X509V3_R_UNABLE_TO_GET_ISSUER_KEYID
)
,
"unable to get issuer keyid"
},
{
ERR_REASON
(
X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT
)
,
"unknown bit string argument"
},
{
ERR_REASON
(
X509V3_R_UNKNOWN_EXTENSION
)
,
"unknown extension"
},
{
ERR_REASON
(
X509V3_R_UNKNOWN_EXTENSION_NAME
)
,
"unknown extension name"
},
{
ERR_REASON
(
X509V3_R_UNKNOWN_OPTION
)
,
"unknown option"
},
{
ERR_REASON
(
X509V3_R_UNSUPPORTED_OPTION
)
,
"unsupported option"
},
{
ERR_REASON
(
X509V3_R_USER_TOO_LONG
)
,
"user too long"
},
{
0
,
NULL
}
};
...
...
@@ -195,8 +199,8 @@ void ERR_load_X509V3_strings(void)
{
init
=
0
;
#ifndef OPENSSL_NO_ERR
ERR_load_strings
(
ERR_LIB_X509V3
,
X509V3_str_functs
);
ERR_load_strings
(
ERR_LIB_X509V3
,
X509V3_str_reasons
);
ERR_load_strings
(
0
,
X509V3_str_functs
);
ERR_load_strings
(
0
,
X509V3_str_reasons
);
#endif
}
...
...
ssl/ssl_err.c
浏览文件 @
29dc3508
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录