ac6568d Fix `build_requestinfo` in OpenSSL1.1.0+ environments

1 file Authored by slev 4 years ago, Committed by François Cami 4 years ago,
    Fix `build_requestinfo` in OpenSSL1.1.0+ environments
    
    Since OpenSSL 1.1.0 the `req_info` field of X509_REQ structure is
    no longer a pointer to X509_REQ_INFO. This results in a crash of
    `build_requestinfo` in environments having OpenSSL1.1.0+ (libcrypto).
    
    With this patch, the X509_REQ definition becomes the version dependent.
    Both OpenSSL1.0.x and OpenSSL1.1.x are supported.
    
    Fixes: https://pagure.io/freeipa/issue/7937
    Signed-off-by: Stanislav Levin <slev@altlinux.org>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+50 -13