| 162 | |
| 163 | namespace { |
| 164 | void default_url_options(connection_options& opts, const url& url) { |
| 165 | opts.virtual_host(url.host()); |
| 166 | if (!url.user().empty()) |
| 167 | opts.user(url.user()); |
| 168 | if (!url.password().empty()) |
| 169 | opts.password(url.password()); |
| 170 | // If scheme is amqps then use default tls settings |
| 171 | if (url.scheme()==url.AMQPS) { |
| 172 | opts.ssl_client_options(ssl_client_options()); |
| 173 | } |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | pn_connection_t* container::impl::make_connection_lh( |
no test coverage detected