Skip to content

Commit

Permalink
transport-tls: add new getter for LogTransport's TLSSession
Browse files Browse the repository at this point in the history
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
  • Loading branch information
sodomelle committed Dec 16, 2024
1 parent 3095f8e commit 4686337
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/transport/transport-tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ log_transport_tls_write_method(LogTransport *s, const gpointer buf, gsize buflen
return -1;
}

TLSSession *
log_tansport_tls_get_session(LogTransport *s)
{
LogTransportTLS *self = (LogTransportTLS *)s;

return self->tls_session;
}


static void log_transport_tls_free_method(LogTransport *s);

Expand Down
1 change: 1 addition & 0 deletions lib/transport/transport-tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
#include "transport/tls-context.h"

LogTransport *log_transport_tls_new(TLSSession *tls_session, gint fd);
TLSSession *log_tansport_tls_get_session(LogTransport *s);

#endif

0 comments on commit 4686337

Please sign in to comment.