Skip to content

Instantly share code, notes, and snippets.

@roxlu
Created October 30, 2012 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roxlu/b5e8161a6ed0c6a48fb8 to your computer and use it in GitHub Desktop.
Save roxlu/b5e8161a6ed0c6a48fb8 to your computer and use it in GitHub Desktop.
OpenSSL (asynchronous) flow
  • setup SSL context

  • create socket

  • setup memory bios

  • connect to server

  • on connected, call SSL_connect(ssl)

    • copy handshake data to from ssl to buffer using: BIO_read(write_bio, tmp_buf, 1024);
    • send this data to the server
  • ?? when the server replies, ... what do we do with the data ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment