Re: [openssl-users] Duplicating const X509_NAME

2016-11-07 Thread Benjamin Kaduk
On 11/07/2016 05:42 AM, Sascha Steinbiss wrote: > 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_N

[openssl-users] Duplicating const X509_NAME

2016-11-07 Thread Sascha Steinbiss
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 obtai