Add a binding for PKCS12_set_mac() to set MAC parameters and (re-)calculate MAC for the content.
This allows generating PKCS#12 with consistent MAC parameters with different OpenSSL versions. OpenSSL 3.0 changed the default hash function used for HMAC and the KDF from SHA-1 to SHA-256.
Add a binding for PKCS12_set_mac() to set MAC parameters and (re-)calculate MAC for the content.
This allows generating PKCS#12 with consistent MAC parameters with different OpenSSL versions. OpenSSL 3.0 changed the default hash function used for HMAC and the KDF from SHA-1 to SHA-256.
Fixes: https://github.com/ruby/openssl/issues/772