提交 4d7072f4 编写于 作者: B Bodo Möller

remove redundant ERR_load_... declarations

上级 b5348a09
...@@ -886,8 +886,6 @@ void ASN1_HEADER_free(ASN1_HEADER *a); ...@@ -886,8 +886,6 @@ void ASN1_HEADER_free(ASN1_HEADER *a);
int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s); int ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s);
void ERR_load_ASN1_strings(void);
/* Not used that much at this point, except for the first two */ /* Not used that much at this point, except for the first two */
ASN1_METHOD *X509_asn1_meth(void); ASN1_METHOD *X509_asn1_meth(void);
ASN1_METHOD *RSAPrivateKey_asn1_meth(void); ASN1_METHOD *RSAPrivateKey_asn1_meth(void);
......
...@@ -591,8 +591,6 @@ int BIO_sock_init(void ); ...@@ -591,8 +591,6 @@ int BIO_sock_init(void );
void BIO_sock_cleanup(void); void BIO_sock_cleanup(void);
int BIO_set_tcp_ndelay(int sock,int turn_on); int BIO_set_tcp_ndelay(int sock,int turn_on);
void ERR_load_BIO_strings(void );
BIO *BIO_new_socket(int sock, int close_flag); BIO *BIO_new_socket(int sock, int close_flag);
BIO *BIO_new_fd(int fd, int close_flag); BIO *BIO_new_fd(int fd, int close_flag);
BIO *BIO_new_connect(char *host_port); BIO *BIO_new_connect(char *host_port);
......
...@@ -420,7 +420,6 @@ int BN_is_prime(const BIGNUM *p,int nchecks, ...@@ -420,7 +420,6 @@ int BN_is_prime(const BIGNUM *p,int nchecks,
int BN_is_prime_fasttest(const BIGNUM *p,int nchecks, int BN_is_prime_fasttest(const BIGNUM *p,int nchecks,
void (*callback)(int,int,void *),BN_CTX *ctx,void *cb_arg, void (*callback)(int,int,void *),BN_CTX *ctx,void *cb_arg,
int do_trial_division); int do_trial_division);
void ERR_load_BN_strings(void );
BN_MONT_CTX *BN_MONT_CTX_new(void ); BN_MONT_CTX *BN_MONT_CTX_new(void );
void BN_MONT_CTX_init(BN_MONT_CTX *ctx); void BN_MONT_CTX_init(BN_MONT_CTX *ctx);
......
...@@ -75,8 +75,6 @@ void BUF_MEM_free(BUF_MEM *a); ...@@ -75,8 +75,6 @@ void BUF_MEM_free(BUF_MEM *a);
int BUF_MEM_grow(BUF_MEM *str, int len); int BUF_MEM_grow(BUF_MEM *str, int len);
char * BUF_strdup(const char *str); char * BUF_strdup(const char *str);
void ERR_load_BUF_strings(void );
/* BEGIN ERROR CODES */ /* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes /* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run. * made after this point may be overwritten when the script is next run.
......
...@@ -110,7 +110,6 @@ long CONF_get_number(LHASH *conf,char *group,char *name); ...@@ -110,7 +110,6 @@ long CONF_get_number(LHASH *conf,char *group,char *name);
void CONF_free(LHASH *conf); void CONF_free(LHASH *conf);
int CONF_dump_fp(LHASH *conf, FILE *out); int CONF_dump_fp(LHASH *conf, FILE *out);
int CONF_dump_bio(LHASH *conf, BIO *out); int CONF_dump_bio(LHASH *conf, BIO *out);
void ERR_load_CONF_strings(void );
/* New conf code. The semantics are different from the functions above. /* New conf code. The semantics are different from the functions above.
If that wasn't the case, the above functions would have been replaced */ If that wasn't the case, the above functions would have been replaced */
......
...@@ -180,7 +180,6 @@ int DHparams_print(BIO *bp, const DH *x); ...@@ -180,7 +180,6 @@ int DHparams_print(BIO *bp, const DH *x);
#else #else
int DHparams_print(char *bp, const DH *x); int DHparams_print(char *bp, const DH *x);
#endif #endif
void ERR_load_DH_strings(void);
/* BEGIN ERROR CODES */ /* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes /* The following lines are auto generated by the script mkerr.pl. Any changes
......
...@@ -183,8 +183,6 @@ int DSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, ...@@ -183,8 +183,6 @@ int DSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
int DSA_set_ex_data(DSA *d, int idx, void *arg); int DSA_set_ex_data(DSA *d, int idx, void *arg);
void *DSA_get_ex_data(DSA *d, int idx); void *DSA_get_ex_data(DSA *d, int idx);
void ERR_load_DSA_strings(void );
DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length); DSA * d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);
DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length); DSA * d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);
DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length); DSA * d2i_DSAparams(DSA **a, const unsigned char **pp, long length);
......
...@@ -261,7 +261,6 @@ DSO_METHOD *DSO_METHOD_win32(void); ...@@ -261,7 +261,6 @@ DSO_METHOD *DSO_METHOD_win32(void);
/* If VMS is defined, use shared images. If not, return NULL. */ /* If VMS is defined, use shared images. If not, return NULL. */
DSO_METHOD *DSO_METHOD_vms(void); DSO_METHOD *DSO_METHOD_vms(void);
void ERR_load_DSO_strings(void);
/* BEGIN ERROR CODES */ /* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes /* The following lines are auto generated by the script mkerr.pl. Any changes
......
...@@ -589,7 +589,7 @@ int main(int argc, char *argv[]) ...@@ -589,7 +589,7 @@ int main(int argc, char *argv[])
} }
#if 0 #if 1
timings(P_192, 0, ctx); timings(P_192, 0, ctx);
timings(P_192, 1, ctx); timings(P_192, 1, ctx);
timings(P_224, 0, ctx); timings(P_224, 0, ctx);
......
...@@ -538,8 +538,6 @@ int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned ...@@ -538,8 +538,6 @@ int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned
char *out, int *outl); char *out, int *outl);
int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n); int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n);
void ERR_load_EVP_strings(void );
void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a); void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a);
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a); int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a);
int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen); int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen);
......
...@@ -1011,8 +1011,6 @@ int OBJ_cmp(const ASN1_OBJECT *a,const ASN1_OBJECT *b); ...@@ -1011,8 +1011,6 @@ int OBJ_cmp(const ASN1_OBJECT *a,const ASN1_OBJECT *b);
const char * OBJ_bsearch(const char *key,const char *base,int num,int size, const char * OBJ_bsearch(const char *key,const char *base,int num,int size,
int (*cmp)(const void *, const void *)); int (*cmp)(const void *, const void *));
void ERR_load_OBJ_strings(void );
int OBJ_new_nid(int num); int OBJ_new_nid(int num);
int OBJ_add_object(const ASN1_OBJECT *obj); int OBJ_add_object(const ASN1_OBJECT *obj);
int OBJ_create(const char *oid,const char *sn,const char *ln); int OBJ_create(const char *oid,const char *sn,const char *ln);
......
...@@ -554,8 +554,6 @@ int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE* o, unsigned long flags); ...@@ -554,8 +554,6 @@ int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE* o, unsigned long flags);
int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
X509_STORE *st, unsigned long flags); X509_STORE *st, unsigned long flags);
void ERR_load_OCSP_strings(void);
/* BEGIN ERROR CODES */ /* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes /* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run. * made after this point may be overwritten when the script is next run.
......
...@@ -528,8 +528,6 @@ void PEM_SignUpdate(EVP_MD_CTX *ctx,unsigned char *d,unsigned int cnt); ...@@ -528,8 +528,6 @@ void PEM_SignUpdate(EVP_MD_CTX *ctx,unsigned char *d,unsigned int cnt);
int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, int PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,
unsigned int *siglen, EVP_PKEY *pkey); unsigned int *siglen, EVP_PKEY *pkey);
void ERR_load_PEM_strings(void);
int PEM_def_callback(char *buf, int num, int w, void *key); int PEM_def_callback(char *buf, int num, int w, void *key);
void PEM_proc_type(char *buf, int type); void PEM_proc_type(char *buf, int type);
void PEM_dek_info(char *buf, const char *type, int len, char *str); void PEM_dek_info(char *buf, const char *type, int len, char *str);
......
...@@ -243,7 +243,6 @@ DECLARE_ASN1_FUNCTIONS(PKCS12_BAGS) ...@@ -243,7 +243,6 @@ DECLARE_ASN1_FUNCTIONS(PKCS12_BAGS)
DECLARE_ASN1_ITEM(PKCS12_SAFEBAGS) DECLARE_ASN1_ITEM(PKCS12_SAFEBAGS)
DECLARE_ASN1_ITEM(PKCS12_AUTHSAFES) DECLARE_ASN1_ITEM(PKCS12_AUTHSAFES)
void ERR_load_PKCS12_strings(void);
void PKCS12_PBE_add(void); void PKCS12_PBE_add(void);
int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
STACK_OF(X509) **ca); STACK_OF(X509) **ca);
......
...@@ -300,8 +300,6 @@ DECLARE_ASN1_FUNCTIONS(PKCS7) ...@@ -300,8 +300,6 @@ DECLARE_ASN1_FUNCTIONS(PKCS7)
DECLARE_ASN1_ITEM(PKCS7_ATTR_SIGN) DECLARE_ASN1_ITEM(PKCS7_ATTR_SIGN)
DECLARE_ASN1_ITEM(PKCS7_ATTR_VERIFY) DECLARE_ASN1_ITEM(PKCS7_ATTR_VERIFY)
void ERR_load_PKCS7_strings(void);
long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg); long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg);
......
...@@ -829,7 +829,6 @@ const char * X509_get_default_private_dir(void ); ...@@ -829,7 +829,6 @@ const char * X509_get_default_private_dir(void );
X509_REQ * X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md); X509_REQ * X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
X509 * X509_REQ_to_X509(X509_REQ *r, int days,EVP_PKEY *pkey); X509 * X509_REQ_to_X509(X509_REQ *r, int days,EVP_PKEY *pkey);
void ERR_load_X509_strings(void );
DECLARE_ASN1_FUNCTIONS(X509_ALGOR) DECLARE_ASN1_FUNCTIONS(X509_ALGOR)
DECLARE_ASN1_FUNCTIONS(X509_VAL) DECLARE_ASN1_FUNCTIONS(X509_VAL)
......
...@@ -404,8 +404,6 @@ typedef struct x509_purpose_st { ...@@ -404,8 +404,6 @@ typedef struct x509_purpose_st {
DECLARE_STACK_OF(X509_PURPOSE) DECLARE_STACK_OF(X509_PURPOSE)
void ERR_load_X509V3_strings(void);
DECLARE_ASN1_FUNCTIONS(BASIC_CONSTRAINTS) DECLARE_ASN1_FUNCTIONS(BASIC_CONSTRAINTS)
DECLARE_ASN1_FUNCTIONS(SXNET) DECLARE_ASN1_FUNCTIONS(SXNET)
......
...@@ -1134,7 +1134,6 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs, ...@@ -1134,7 +1134,6 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,
#endif #endif
void ERR_load_SSL_strings(void );
void SSL_load_error_strings(void ); void SSL_load_error_strings(void );
const char *SSL_state_string(SSL *s); const char *SSL_state_string(SSL *s);
const char *SSL_rstate_string(SSL *s); const char *SSL_rstate_string(SSL *s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册