<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 10/17/2017 11:27 AM, Adi Mallikarjuna Reddy V wrote:<br>
    <blockquote type="cite"
cite="mid:CABexLuaQdoT0BfAkngM08gBy841sBHU50XNAFuroBjbkUVQPLw@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div>
        <blockquote type="cite"
          style="color:rgb(49,49,49);word-spacing:1px">
          <div style="font-size:12.8px" dir="auto">
            <div style="font-size:0.800000011920929rem" dir="auto">I am
              only worried about the following line. </div>
            <div style="font-size:0.800000011920929rem" dir="auto"><br>
            </div>
            <div style="font-size:0.800000011920929rem">SSL_CTX_use_certificate(ctx,
              cert)</div>
            <div style="font-size:0.800000011920929rem" dir="auto"><br>
            </div>
            <div style="font-size:0.800000011920929rem" dir="auto">After
              this line is it safe to free cert object while ctx is
              still used later on?</div>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
    SSL_CTX_use_certificate(ctx, cert), on successful return, takes an
    additional reference on the supplied |cert| argument to account for
    the pointer in |ctx|.  Thus, the caller of SSL_CTX_use_certificate()
    can safely call X509_free(cert) to release the caller's local
    reference, while the |ctx| retains a pointer to |cert|.<br>
    <br>
    -Ben<br>
  </body>
</html>