gosmpp icon indicating copy to clipboard operation
gosmpp copied to clipboard

Implementing TLS / Supporting SMPPS

Open DandyDeveloper opened this issue 3 years ago • 2 comments

I see by default we use a non-TLS dialer, which in turn relies on net.Conn for instantiating and subsequently defining a significant portion of the downstream buffer reads/etc.

Is there a working example or any plans to support a crypto/tls Dialer?

I've attempted to do this myself, but I'm getting some odd PDU related errors which I'm in the process of trying to debug.

It seems a significant portion of the libraries depend on the root connection working from the net.Conn return type. Has anyone had successful forks of implementing the above?

DandyDeveloper avatar Sep 14 '22 07:09 DandyDeveloper

@DandyDeveloper could you share your source code. Currently, the library let you inject your own dialer while initialize connector.

func TXConnector(dialer Dialer, auth Auth) Connector
// Dialer is connection dialer.
type Dialer func(addr string) (net.Conn, error)

I believe there is nothing block you from TLS Conn

linxGnu avatar Sep 14 '22 08:09 linxGnu

@linxGnu Great point, I missed that this was a public function. Let me use that.

DandyDeveloper avatar Sep 14 '22 08:09 DandyDeveloper