00:41:18  * tunniclmquit (Ping timeout: 245 seconds)
00:47:55  * a3fquit (Quit: Zzzzz..)
02:35:21  * sin8hjoined
04:52:22  * thefourtheyequit (Quit: Connection closed for inactivity)
05:25:22  * bzozquit (Ping timeout: 244 seconds)
05:25:32  * othiym23quit (Ping timeout: 258 seconds)
05:25:33  * tolmaskyquit (Ping timeout: 260 seconds)
05:25:33  * jcrugzzquit (Ping timeout: 260 seconds)
05:37:53  * othiym23joined
05:38:32  * bzozjoined
05:38:45  * jcrugzzjoined
05:39:09  * tolmaskyjoined
07:40:34  * sin8hquit (Quit: Leaving.)
08:02:39  * a3fjoined
08:45:19  * rendarjoined
09:54:19  * a3fquit (Quit: Zzzzz..)
10:28:45  * sin8hjoined
10:30:41  * seishunjoined
11:32:26  * thealphanerdquit (Quit: farewell for now)
11:32:56  * thealphanerdjoined
11:54:41  * sin8hquit (Quit: Leaving.)
12:30:37  * seishunquit (Ping timeout: 268 seconds)
12:44:47  * sin8hjoined
12:46:37  * Alcestquit (Remote host closed the connection)
13:05:13  * seishunjoined
13:20:56  * sin8hquit (Quit: Leaving.)
13:29:54  * sin8hjoined
15:38:46  * a3fjoined
15:39:19  * seishunquit (Ping timeout: 268 seconds)
15:40:10  * tunniclmjoined
15:47:52  * seishunjoined
15:57:49  * seishunquit (Ping timeout: 268 seconds)
16:00:53  * tunniclmquit (Ping timeout: 245 seconds)
16:00:57  * seishunjoined
16:08:20  * sin8hquit (Quit: Leaving.)
16:25:28  * sin8hjoined
16:58:51  * MoZu4k__joined
17:02:34  * seishunquit (Ping timeout: 268 seconds)
17:18:34  * seishunjoined
17:19:13  * sin8hquit (Quit: Leaving.)
17:22:20  * sin8hjoined
17:22:46  * sin8hquit (Client Quit)
17:45:32  * cricketyjoined
17:45:41  <crickety>hi all
17:47:07  <crickety>what's the best way to integrate an SSL library with libuv? it was easy in libevent (since it has built-in support for openssl)
17:47:14  <crickety>but not sure how to approach it with libuv
17:59:23  * Jacob843quit (Remote host closed the connection)
17:59:45  * Jacob843joined
18:02:29  <crickety>ideas?
18:04:29  <txdv>You examine the api that your targeted ssl library uses
18:04:34  <txdv>then you examine the api that libuv provides
18:04:38  <txdv>and then you integrate them both
18:05:19  <txdv>https://github.com/indutny/bud/blob/master/src/client.c
18:08:10  <txdv>a little example on how bud uses openssl and libuv
18:09:21  <crickety>txdv, thanks
18:09:58  <txdv>you asked for a bear and i lead you to a bear cave
18:10:04  <txdv>thank me once you get out alive
18:10:21  <crickety>txdv, i'm also interested in port unification. That is, handle both non-ssl and SSL traffic on the same port :) like some webserver do. I think it's pretty easy.
18:10:41  <txdv>it is
18:10:42  <crickety>You detect the HELLO message, then put the bytes back on the BIO queue and move to SSL
18:10:53  <crickety>something like that
18:11:15  <txdv>the clients initiate the ssl handshake by sending something very specific
18:11:25  <crickety>0x03 is a big hint :)
18:12:00  <crickety>i know the protocol, but not sure how to best transition to ssl using the BIO functions. Because I need to put the hello packet back on the libuv read queue somehow
18:13:09  <crickety>uv_unread would be awesome :)
18:13:24  <txdv>what has been read can not be unread
18:13:47  <crickety>well, it can using BIO tricks. I've done that with libevent at least.
18:14:07  <crickety>so instead of reading from the network, you first drain the "re-read" queue
18:14:18  <crickety>it's neat
18:15:38  <crickety>hopefully uv has similar hooks
18:16:06  <crickety>just been scratching the surface, but libuv is a *MUCH* cleaner api than libevent
18:42:37  <crickety>later
18:42:38  * cricketyquit (Quit: ircII EPIC5-1.1.2 -- Are we there yet?)
19:07:08  * rendarquit (Ping timeout: 268 seconds)
19:36:35  * rendarjoined
19:46:36  * seishunquit (Ping timeout: 268 seconds)
20:03:51  * seishunjoined
20:17:29  * sin8hjoined
20:20:59  * rendarquit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
20:32:13  * sin8hquit (Quit: Leaving.)
21:32:07  * tunniclmjoined
21:33:24  <indutny>txdv: there is uv_ssl_t now
21:33:38  <indutny>one doesn't need to go to the bear cave anymore
21:33:39  <indutny>https://github.com/indutny/uv_ssl_t
22:31:28  * MoZu4k__quit (Quit: MoZu4k__)
22:55:46  <txdv>wat
22:56:16  <txdv>that looks awesome
23:19:58  * seishunquit (Ping timeout: 268 seconds)