home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / k95source.tar.gz / k95source.tar / ckcssl.h < prev    next >
C/C++ Source or Header  |  1999-09-21  |  6KB  |  127 lines

  1. #ifdef CK_SSL
  2. #ifndef CK_ANSIC
  3. #define NOPROTO
  4. #endif /* CK_ANSIC */
  5. #include "bio.h"
  6. #include "buffer.h"
  7. #include "x509.h"
  8. #include "pem.h"
  9. #include "ssl.h"
  10.  
  11. extern BIO *bio_err;
  12. extern SSL *ssl_con;
  13. extern SSL_CTX *ssl_ctx;
  14. extern int ssl_debug_flag;
  15. extern int ssl_only_flag;
  16. extern int ssl_active_flag;
  17. extern int ssl_verify_flag;
  18. extern int ssl_secure_flag;
  19. extern int ssl_verbose_flag;
  20. extern int ssl_disabled_flag;
  21. extern int ssl_cert_required;
  22. extern int ssl_certsok_flag;
  23. extern int ssl_dummy_flag;
  24.  
  25. extern char *ssl_log_file;
  26. extern char *ssl_rsa_cert_file;
  27. extern char *ssl_rsa_key_file;
  28. extern char *ssl_dsa_cert_file;
  29. extern char *ssl_dh_key_file;
  30. extern char *ssl_cipher_list;
  31.  
  32. extern SSL_CTX *tls_ctx;
  33. extern SSL *tls_con;
  34. extern int tls_only_flag;
  35. extern int tls_active_flag;
  36. extern int tls_secure_flag;
  37.  
  38. _PROTOTYP(int ssl_do_init,(int));
  39. _PROTOTYP(int ssl_display_connect_details,(SSL *,int));
  40. _PROTOTYP(int ssl_server_verify_callback,(int, X509_STORE_CTX *));
  41. _PROTOTYP(int ssl_client_verify_callback,(int, X509_STORE_CTX *));
  42.  
  43. #ifdef OS2
  44. #define SSL_get_error                    ck_SSL_get_error
  45. #define SSL_read                         ck_SSL_read
  46. #define SSL_peek                         ck_SSL_peek
  47. #define SSL_connect                      ck_SSL_connect
  48. #define SSL_set_fd                       ck_SSL_set_fd
  49. #define SSL_free                         ck_SSL_free
  50. #define SSL_shutdown                     ck_SSL_shutdown
  51. #define SSL_write                        ck_SSL_write
  52. #define SSL_pending                      ck_SSL_pending
  53. #define SSL_load_error_strings           ck_SSL_load_error_strings
  54. #define SSL_get_peer_certificate         ck_SSL_get_peer_certificate
  55. #define SSL_CIPHER_get_name              ck_SSL_CIPHER_get_name
  56. #define SSL_get_current_cipher           ck_SSL_get_current_cipher
  57. #define SSL_get_shared_ciphers           ck_SSL_get_shared_ciphers
  58. #define SSL_get_ciphers                  ck_SSL_get_ciphers
  59. #define SSL_get_cipher_list              ck_SSL_get_cipher_list
  60. #define SSL_CTX_set_default_verify_paths ck_SSL_CTX_set_default_verify_paths
  61. #define SSL_use_RSAPrivateKey_file       ck_SSL_use_RSAPrivateKey_file
  62. #define SSL_use_DSAPrivateKey_file       ck_SSL_use_DSAPrivateKey_file
  63. #define SSL_use_PrivateKey_file          ck_SSL_use_PrivateKey_file
  64. #define SSL_use_certificate_file         ck_SSL_use_certificate_file
  65. #define SSL_CTX_use_PrivateKey_file      ck_SSL_CTX_use_PrivateKey_file
  66. #define SSL_CTX_use_certificate_file     ck_SSL_CTX_use_certificate_file
  67. #define SSL_set_verify                   ck_SSL_set_verify
  68. #define SSL_new                          ck_SSL_new
  69. #define SSL_CTX_ctrl                     ck_SSL_CTX_ctrl
  70. #define SSL_CTX_new                      ck_SSL_CTX_new
  71. #define SSL_CTX_free                     ck_SSL_CTX_free
  72. #define SSL_CTX_set_default_passwd_cb    ck_SSL_CTX_set_default_passwd_cb
  73. #define SSLv23_method                    ck_SSLv23_method
  74. #define SSLv3_method                     ck_SSLv3_method
  75. #define TLSv1_method                     ck_TLSv1_method
  76. #define SSLv23_client_method             ck_SSLv23_client_method
  77. #define SSLv3_client_method              ck_SSLv3_client_method
  78. #define TLSv1_client_method              ck_TLSv1_client_method
  79. #define SSLv23_server_method             ck_SSLv23_server_method
  80. #define SSLv3_server_method              ck_SSLv3_server_method
  81. #define TLSv1_server_method              ck_TLSv1_server_method
  82. #define SSL_library_init                 ck_SSL_library_init
  83. #define SSL_state_string                 ck_SSL_state_string
  84. #define SSL_state_string_long            ck_SSL_state_string_long
  85. #define SSL_accept                       ck_SSL_accept
  86. #define SSL_set_cipher_list              ck_SSL_set_cipher_list
  87.  
  88. #define ERR_print_errors                 ck_ERR_print_errors
  89. #define ERR_print_errors_fp              ck_ERR_print_errors_fp
  90. #define ERR_error_string                 ck_ERR_error_string
  91. #define ERR_get_error                    ck_ERR_get_error
  92.  
  93. #define BIO_printf                       ck_BIO_printf
  94. #define BIO_ctrl                         ck_BIO_ctrl
  95. #define BIO_new                          ck_BIO_new
  96. #define BIO_s_file                       ck_BIO_s_file
  97. #define BIO_s_mem                        ck_BIO_s_mem
  98. #define BIO_s_null                       ck_BIO_s_null
  99. #define BIO_read                         ck_BIO_read
  100. #define BIO_new_file                     ck_BIO_new_file
  101. #define BIO_free                         ck_BIO_free
  102.  
  103. #define X509_get_issuer_name             ck_X509_get_issuer_name
  104. #define X509_verify_cert_error_string    ck_X509_verify_cert_error_string
  105. #define X509_NAME_oneline                ck_X509_NAME_oneline
  106. #define X509_get_subject_name            ck_X509_get_subject_name
  107. #define X509_STORE_CTX_get_current_cert  ck_X509_STORE_CTX_get_current_cert
  108. #define X509_get_default_cert_dir        ck_X509_get_default_cert_dir
  109. #define X509_free                        ck_X509_free
  110.  
  111. #define RSA_free                         ck_RSA_free
  112. #define RSA_generate_key                 ck_RSA_generate_key
  113.  
  114. #define DH_new                           ck_DH_new
  115. #define DH_free                          ck_DH_free
  116. #define DH_generate_key                  ck_DH_generate_key
  117. #define DH_generate_parameters           ck_DH_generate_parameters
  118.  
  119. #define DSA_free                         ck_DSA_free
  120. #define DSA_generate_key                 ck_DSA_generate_key
  121. #define DSA_generate_parameters          ck_DSA_generate_parameters
  122.  
  123. #define PEM_read_bio_DHparams            ck_PEM_read_bio_DHparams
  124. #define BN_bin2bn                        ck_BN_bin2bn
  125. #endif /* OS2 */
  126. #endif /* CK_SSL */
  127.