Is it possible to salt the SHA1 or SHA256 hash function of OpenSSL?
SHA-1 and SHA-256 are cryptographic hash functions. They take as input an arbitrary sequence of bits — and only that. There is no “salt” in hash functions.
When a hash function is said to be “salted”, then this is not a hash function; this is some other construction that uses, among its input parameters, one that is deemed to be a “salt”, and that may use, internally, a hash function as a building element.