parent
334ec75011
commit
068b9ab8b8
2 changed files with 20 additions and 0 deletions
|
@ -90,3 +90,10 @@ void dtls_set_handlers(struct tls_conn *tc, dtls_estab_h *estabh,
|
|||
dtls_recv_h *recvh, dtls_close_h *closeh, void *arg);
|
||||
const struct sa *dtls_peer(const struct tls_conn *tc);
|
||||
void dtls_set_peer(struct tls_conn *tc, const struct sa *peer);
|
||||
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
struct ssl_ctx_st;
|
||||
|
||||
struct ssl_ctx_st *tls_openssl_context(const struct tls *tls);
|
||||
#endif
|
||||
|
|
|
@ -889,3 +889,16 @@ void tls_flush_error(void)
|
|||
{
|
||||
ERR_print_errors_cb(print_error, NULL);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the backend-specific (OpenSSL) context
|
||||
*
|
||||
* @param tls Generic TLS Context
|
||||
*
|
||||
* @return OpenSSL context
|
||||
*/
|
||||
struct ssl_ctx_st *tls_openssl_context(const struct tls *tls)
|
||||
{
|
||||
return tls ? tls->ctx : NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue