[ocsp] Fix static string length calculation