This would be simpler as:

```python
if self._lib.OPENSSL_VERSION_NUMBER < 0x1000000f:
    return isintance(algorihm, hashes.SHA1)
else:
    return self.hash_supported(algorithm)
```