/*
    ...
*/

#define	_SSL_send_text(a, b)	_SSL_send(a, b, strlen(b));

void _SSL_context_init (void (*info_cb_func));
void _SSL_context_free ();

SSL *_SSL_socket (int sd);
char *_SSL_set_verify (void *(verify_callback), char *cacert);
/*
    SSL_connect();
    SSL_accept();
    int SSL_get_fd(SSL *);
*/
void _SSL_close (SSL * ssl);

char *_SSL_get_cert_string (SSL * ssl);
char *_SSL_get_cipher_string (SSL * ssl);
char *_SSL_get_stats ();

/* server */
char *_SSL_add_keypair (char *privkey, char *cert);

int _SSL_send (SSL * ssl, char *buf, int len);
int _SSL_recv (SSL * ssl, char *buf, int len);
