]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] fix: dev: Fix OpenSSL 4 compatibility issue when calling X509_get_subject_name()
authorArаm Sаrgsyаn <aram@isc.org>
Mon, 16 Mar 2026 10:57:00 +0000 (10:57 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 16 Mar 2026 10:57:00 +0000 (10:57 +0000)
commit1d43bf8263fc93d6052f6c58f99c13e26ed13be3
tree262ee4035fdaa9ecc83ad3a6fbc48210fac9e139
parentfc5e26cfc9fd74f28d5795ea31fb5c2f46eb827d
parent9a7ae56032c3cb4b80409a9cd9b91d123890942b
[9.20] fix: dev: Fix OpenSSL 4 compatibility issue when calling X509_get_subject_name()

Starting from OpenSSL 4 the the X509_get_subject_name() function
returns a 'const' pointer to a name instead of a regular pointer.
Duplicate the name before operating on it, then free it.

Closes #5807

Backport of MR !11676

Merge branch 'backport-5807-openssl-4-X509_get_subject_name-compat-fix-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11692