New function and options to check OCSP response validity.