Просмотр исходного кода

* No longer need to define these headers

Bryan Drewery 14 лет назад
Родитель
Сommit
3209392364
3 измененных файлов с 0 добавлено и 70 удалено
  1. 0 47
      src/libcrypto.h
  2. 0 16
      src/libssl.h
  3. 0 7
      src/libtcl.h

+ 0 - 47
src/libcrypto.h

@@ -25,54 +25,7 @@
 #include "dl.h"
 #include "dl.h"
 #include <bdlib/src/String.h>
 #include <bdlib/src/String.h>
 
 
-typedef void (*AES_cbc_encrypt_t)(const unsigned char*, unsigned char*, const size_t, const AES_KEY*, unsigned char*, const int);
-typedef void (*AES_decrypt_t)(const unsigned char*, unsigned char*, const AES_KEY*);
-typedef void (*AES_encrypt_t)(const unsigned char*, unsigned char*, const AES_KEY*);
-typedef int (*AES_set_decrypt_key_t)(const unsigned char*, const int, AES_KEY*);
-typedef int (*AES_set_encrypt_key_t)(const unsigned char*, const int, AES_KEY*);
 
 
-typedef void (*BF_decrypt_t)(BF_LONG*, const BF_KEY*);
-typedef void (*BF_encrypt_t)(BF_LONG*, const BF_KEY*);
-typedef void (*BF_set_key_t)(BF_KEY*, int, const unsigned char*);
-
-typedef char* (*ERR_error_string_t)(unsigned long, char*);
-typedef void (*ERR_free_strings_t)(void);
-typedef unsigned long (*ERR_get_error_t)(void);
-
-typedef void (*OPENSSL_cleanse_t)(void*, size_t);
-
-typedef const char* (*RAND_file_name_t)(char*, size_t);
-typedef int (*RAND_load_file_t)(const char*, long);
-typedef void (*RAND_seed_t)(const void*, int);
-typedef int (*RAND_status_t)(void);
-typedef int (*RAND_write_file_t)(const char*);
-
-typedef int (*MD5_Final_t)(unsigned char*, MD5_CTX*);
-typedef int (*MD5_Init_t)(MD5_CTX*);
-typedef int (*MD5_Update_t)(MD5_CTX*, const void*, size_t);
-typedef int (*SHA1_Final_t)(unsigned char*, SHA_CTX*);
-typedef int (*SHA1_Init_t)(SHA_CTX*);
-typedef int (*SHA1_Update_t)(SHA_CTX*, const void*, size_t);
-typedef int (*SHA256_Final_t)(unsigned char*, SHA256_CTX *);
-typedef int (*SHA256_Init_t)(SHA256_CTX*);
-typedef int (*SHA256_Update_t)(SHA256_CTX*, const void*, size_t);
-
-typedef BIGNUM* (*BN_bin2bn_t)(const unsigned char*, int, BIGNUM*);
-typedef BIGNUM* (*BN_dup_t)(const BIGNUM*);
-typedef int (*BN_bn2bin_t)(const BIGNUM*, unsigned char*);
-typedef int (*BN_dec2bn_t)(BIGNUM**, const char*);
-typedef int (*BN_hex2bn_t)(BIGNUM**, const char*);
-typedef int (*BN_num_bits_t)(const BIGNUM*);
-typedef void (*BN_clear_free_t)(BIGNUM*);
-
-typedef int (*DH_compute_key_t)(unsigned char*, const BIGNUM*, DH*);
-typedef void (*DH_free_t)(DH*);
-typedef int (*DH_generate_key_t)(DH*);
-typedef DH* (*DH_new_t)(void);
-typedef int (*DH_size_t)(const DH*);
-
-typedef void (*EVP_cleanup_t)(void);
-typedef void (*CRYPTO_cleanup_all_ex_data_t)(void);
 
 
 int load_libcrypto();
 int load_libcrypto();
 int unload_libcrypto();
 int unload_libcrypto();

+ 0 - 16
src/libssl.h

@@ -22,22 +22,6 @@ typedef DH* (*dh_callback_t)(SSL*, int, int);
 
 
 #include ".defs/libssl_post.h"
 #include ".defs/libssl_post.h"
 
 
-typedef int (*SSL_get_error_t)(const SSL*, int);
-typedef void (*SSL_free_t)(SSL*);
-typedef int (*SSL_connect_t)(SSL*);
-typedef int (*SSL_read_t)(SSL*, void*, int);
-typedef int (*SSL_write_t)(SSL*, const void*, int);
-typedef SSL* (*SSL_new_t)(SSL_CTX*);
-typedef const SSL_METHOD* (*SSLv23_client_method_t)(void);
-typedef int (*SSL_shutdown_t)(SSL*);
-typedef int (*SSL_set_fd_t)(SSL*, int);
-typedef int (*SSL_pending_t)(const SSL*);
-typedef void (*SSL_load_error_strings_t)(void);
-typedef int (*SSL_library_init_t)(void);
-typedef void (*SSL_CTX_free_t)(SSL_CTX*);
-typedef SSL_CTX* (*SSL_CTX_new_t)(const SSL_METHOD*);
-typedef long (*SSL_CTX_ctrl_t)(SSL_CTX*, int, long, void*);
-typedef int (*SSL_CTX_set_cipher_list_t)(SSL_CTX*, const char*);
 typedef void (*SSL_CTX_set_tmp_dh_callback_t)(SSL_CTX*, dh_callback_t);
 typedef void (*SSL_CTX_set_tmp_dh_callback_t)(SSL_CTX*, dh_callback_t);
 
 
 int load_libssl();
 int load_libssl();

+ 0 - 7
src/libtcl.h

@@ -12,13 +12,6 @@
 
 
 #include ".defs/libtcl_post.h"
 #include ".defs/libtcl_post.h"
 
 
-typedef int (*Tcl_Eval_t)(Tcl_Interp*, const char*);
-typedef Tcl_Command (*Tcl_CreateCommand_t)(Tcl_Interp*, const char*, Tcl_CmdProc*, ClientData, Tcl_CmdDeleteProc*);
-typedef const char* (*Tcl_GetStringResult_t)(Tcl_Interp*);
-typedef void (*Tcl_DeleteInterp_t)(Tcl_Interp*);
-typedef Tcl_Interp* (*Tcl_CreateInterp_t)(void);
-typedef void (*Tcl_FindExecutable_t)(const char*);
-typedef int (*Tcl_Init_t)(Tcl_Interp*);
 
 
 #define STDVAR (ClientData cd, Tcl_Interp *interp, int argc, const char *argv[])
 #define STDVAR (ClientData cd, Tcl_Interp *interp, int argc, const char *argv[])