'Assining closed fields in C structure using libcrypto tools

I am working on updating some project which use old version of openssl libcrypto. In new openssl like v1.1.1 fields in specific structure is closed. I've found access for some fields by googling. But, I can not find to realise this:

x->akid = X509_get_ext_d2i(x, NID_authority_key_identifier, NULL, NULL);

I can not assign x->akid Help me, please?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source