<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 11/07/2016 05:42 AM, Sascha Steinbiss wrote:<br>
    <blockquote
      cite="mid:3e6478aa-fa36-f970-7d80-88a79d0ab9ca@debian.org"
      type="cite">
      <pre wrap="">Hi all,

I was wondering how to properly make a clone of a const X509_NAME in
OpenSSL 1.1?

In particular, I am obtaining a const X509_NAME* via OCSP_resp_get0_id()
and would like to pass it to X509_find_by_subject() which takes a
X509_NAME* (non-const). I looked into using X509_NAME_dup() to obtain a
local copy -- which looked like the obvious approach -- but that also
only takes a non-const parameter.

Any ideas? With

</pre>
    </blockquote>
    <br>
    Hmm, seems like there may be a need for get1-style accessors, then. 
    Supposedly missing accessors will get backported from master to the
    1.1 branch (though making it in time for 1.1.0c later this week
    could be tough).  It might be worth filing a pull request with such
    things.<br>
    <br>
    -Ben<br>
  </body>
</html>