Removed the last bits of OpenSSL code called directly

This commit is contained in:
Jan Vidar Krey
2012-10-17 20:53:05 +02:00
parent 1e0927f510
commit c50eb90bee
3 changed files with 41 additions and 21 deletions

View File

@@ -50,6 +50,12 @@ struct ssl_context_handle;
*/
extern const char* net_ssl_get_provider();
/**
* return 0 if error, 1 on success.
*/
extern int net_ssl_library_init();
extern int net_ssl_library_shutdown();
/**
* Create a new SSL context.
*/
@@ -91,11 +97,8 @@ extern void net_ssl_callback(struct net_connection* con, int events);
extern ssize_t net_con_ssl_handshake(struct net_connection* con, enum net_con_ssl_mode, struct ssl_context_handle* ssl_ctx);
extern SSL* net_con_get_ssl(struct net_connection* con);
#ifdef SSL_USE_OPENSSL
extern void net_con_set_ssl(struct net_connection* con, SSL*);
#endif // SSL_USE_OPENSSL
extern int net_con_is_ssl(struct net_connection* con);
#endif /* SSL_SUPPORT */
#endif /* HAVE_UHUB_NETWORK_TLS_H */
#endif /* HAVE_UHUB_NETWORK_TLS_H */