some cleanup, some debugging tweaks. getting there, but still pretty much at the same spot as last time.
got negotiations working, however im getting a bullshit error about the "block cipher pad is wrong" from server which nobody seems to know how to fix (just my luck). tried SSLv23, TLSv1, different cipher suites, etc nothing works. at least i made progress tonight. ssl sockets now have a separate buffer for unencrypted data, and write-pending-socket-data is a method now. so far working well, minus the whole "not working at all" thing