void set_pass ( string ipass ) { auto rc = nng_tls_config_pass(tls, ipass.toStringz()); nng_enforce(rc == 0); }
void set_key ( ubyte[] ipass ) { auto rc = nng_tls_config_key(tls, ipass.ptr, ipass.length); nng_enforce(rc == 0); }
void set_pass ( string ipass ) { auto rc = nng_tls_config_pass(tls, ipass.toStringz()); nng_enforce(rc == 0); }
void set_key ( ubyte[] ipass ) { auto rc = nng_tls_config_key(tls, ipass.ptr, ipass.length); nng_enforce(rc == 0); }