00:00:09  * DarkGodquit (Ping timeout: 245 seconds)
04:06:13  * Something12joined
04:36:50  * sclark39quit (Ping timeout: 256 seconds)
04:51:02  <daurnimator>creationix: Yeah luaossl
04:51:10  <daurnimator>creationix: its quite literally a SSL_CTX* in a userdata.
04:53:09  <creationix>hmm, so no way to create and attach the mem bio from lua then?
05:36:27  <daurnimator>creationix: huh?
05:36:45  <daurnimator>creationix: you can use the SSL_CTX* however you want to.
05:37:06  <creationix>daurnimator, how? I'm in lua
05:37:22  <creationix>I guess ffi.CDEF the definition for the struct?
05:37:30  <daurnimator>what struct?
05:37:34  <creationix>the context
05:37:45  <daurnimator>huh? it's not a struct
05:37:51  <daurnimator>it's an opaque pointer you pass back to the openssl library
05:38:08  <creationix>ok, then I need some openssl library to read and write
05:38:23  <daurnimator>creationix: I don't even know what you're trying to do :P
05:38:26  <creationix>in our current openssl bindings we create memory buis
05:38:36  <creationix>I'm trying to make an https request
05:39:00  <creationix>I need to pipe ciphertext into the tls stream and get clear text out (and vice-versa)
05:39:45  <creationix>daurnimator: https://github.com/luvit/lit/blob/master/deps/coro-tls.lua#L70-L71
05:40:08  <creationix>in the old ssl bindings, I would read and write the mem bios after attaching them to the context
05:42:03  <daurnimator>creationix: you need *much* more than that if you want non-blocking behaviour; or proper dtls handling
05:42:32  <daurnimator>not to mention some annoying as shit errno swapping
05:42:57  <daurnimator>anyway; luaossl provides only the functions to set up an SSL_CTX*; but no way to *use* it.
05:44:32  <creationix>exactly. So I need to write more openssl bindings then?
05:44:45  <creationix>seems silly to have open ssl bindings that can't be used alone
05:57:52  <daurnimator>creationix: they can for encryption/decryption/etc.
05:58:14  <daurnimator>creationix: I've seen a few libraries allow you to pass an SSL_CTX in to use
05:58:22  <daurnimator>(in C; not in lua)
05:58:37  <daurnimator>luaossl is sort of just to help you create one; and then hand it off to something else
05:59:37  <creationix>thanks for confirming. I was afraid this is the case
06:00:57  <daurnimator>creationix: I'd imagine using bios to do things would be too expensive anyway
06:01:06  <daurnimator>(at least in all lua)
06:01:15  <daurnimator>means you've be creating lua string garbage all the time
06:01:34  <creationix>so I should add support for accepting the ctx in my luv bindings then?
06:02:00  <daurnimator>creationix: I'm suprised to just learn now that libuv has no native ssl support.
06:02:27  <creationix>that adds a lot of coupling I'd rather avoid, but I can see the performance benefits
06:18:56  * SkyRocknRolljoined
11:55:09  * DarkGodjoined
11:58:38  * Something12quit (Ping timeout: 250 seconds)
12:05:32  * piernovquit (Remote host closed the connection)
12:06:39  * piernovjoined
12:59:20  * SkyRocknRollquit (Ping timeout: 245 seconds)
13:38:36  * creationixquit (Ping timeout: 264 seconds)
13:58:04  * creationixjoined
15:10:24  * SkyRocknRolljoined
18:49:41  * creationixquit (Max SendQ exceeded)
18:53:27  * creationixjoined