summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar orbea2024-04-23 09:15:51 -0700
committerGravatar Nikias Bassen2024-04-27 01:41:28 +0200
commit80d5f46cea8f7b8692c0d1f076b52195ba766eef (patch)
tree38e7fae7128c28f0d13f17e70ebeff4b84225fa6
parent9d74aed599b4bb5f6c2fce042ab9630acaebb159 (diff)
downloadlibimobiledevice-80d5f46cea8f7b8692c0d1f076b52195ba766eef.tar.gz
libimobiledevice-80d5f46cea8f7b8692c0d1f076b52195ba766eef.tar.bz2
common/userpref: remove X509V3_EXT_cleanup()
When building libimobiledevice with libressl 3.9 it fails with an implicit declaration for X509V3_EXT_cleanup(). This was removed in libressl "because it was part of a dangerous, incomplete and mostly useless API". Additionally it doesn't seem to be actually used by libimobiledevice: "It cleans up the stack containing custom extensions which libimobiledevice doesn't use, it's only needed after calls to X509V3_EXT_add{,_list,_alias}()." Reference: https://github.com/libressl/portable/issues/1050 Signed-off-by: orbea <orbea@riseup.net>
-rw-r--r--common/userpref.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/userpref.c b/common/userpref.c
index b64c703..48bcfcb 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -627,7 +627,6 @@ userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_da
}
}
- X509V3_EXT_cleanup();
X509_free(dev_cert);
EVP_PKEY_free(pubkey);