151a967 Issue 51042 - try to use both c_rehash and openssl rehash

Authored and Committed by eschwartz 3 years ago
    Issue 51042 - try to use both c_rehash and openssl rehash
    
    Bug Description:
        It's not possible to fully migrate to openssl rehash, since it is
        not available everywhere. And versions of openssl which don't have
        rehash, also cannot check if rehash is available, or try running it
        at all as a fallback, because the return value is meaningless.
    
    Fix Description:
        Add a utility function that checks the openssl version and parses it
        into a LegacyVersion class. `openssl version` should work
        everywhere, despite being unfriendly to parse. On versions of
        openssl >= 1.1.0a (LegacyVersion also considers 1.1.0 > 1.1.0a), use
        openssl rehash, otherwise fall back to c_rehash.
    
    Fixes https://pagure.io/389-ds-base/issue/51042
    
    Author: eschwartz
    
        
file modified
+2 -0
file modified
+28 -9