<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    After staring at the code for long enough I see a number of natural
    cleavage points for solving this issue. MR in a few days.<br>
    <br>
    <div class="moz-cite-prefix">On 3/31/19 2:33 PM, Ian Bruene wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0ffe027e-8030-1d7f-48d4-74f65147be04@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <br>
      Is there any particular reason why SSL structs need to be passed
      all over the place to functions that do not depend on SSL itself?<br>
      <br>
      The notable example here is nts_ke_do_recieve, which only uses the
      SSL to pass to SSL_read. I don't see any obvious reason that
      couldn't be done in the calling function and then pass the buffer
      instead as the logic doesn't depend on SSL, but on the buffer. As
      it is now, writing tests for many of the most important functions
      in the nts codebase is difficult at best because they require
      setting up SSL, which means faking a connection, which is already
      awkward and verbose in languages that make for easy shimming, let
      alone C.<br>
      <br>
      <div class="moz-signature">-- <br>
        <i>"In the end; what separates a Man, from a Slave? Money?
          Power? No. A Man Chooses, a Slave Obeys."</i> -- Andrew Ryan
        <p> <i>"Utopia cannot precede the Utopian. It will exist the
            moment we are fit to occupy it."</i> -- Sophia Lamb </p>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <i>"In the end; what separates a Man, from a Slave? Money? Power?
        No. A Man Chooses, a Slave Obeys."</i> -- Andrew Ryan
      <p>
        <i>"Utopia cannot precede the Utopian.
          It will exist the moment we are fit to occupy it."</i> --
        Sophia Lamb
      </p>
    </div>
  </body>
</html>